J
Jim Thompson
On Sat, 10 Nov 2007 16:19:54 -0800, John Larkin
[snip]Your Sysreset sets Q high, but your sim starts with Q low. Why?
John
The default set-ups included FF initial conditions Q=0. If I uncheck
that box it starts, as would be expected, with Q=1.
...Jim Thompson
Well, run that. It's more interesting.
John
Yep. It takes one cycle for the output to be correct.
...Jim Thompson
It seems to work, but it's awfully convoluted. It would be, for me,
like one of those things that I designed but that I can barely
understand myself; there are too many possible states, and the dflop
clock sometimes comes from the input, and sometimes comes from the
input xored with the internal delay.
Think of the XOR as a device that is switched from being an inverter
to being a buffer. The switching does not occur while clock (input)
edges are present.
And the input can chatter, or it
Does nothing after the first transition... it's an edge-triggered
flop.
could be a single edge of either polarity. All those conditions have
to be proven to work, and proving it is too much work.
I avoid clever stuff like that, in hardware and in software. Sorry,
but I prefer my first circuit, because it's a lot easier to
understand.
John
When I feel confused I drinks a glass of wine ;-)
...Jim Thompson