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 LFSR and selftest memories programmable logic PLA circuit GAL output cell GAL demo 1 GAL demo 2 GAL demo 3 GAL demo 4 ACT1 cell ACT1 AND3 gate ACT1 XOR2 gate ACT1 SR-flip... 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 | GAL demonstration: counter
Circuit Description
This circuit demonstrates how to implement a state-machine
using the GAL or generic array logic structure.
For a description of the circuit structure see the previous two applets.
In this demonstration, the output enable of the output cell blocks
is set to low, enabling the tristate driver.
Also, the SYN control bit of each output cell is selected,
so that the output of the AND-OR matrix is routed into the D-flipflop
in the output cell.
The (inverted) output of the flipflop is routed back into the
fuse matrix.
The programming in the upper GAL block implements the logical
function (!C), so that the flipflop in the upper output cell
toggles on each rising edge of the clock input.
Similarly, the programming of the lower block implments the function
(C AND D) or (!C AND !D).
The total result of this programming is a two-bit binary counter.
The programming of the lower GAL block implments the XOR function
of inputs A and B.
+ = fuse ok . = fuse blown A /A B /B C /C D /D function . . . . . + . . /C + + . . . . . . 0 + + . . . . . . 0 + + . . . . . . 0 . . . . + . + . C AND D + + . . . + . + /C AND /D + + . . . . . . 0 + + . . . . . . 0 total: A XOR B | |||
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/42-programmable/20-gal/GAL-demo3.html |