Digital Circuits/Encoders-Decoders
From Wikibooks, the open-content textbooks collection
Encoders and decoders are similar to multiplexers and demultiplexers, except that they are a little bit more complicated.
Contents |
[edit] Decoders
Decoders will have N inputs, and 2N output. Let's say that we have two inputs (I1 and I2), and 4 outputs (O1 O2 O3 O4). Decoders will satisfy the following truth table:
| I1 | I2 | O1 | O2 | O3 | O4 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 0 | 1 |
Binary numbers come in, and essentially select which wire to send a signal on.
[edit] Encoders
Encoders work in exactly the opposite way as decoders, taking 2N inputs, and having N outputs. When a bit comes in on an input wire, the encoder outputs the physical address of that wire.
[edit] Priority Encoders
[edit] Encoders and Multiplexors
The relationship between the two.
This section of the Digital Circuits wikibook is a stub. You can help by expanding this section. If you add something, list yourself as a Contributor.