A623308A behavior #1056
emtneutrino
started this conversation in
General
Replies: 1 comment 4 replies
-
This behavior is not unusual. At the moment of switching on, all signals of the circuit are more or less undefined. Each gate needs a few gate propagation times until it is settled. During this time such things happen. The random value arises because during this phase the RAM is written. Since only inputs are connected to the data lines, the lines are in high-z state, which leads to random values being written. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I start a simulation with this circuit, the outputs always seem to be random at adress 0. It seems like random data is written to the first byte of ram as soon as the sim is started. I can change the address to 1 and then switch back to 0 and the contents are the same random bits when the sim starts. I set the ram as program memory and loaded a hex file at sim start time with byte 0 set to 0 and byte 1 set to 1. Here are the contents of "program.hex":
v2.0 raw
0
1
I expect to see the output to be 0 at adress 0 and 1 at adress 1.
Whenever I hit the start sim button, the data at 0 seems to be random each time I hit the button.
If I connect WE to high and start the simulation it does what I expect it to. It seems connecting a switch to WE is doing something weird.
I think I'm not understanding how this circuit works or what the settings do.
Beta Was this translation helpful? Give feedback.
All reactions