guerraTron wrote
Greetings to all,
<p>referring to the same topic in the interface of the RAM16K.hdl file appears: </p>
<code>...
CHIP RAM16K {
IN in[16], load, address[14];
...</code>
<p>I think the "address" entry should contain 15 bits, not 14</p>
Why do you think it should contain 15 bits?
Would you agree that a 1-bit address space can address 2 RAM cells (addresses 0 through 1)?
Would you agree that a 2-bit address space can address 4 RAM cells (addresses 0 through 3)?
Would you agree that a 3-bit address space can address 8 RAM cells (addresses 0 through 7)?
Would you agree that the pattern that is emerging is that an N-bit address space can address 2^N RAM cells (address 0 through 2^N - 1)?
So how many RAM cells are in a 16K RAM?
How many bits are needed to address that many cells?