Professional Documents
Culture Documents
AND
MICROOPERATIONS
1
SYLLABUS
Easy to Design
Low Cost
Very Fast Speed
More Popular with upgrading Technology
Easy to Function
3
Easy to Program
BLOCK DIAGRAM OF DIGITAL COMPUTERS
ALU
Input OutPut
Unit Unit
Control
Unit
• KeyBoard • Monitor
• Mouse • Printer
Memory 4
Unit
FLIP FLOP
It can store 1-bit information.
It can be designed using NAND or NOR gates.
RS Flip Flop
D Flip Flop
T Flip Flop
JK Flip Flop
R1 7 6 5 4 3 2 1 0
15 0 15 8 7 0
PC PC(H) PC(L)
6
BLOCK DIAGRAM OF REGISTER TRANSFER
Implementation of controlled transfer
P: R2 R1
Control
P Load Clock
Block diagram Circuit R2
R1
t t+1
Timing diagram Clock
Load
Transfer occurs here
7
1.3 REGISTER AND SHIFT REGISTER
To increase the storage capacity, we use a group of
flip flops. This group of flip flop is known as a
Register.
9
BUS AND BUS TRANSFER (USING MULTIPLEXERS)
10
CONTINUE…
Function Table
S1 S0 Register Selected
0 0 A
0 1 B
1 0 C
1 1 D
11
THREE-STATE BUS BUFFERS
12
USING TRI STATE BUFFER GATES
Select S0 0
1
S1 2
Enable 3
Function Table
S1 S0 Register Selected
14
MEMORY TRANSFER
Two Types of transfer operation
Memory Read
Memory Write
15
MEMORY TRANSFER
Memory Read
The transfer of information into DR from
the Memory Word M selected by the address AR.
Memory Write
The transfer of New information to be
stored into the memory is called a write operation.
R3 R1+ R2 (ADD)
R3 R1 –R2 (Sub)
R1 R1 +1 Increment by 1
R1 R1 -1 Decrement by 1
17
BINARY ADDER
B3 A3 B2 A2 B1 A1 B0 A0
FA C3 FA C2 FA C1 FA C0
C4 S3 S2 S1 S0
18
BINARY ADDER - SUBTRACTOR
B3 A3 B2 A2 B1 A1 B0 A0
C3 C2 C1 C0
FA FA FA FA
C4 S3 S2 S1 S0
B M O/P
When M=0 the circuit is ADDER.
0
0 0
x y x y x y x y
HA HA HA HA
C S C S C S C S
C4 S3 S2 S1 S0
20
ARITHMETIC CIRCUIT
Cin
S1
S0
A0 X0 C0
S1 D0
S0 FA
B0 0 4x1 Y0 C1
1 MUX
2
3
A1 X1 C1
S1 FA D1
S0
B1 0 4x1 Y1 C2
1 MUX
2
3
A2 X2 C2
S1 FA D2
S0
B2 0 4x1 Y2 C3
1 MUX
2
3
A3 X3 C3
S1 FA D3
S0
B3 0 4x1 Y3 C4
1 MUX
2
3 Cout
0 1
AND ()
OR (),
XOR () 22
Complement/NOT
LIST OF LOGIC MICROOPERATIONS
Boolean Function Micro operations Logic Function
F0=0 F0 Clear
F1=x FA Transfer A
F2=y FB Transfer B
F3=x.y FA /\ B AND
F4=x+y FA\/ B OR
F5=(xy)’ F A /\ B NAND
F6=(x+y)’ FA\/ B NOR
F7=x y FA B EX-OR
F8= (x y)’ FA B EX-NOR
F9=x’ FA’ Complement A
F10=y’ FB’ Complement B
FA /\ B’
23
F11=x.y’
F12=x’.y FA ‘/\ B
F13=x’+y FA’\/ B
F14=x+y’ FA\/ B’
F15=1 F1 Set to all 1
24
APPLICATION OF LOGIC MICRO OPERATION
SELECTIVE SET
1100 At
1010 B
1110 At+1 (A A + B)
25
SELECTIVE COMPLEMENT
1100 At
1010 B
0110 At+1 (A A B)
26
SELECTIVE CLEAR
1100 At
1010 B
0100 At+1 (A A B’)
27
MASK OPERATION
1 1 0 0 At
1010 B
1 0 0 0 At+1 (A A B)
28
CLEAR OPERATION
1 0 1 0 At
1010 B
0 0 0 0 At+1
29
INSERT OPERATION
Insert operation inserts a new value into a group of
bits.
This is done by first masking the bits and then
Oring them with the required value.
Example
A 0110 1010
B 0000 1111 Mask
0000 1010 After Masking
Serial
• A left shift operation input
31
LOGICAL SHIFT
In a logical shift the serial input to the shift is a
0.
A right logical shift operation:
0
32
CIRCULAR SHIFT
In a circular shift the serial input is the bit that is
shifted out of the other end of the register.
A right circular shift operation:
R3 cil R3
ARITHMETIC SHIFT
An arithmetic shift is meant for signed binary
numbers
An arithmetic left shift multiplies a signed number
by two
An arithmetic right shift divides a signed number by
two
A right arithmetic shift operation:
sign
bit
A left arithmetic
sign
bit shift operation:
34
1.8 ARITHMETIC LOGIC SHIFT UNIT
35
S3 S2 S1 S0 Cin Operati Function
on
0 0 0 0 0 F=A Transfer A
0 0 0 0 1 F=A+1 Increment A
0 0 0 1 0 F=A+B Addition
0 0 0 1 1 F=A+B+1 Addition with
Carry
0 0 1 0 0 F=A+B’ Subtraction with
borrow
0 0 1 0 1 F=A+B’+ Subtraction
1
0 0 1 1 0 F=A-1 Decrement A
0 0 1 1 1 F=A Transfer A 36
37