Forums - Open Redstone Engineers
Timing devices on computer JUST right - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Build Discussion (https://forum.openredstone.org/forum-50.html)
+--- Thread: Timing devices on computer JUST right (/thread-7898.html)



Timing devices on computer JUST right - pebble225 - 09-30-2015

I am trying to make a computer that can write to a device like RAM without messing up data from other RAM slots. So I have a RAM slot. (one memory cell) The commands are the binary number for selecting a RAM slot, Overwrite, and Read. Saying that I have 3 bits of RAM (8 RAM slots), I want to write to RAM slot 2. If the actual command beats the selection command to the RAM, it will write to the default RAM slot selection zero and then the selection will arrive ticks later to then write to the indicated RAM slot, but slot 0 has been corrupted. If the selection beats the command, when the selection goes back to zero, it will once again corrupt the data in RAM slot zero, zero is the default selection.

Let me explain this "selection" command in more detail if this is confusing.

When someone is programming the RAM, the have these four commands:
-Write RAM
-Read RAM
-1
-2

The 1 and the 2 are used to select a RAM slot in binary, giving four possible combinations.

If it still doesn't make sense what I am trying to say, just know I am not very good at explaining things and just help with this: I want to time everything on my computer just right so that it works and that a programmer can write to devices without data corruption due to poor timing on the designers part.


RE: Timing devices on computer JUST right - jxu - 10-01-2015

simplest solution is to sync everything to a clock signal
ensure writing always comes after address decoding