- At the start of the simulation run, the Set/Reset (S/R) Flip Flop
is in the "Unknown" state (Both Q and not Q output "Unknown")
- During the first fourty simulation cycles, the
Reset signal is asserted to the "1" state by the
Reset Pulse Generator circuit. This forces the 4-Bit Binary Up/Down Counter
to output all "0's".
- When the 3 to 8 line Demultiplexor sees a 0 from the Counter,
it will output "0" on its 0 output line, and a "1" on output lines 2 through 7.
- The "0" from the 0 output of the Demultiplexor is changed to
"1" by the connected Inverter
- Thus, the Signal Sender marked F0 is driven to a "1", causing
the Signal Receiver marked F0 to apply a "1" to the Reset (R) input
S/R Flip Flop. The S/R Flip Flop in turn applies a "0" to its Q output.
- The other outputs of the Demultiplexor are changed to "0"
by their respective Inverters
- When the Reset signal is finally unasserted, the Counter
will respond to its clock input.
- Because Set/Reset (S/R) Flip Flop now outputs "0" on its
Q output, the Counter's D input (Direction) is also "0".
When the D input is at "0", it counts up in binary.
- On the first positive going edge of the 10Hz signal, the Counter
goes from 0 to 1.
- A count of 1 on the 3 input lines of the Demultiplexor causes
a "0" to be output on its 1 line, and a "1" to be output on all
the other lines.
- On each successive positive going edge of the Counter's C input,
the Counter's output goes up, and
the Demultiplexor will see on its inputs 2, 3, 4, and 5. It will
in turn put a "0" on the corresponding output line: 2, 3, 4 and 5, while holding
all the others at a "1". (No two output lines of the Demultiplexor
will ever be "0" at the same time.)
- When the 5 output line goes to a "0", the connected Inverter
changes it to a "1", which is fed back through the F5 Signal Sender/Receiver pair
to the Set/Reset (S/R) Flip Flop S input, causing it to
transfer a "1" to its Q output.
- When the Q output of the Set/Reset (S/R) Flip Flop changes to "1",
the Direction input of the Counter also changes, and begins counting down
from 5 to 4, then 3, then 2, then 1 and then 0.
- When the Demultiplexor sees a 0 on its three input lines from the
Counter, it causes its 0 output line to again go to "0", which is changed
to a "1" by the Inverter and passed through Signal Sender/Receiver
pair F0 back to the R input of the Set/Reset (S/R) Flip Flop.
- When the Set/Reset (S/R) Flip Flop R input sees "1",
the Q output changes to "0".
- When the Set/Reset (S/R) Flip Flop Q output goes to "0", the
Counter's D input sees "0", and the Counter
begins counting up from 0 to 1, then 2, then 3, then 4, and then 5.
- Thus, the cycle repeats, as the Counter counts up to 5, then
counts down to 0, then back up to 5 again, for the duration of the
simulation run.
|