Chapter 2
Chapter 2
● number of gates and logic operations (SSI, MSI, LSI, VLSI, ULSI, GSI-Giga)
● circuit technology/ digital logic family (TTL, ECL, MOS, CMOS) : the basic circuit in
each technology uses NAND or NOR gate because
o NAND and NOR gates are created using 4 transistors whereas AND/OR require 6
transistors
o NAND and NOR can easily be turned into inverters.
SSI
TTL (5400, 7400, 9000, 8000 series)– logic gates, flip-flops, counters
ECL (10000 series)–for systems requiring high speed operations: super computers and signal
processors( Analog to Digital and viceversa)
MOS- for systems that need high component density: micro-processors, memories)
CMOS (4000 series, 54C00, 74C00) -for systems requiring low power consumption. It is the
memory on motherboard that stores BIOS settings including system date and time. CMOS
battery provides constant power to chip.
TTL and CMOS logic family are most widely used IC technology.
TTL and ECL use bipolar transistors (both P and N carriers exist during normal operations)
Basic components on ICs: Decoder, encoder, multiplexer, register, counter, RAM, ROM)
Enable input : 2 uses: (a) An enable pin in an IC is used to literally enable it to work. It is a
switch to an IC. When the enable is active, it means that the IC could now function. (b) for
circuit expansion
4x10 decoder has N=4 input lines and M=10 output lines where M<2N
Decoder 3x8 has N=3 input lines and M=8 output lines where M=2N
D0=(E’A1’A0’)’
D1=(E’A1’A0)’
D2=(E’A1A0’)’
D3=(E’A1A0)’
1 x x 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
A2 A1 A0 D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 1 0 0 0 Decoder 2 is deactivated
0 0 1 0 1 0 0 resulting in values 0 for
0 1 0 0 0 1 0 D4,D5,D6,D7
0 1 1 0 0 0 1
1 0 0 Decoder 1 is deactivated 1 0 0 0
1 0 1 resulting in D0=D1=D3=D3=0 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
Question
Construct a 5-to-32-line decoder with four 3-to-8-line decoders with enable and one 2-to-4 line
decoder. Use block diagrams similar to Fig. 2·3.
X4 X3 X2 X1 X0 output
0 0 0 0 0 D0=1
0 0 0 0 1 D1=1
0 0 0 1 0 D2=1
0 0 0 1 1 D3=1
0 0 1 0 0 D4=1
0 0 1 0 1 D5=1
0 0 1 1 0 D6=1
0 0 1 1 1 D7=1
In the same way,
when X4=0, X3=1 for all combinations from 000 to 111 for X2, X1, X0 one of the outputs
from D8 to D15 will be 1.
when X4=1, X3=0 for all combinations from 000 to 111 for X2, X1, X0 one of the outputs
from D16 to D23 will be 1.
when X4=1, X3=1 for all combinations from 000 to 111 for X2, X1, X0 one of the outputs
from D24 to D31 will be 1.
Function table
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
Fig.2.5
Construct a 16-to-1line multiplexer with two 8-to-1line multiplexers and one 2-to-1 line
multiplexer. Use block diagrams for the three multiplexers.
S3 S2 S1 S0 Y
0 0 0 0 I0
0 0 0 1 I1
0 0 1 0 I2
0 0 1 1 I3
0 1 0 0 I4
0 1 0 1 I5
0 1 1 0 I6
0 1 1 1 I7
1 0 0 0 I8
1 0 0 1 I9
1 0 1 0 I10
1 0 1 1 I11
1 1 0 0 I12
1 1 0 1 I13
1 1 1 0 I14
1 1 1 1 I15
Applications of multiplexer
Data routing, parallel to serial conversion, logic function generation (n-variable logic
function can be generated using n-select inputs of a multiplexer.
Multiplexers are considered universal logic modules.
Registers
Register with parallel load: all bits of register are loaded simultaneously with a common
clock pulse transition.
Fig 2.8 Register with parallel load
Load input: it determines the actions to be taken with each clock pulse.
Load=1: data inputs I0, I1, I2, I3 are loaded in flip-flops.
Load=0: data inputs I0, I1, I2, I3 are inhibited (prevented) from loading and Q(t) values of
all flip-flops are fed to D inputs forming a feedback loop. This is required as D
flip-flop does not have a no change (Q(t)) condition.
Buffer gate in clock strengthens the signals and reduces power requirement from clock
generator.
Binary Counter
3 bit up counter: 000, 001, 010, 011, 100, 101, 110, 111, 000, 001, …….
3 bit down counter: 111, 110, 101, 100, 011, 010, 001, 000, 111, ………
General rule for DOWN counter: bit at 0th position is always complemented
bit at ith position is complemented iff all bits from 0th to
(i-1)th positions are 0 in the previous state.
4-bit UP counter
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
0 1 1 1 1
1 1 1 1 0
2 1 1 0 1
3 1 1 0 0
4 1 0 1 1
5 1 0 1 0
6 1 0 0 1
7 1 0 0 0
8 0 1 1 1
9 0 1 1 0
10 0 1 0 1
11 0 1 0 0
12 0 0 1 1
13 0 0 1 0
14 0 0 0 1
15 0 0 0 0
Clear Load Incremen Clear’ Load’ Y=Clear’Load’Increment Z=Clear’load
t
0 0 0 1 1 0 0
0 0 1 1 1 1 0
0 1 0 1 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 1 0 1 0 0
1 1 0 0 0 0 0
1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 1 0 1 0 1 0 1
1 0 1 0 0 0 1 0 1 0 1 0 1
1 1 0 0 0 0 1 0 1 0 1 0 1
1 1 1 0 0 0 1 0 1 0 1 0 1
Function table
Clock Clear Load Incrementer Operation
↑ (0→1) 0 0 0 No change
↑ 0 0 1 Increment count by 1
↑ 0 1 X Load inputs I0 to I3
↑ 1 X X Clear outputs to 0
ROM
Only read operation will take place.
TYPES OF RAM-
RAM is of two types-
RAM vs ROM –
1. RAM is volatile in nature as it is automatically erased when computer shuts down. ROM is
non-volatile since it is never erased when there is any shutdown or restart of computer.
2. RAM can be directly accessed by the processor. On the contrary, ROM cannot be directly
accessed by the processor, therefore it is transferred into RAM where it is executed by the
processor.
3. RAM is used to store the temporary information for limited time. ROM is used to store
permanent information that should not be deleted.
4. Writing data to a RAM chip is a faster process. Writing data to a ROM is a slow process.
5. A RAM chip can store multiple gigabytes (GB) of data, up to 16GB or more per chip. A
ROM can store only several megabytes (MB) of data, up to 4 MB or more per chip.
▪ Types of RAM are –Static and Dynamic RAM