Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Digital Circuits and Systems
Spring 2015 Week 3 Module 13
Combinational Design Decoders + Encoders
Digital Circuits and Systems Combinational Design Decoders + - - PowerPoint PPT Presentation
Spring 2015 Week 3 Module 13 Digital Circuits and Systems Combinational Design Decoders + Encoders Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay
Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Combinational Design Decoders + Encoders
Need not know past history of values
Combinational Design + Decoders/Encoders 5
Combinational Design + Decoders/Encoders 6
Understand the Problem:
understand input/output behavior identify the inputs, outputs, and control signals draw a top level block diagram if necessary
Formulate in a Standard Representation:
truth tables or Boolean equations
Choose an Implementation:
discrete logic gates programmable logic devices: PAL, PLA, ROM, FPGA
Apply the Design Procedure:
follow the representation → minimization → implementation
simulate your circuit before implementing it on actual devices implement it on actual devices and verify your implementation.
Combinational Design + Decoders/Encoders 7
Design a controller to select right length metal rods out of rods of varying length (±10%) traveling one at a time on a conveyor belt. Rods that are within spec. (±5%) remain on the belt. Rods that are too short or too long are discarded by mechanical arm(s).
+10% +5%
Spec Rod within spec Rod too long Rod too short
Combinational Design + Decoders/Encoders 8
a b c Reject 0 0 0 0 1 0 1 0 1 1 1 0 1 1 0 1 X 1 1 1 1 1 1
+10% +5%
Spec within spec too long too short
in spec too long too short
ab Reje a c ct ac b
00 01 11 10 1 1 X 1
a bc
Combinational Design + Decoders/Encoders 9
Combinational Design + Decoders/Encoders 10
Binary-to-Decimal decoder: n inputs, 2n outputs (n x 2n
Each output represents a minterm of an n-variable
EN
Combinational Design + Decoders/Encoders 11
n
Combinational Design + Decoders/Encoders 12
Build a 4x16 decoder using 2x4 decoders (decoder tree)..
a b c d EN minterm
1 m0 1 1 m1 1 1 m2 1 1 1 m3 1 1 m4 1 1 1 m5 1 1 1 m6 1 1 1 1 m7 1 1 m8 1 1 1 m9 1 1 1 m10 1 1 1 1 m11 1 1 1 m12 1 1 1 1 m13 1 1 1 1 m14 1 1 1 1 1 m15 X X X X
Combinational Design + Decoders/Encoders 13
Decoders can be used to implement logic functions as
Combinational Design + Decoders/Encoders 14
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 d d d d a b c d e f g
Combinational Design + Decoders/Encoders 15
Encoder is opposite of decoder. Its output code has
Binary Encoder:
Input:
Output:
Combinational Design + Decoders/Encoders 16