TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters asynchronous... asynchronous... frequency di... synchronous ... synchronous ... up/down counter asynchrounou... 749x counters 7493 1:16 co... 7490 1:10 co... 7492 1:12 co... 74590 counter 74390 decima... frequency co... pulse-generator digital clock digital clock LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | Synchronous counter (JK flipflops)
Circuit Description
A simple 4-bit synchronous counter built from JK-flipflops.
In this circuit, the single clock signal is directly connected to
all flipflops, so that all flipflops change state at the same time.
Click the clock and nreset input switches or type the 'c' and 'r' bindkeys
to operate the counter.
An AND-gate with n inputs is used to drive the J and K inputs
of the stage-n flipflop of the synchronous counter.
This ensures that the flipflop only toggles if all lower-stage flipflops
are 1.
In other words,
Jn = Kn = Qn-1 AND Qn-2 AND ...
AND Q1 AND Q0
Naturally, a cascade of AND-gates can be used to replace the multiple-input
gates required for stages 4 and up.
Note that the synchronous counter requires more external
logic that the asynchronous counter.
Also, the AND gates that are used to calculate the carry signal(s)
may slow down the maximum clock frequency of the synchronous counter.
| |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/30-counters/30-sync/sync.html |