|
In Register.hdl, the Register has 17 inputs and 16 outputs.
CHIP Register {
IN in[16], load;
OUT out[16];
...
However in RAM8.hdl, 8 Registers are laid out with only 2 inputs each. How is this possible? Is it because the "in" defined for each register is actually in[0-15], so 16 wires defined as just "in"? In this case out1, out2, etc would also be 16 wires?
CHIP RAM8 {
IN in[16], load, address[3];
OUT out[16];
PARTS:
// RAM8 will consist of 8 16-bit registers.
// each register's input is directly connected to the RAM's input
Register(in=in, load=load1, out=out1);
Register(in=in, load=load2, out=out2);
...
|