Professional Documents
Culture Documents
Examples of SSI Chip Pin Layouts
Examples of SSI Chip Pin Layouts
7400 7404
7408 7411
7422 7430
7432 7486
1
A circuit for the majority function of three variables
A'BC+AB'C
B B' C C'
. . . AB'C
. .
. ABC'
Output
ABC+ABC'
A .
B . ABC
C .
2
Design levels for digital computers:
- systems level
- interfacing the components
- CPU chips
- memory chips
- I/O chips
- device level
- designing the logic gates
- using transistors
- combinational circuits
- the input determines the output
- if the input changes, the output changes
- the system does not have to remember the current state
- sequential circuits
- the output depends on:
- the input
- the current state
- the sequence is synchronized by a clock
- timing determines when a change in input will produce a change in output
3
Combinational circuits:
Multiplexer (MUX)
- selects 1 of its (multiple) input lines and sends it to its one output line
- has more than 1 input, but only 1 output
- the control line determines which input line is selected
- as a block diagram:
data line 0
output line X
data line 1
control line A
4
Corresponds to:
2-to-1 multiplexer:
If A = 0
Output D0
As a logic diagram: Else
Output D1
5
A 4-input (or 4-to-1) multiplexer:
6
Demultiplexer:
D0
D1
input
D2
D3
C1 C0
Decoder:
Truth table:
Input Output
A B D0 D 1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
A 2-to-4 decoder
7
A 3-to-8 decoder circuit
Shifter:
8
Code converters:
- translate input word into a corresponding new code word
- number of input lines may differ from number of output lines
Problem:
- design a “BCD-to-some-other-code” converter
- using don’t care conditions, given the following truth table
A B C D W X Y Z
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 0
3 0 0 1 1 0 0 1 1
4 0 1 0 0 0 1 0 0
5 0 1 0 1 1 0 1 1
6 0 1 1 0 1 1 0 0
7 0 1 1 1 1 1 0 1
8 1 0 0 0 1 1 1 0
9 1 0 0 1 1 1 1 1
11 1 X X
10 1 X X
Inputs (BCD) Outputs (some other code)
A B C D W X Y Z W= A + BD + BC
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 0 AB
3 0 0 1 1 0 0 1 1
00 01 11 10
4 0 1 0 0 0 1 0 0
CD 00 1 X 1
5 0 1 0 1 1 0 1 1
6 0 1 1 0 1 1 0 0
7 0 1 1 1 1 1 0 1 01 X 1
8 1 0 0 0 1 1 1 0
11 1 X X
9 1 0 0 1 1 1 1 1
10 1 X X
X= A + BC + BD'
9
Code converter - continued
AB
00 01 11 10
CD 00 X 1
01 1 X 1
Inputs (BCD) Outputs (some other code)
11 1 X X
A B C D W X Y Z
10 1 X X
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 0
Y= A + B'C + BC’D
3 0 0 1 1 0 0 1 1
4 0 1 0 0 0 1 0 0
5 0 1 0 1 1 0 1 1
AB
6 0 1 1 0 1 1 0 0
7 0 1 1 1 1 1 0 1 00 01 11 10
8 1 0 0 0 1 1 1 0 CD 00 X
9 1 0 0 1 1 1 1 1
01 1 1 X 1
11 1 1 X X
10 X X
Z= D
10
Comparator:
11
-Comparator can also check for > and <
- e.g. for a 2-bit word
- possibilities are: 00 01 10 11
01 1 1
11
10 1
A1A 0B'0
12
Addition:
- a half-adder
- to add 2 bits
-a full adder
- to add 3 bits
- 2 bits and a carry
Half-adder:
- adds 2 1-bit numbers
- the sum and carry are generated
A0
+ B0
C0 S0
block diagram:
sum
bits to
be added
carry
13
The half-adder:
Sum Carry
a b s c
0 0 0 0
0 1 1 0 Sum : s = a'b + ab' = a xor b
1 0 1 0
1 1 0 1 Carry: c = ab
14
Full adder:
- but
- all subsequent bits need to have the carry bit added in
- needs to add 3 bits
block diagram:
bits to sum
be added
carry
First: A plus B:
15
Then the second half-adder:
16
The full adder:
= (a xor b) xor c
17
XOR: A’B + AB’
18
b 3 a3 b 2 a2 b 1 a1 b 0 a0
c3 c2 c1 c0
s3 s2 s1 s0
Circuit design for a 4-bit adder - parallel binary adder (or ripple-carry adder)
A 1-bit ALU
ab
a+b
Data bus:
b’
enable lines output may be from
any of the functions
Decoder:
(to choose
function)
F0 F1 function
0 0 ab
enable line for adder -anded with the result from the xor gates (sum)
0 1 a+b
and with the gates computing the carry out
1 0 b’
1 1 a plus b
19
Sequential circuits:
- output depends on both input and the current state of the circuit
The latch:
- the output of each gate feeds into the input of another gate
A latch:
20
gate #1
gate #2
- if D = 1 - if D = 0
- output of gate #1 will be 0 (Q') - the reverse process occurs
- inputs to gate #2 will both be 0 - Q will be 0
- Q will be 1 and stay 1 - and the latch is reset to 0
- so the latch is set to 1
logical 1
logical 0
Clock cycle
21
a clocked D-latch
- to prevent the latch from changing its state until we want it to change
gate #1
gate #2
gate #1
gate #2
22
Clocked D-latch
Truth table:
Clk D Q Q’
1 0 0 1
1 1 1 0
0 X Q Q’
logical 1
logical 0
Clock cycle
Rising edge Falling edge
of pulse of pulse
23
- a D flip-flop
- responds to input only when the clock is making the transition from low to high (or high to low)
- responds on the leading edge or the trailing edge of the clock pulse
A gate delay
Characteristic Table:
- describes the state of a sequential circuit after 1 clock pulse for given inputs and given initial state
24
D-latch:
d q d q
ck ck
D flip-flop:
d q d q
ck ck
Data bus
A read or write
Decoder operation reads or
writes a complete
word.
Control
lines
Data bus
25
3-bit memory
(3 flip-flops)
Data bus
A read or write
Decoder operation reads or
writes a complete
word.
selects word
(address bus)
Chooses read or
write operation
(control bus)
Control
only used for a
lines
read operation
Data bus
control in
26
- the memory circuit
If:
Word 1 = 101
If:
A1 = 0
A0 = 1
If:
CS = 1
RD = 1
OE = 1
27