CDA-4101 Lecture 8 Notes




Gates to Modules


Gate/Chip Packaging

  • 74LS00 - 2-input NAND (X4)
  • 74LS04 - 1-input NOT (X6)
  • 74LS08 - 2-input AND (X4)
  • 74LS32 - 2-input OR (X4)

74LS00


Chip Classes

Used to build computers out of many SSIs, but now etch them all onto a single chip


Gate Limits


Combinational Circuits


Multiplexers

a.k.a. MUX

Function: To select one of several inputs
  • to select one of 2n inputs you only need n lines to "select" the input
  • to have an 8 input, m bit multiplexer just repeat with selection inputs going to each of m units

8 input, 1 bit multiplexer

Circuit Synthesis with Multiplexers

Majority Function truth table
A B C M
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Majority Function using MUX
Majority Function direct implementation

Demultiplexers

a.k.a. DEMUX

Function: To direct input to one of several outputs


1 bit, 4 output demultiplexer

MUX-ing and Buses


Decoders

Function: To convert an "n"-bit binary encoded signal into logic '1' on one of 2n outputs
  • This is a binary encoder
  • In general an encoder takes and sort of code and outputs a code word (decoded)

2 input, 4 output decoder

Circuit Synthesis with Decoders

X Y Z F
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 0
F(X,Y,Z) = X' Y' Z' + X' Y Z' + X Y' Z' + X' Y Z'


Decoder Application


Decoders and Demultiplexers


4 output decoder with ENABLE

4 output demultiplexer

Programmable Logic Arrays (PLAs)



Comparators

Function: Determine if two bit strings are equal

Symbol for XOR gate

4 bit Comparator

Left-Right Bit Shifters


Half Adder


Full Adder


Ripple Adder


1 Bit ALU

  • Multi-bit ALUs can be made by stringing these together with common function selection lines and ripple carry bits
Func. Sel, ALU
F0 F1 Function
0 0 A AND B
0 1 A OR B
1 0 NOT B
1 1 A + B