As we all know, we can achieve RAM8 by inputting the address we want to store. But if I don't want to input the address myself, which means the first number will be stored automatically in the 0 position and the second number will be stored automatically in the 1 position without inputting the address. So, how can I achieve this, do I need to write some chips myself? Thank you.
Think about how the ROM and the PC chips work together to do something very similar, except for reading instead of writing.
You can easily build a circuit that combines a RAM chip with a counter chip such that every time you strobe the write line it does just want you say, namely loads the current value at the inputs into the current address and then advances the counter to the next address.
One more question is the load problem. If I wrote some codes and can not be loaded in the Hardware Simulator(I click to load that file, but the screen looks like there is no file in), how can I recognize where the bug is.
I wrote like this:
RAM8(in=in, load=load, address=addressbegin, out=out); //move the address to another position
PC(in=false, load=load, inc=inc,reset=false, out=addressbegin); //just used as a counter
But I was thinking that I may just put one value in? If I want to put 8 values in RAM8, should I do this 8 times?