Replies: 7 comments 8 replies
-
Ping @hneemann - Any thoughts about this? Now I'm trying to implement this by throwing a bunch of extra circuity around a D-FF to force it into a random state at startup. I really would like to be able to test a design having a non-insignificant number of 74LS74 in it and the current implementation they don't startup randomly (nor do they fall back to a random state if both Set and Reset is de-asserted simultaneously - but that is another issue) |
Beta Was this translation helpful? Give feedback.
-
This is difficult because the simulator cannot simply select a state, but must intervene in the simulation in a way that leads to a stable state. |
Beta Was this translation helpful? Give feedback.
-
While thinking about my last comment, I realized that it is actually very easy to recover from an oscillation. You can simply switch to the same simulation mode used during the init phase. |
Beta Was this translation helpful? Give feedback.
-
It's good there's an easy solution if you decide to implement this. :) While I agree that it would hide problems in some cases, it would also make for a more realistic simulation where some oscillations settle by themselves. If you implement a mode for this I guess it'd be a good idea to reduce the max-number-of-oscillations value to something really low so they settle fairly quickly. |
Beta Was this translation helpful? Give feedback.
-
Please try the latest pre release. |
Beta Was this translation helpful? Give feedback.
-
Ooohhh nice... It works just fine. It will be really good to have when trying to simulate circuits having discrete FFs in them. And I guess the can be used as a random generator as well in a pinch ;) |
Beta Was this translation helpful? Give feedback.
-
I'm getting some debug info in the console that you might not have intended to have there...
|
Beta Was this translation helpful? Give feedback.
-
Floating wires have since long been upgraded to continuously randomise their values to mimic their real behaviour - at least in CMOS designs.
So shouldn't Latches, FlopFlops and Counters also have this randomised behaviour at start of simulation (power on)? I mean a real IC doesn't always start up with everything nicely zeroed.
Today those devices can be set for a "default value" in their properties and I guess it would break a lot of designs if you forced random values to all devices, but as a good middle ground maybe you could implement a "Random" value in the default drop-down?
Beta Was this translation helpful? Give feedback.
All reactions