|  |  | |||
| TAMS / Java / Hades / applets: contents | previous | next | ||||
| Hades Applets contents visual index  introduction  std_logic_1164  gatelevel circuits    basic gates    AND gates    OR gates    XOR and XNOR    De Morgan    complex gates    AND12 gate    simple decoder    XOR variants    4-bit parity...    8-bit parity...    2x2 bit mult...    Gray-code    7400 and 7486    seven-segmen...    7449 seven-s...    Ascii decoder    multiplexer ...    multiplexer ...    74151 multip...    74154 decode...    74154 decode...    priority enc...    priority enc...    Hamming code    barrel-shifter  delay models  flipflops  adders and arithm...  counters  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 | Priority Encoder (4:2 bits)
Circuit Description
A 4-bit priority encoder
(also sometimes called a priority decoder).
This circuit basically converts the 4-bit input into a binary representation. 
If the input n is active, all lower inputs (n-1 .. 0) are ignored: x3 x2 x1 x0 y1 y0 ------------------ 1 X X X 1 1 0 1 X X 1 0 0 0 1 X 0 1 0 0 0 X 0 0The circuit operation is simple. Each output is driven by an OR-gate which is connected to the NAND-INV outputs of the corresponding input lines. The NAND gate of each stages receives its input bit, as well as the NAND gate outputs of all higher priority stages. This structure implies that an active input on stage n effectively disables all lower stages n-1 .. 0. Note that the circuit function as specified here does not depend at all on the least significand input bit. A common use of priority encoders is for interrupt controllers, to select the most critical out of multiple interrupt requests. Due to electrical reasons (open collector outputs), priority encoders with active-low inputs are also often used in practice. | |||
| 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/10-gates/45-priority/priority42.html |