Upload
sunil-pillai
View
223
Download
0
Embed Size (px)
Citation preview
8/9/2019 Arithmetic Micro Operation
1/11
8/9/2019 Arithmetic Micro Operation
2/11
MICROOPERATION
elementary operation performed on data stored in registers
TYPES OF MICROOPERATIONS
Register Transfer
Arithmetic
Logic
Shift
8/9/2019 Arithmetic Micro Operation
3/11
ARITHMETIC MICROOPERATIONS
Add, Subtract, Increment, Decrement and Shift
Add :- R3 R1 + R2
Subtract :- R3 R1 + R2 + 1
Increment :- R1 R1 + 1
Decrement :- R1 R1 - 1
8/9/2019 Arithmetic Micro Operation
4/11
Full Adder - Digital circuit that performs sum of 2 bits
and a previous carry
Binary Adder - Digital circuit that generates the arit-
hmetic sum of 2 binary numbers of a
any length
8/9/2019 Arithmetic Micro Operation
5/11
Constructed with full-adders connected in cascade
Output carry from one full-adder connected to the input
carry of the next full-adder
The S outputs of the full-adders generate the required sumbits
8/9/2019 Arithmetic Micro Operation
6/11
Mode input M controls the operation
M = 0 => Acts as adder circuit
M = 1 => Acts as subtractor circuit
8/9/2019 Arithmetic Micro Operation
7/11
Each EX-OR gate receives input M and one of the inputs of
B
When M = 0 , B ex-or 0 = B,
Full adders receive value of B, input carry is 0,
hence circuit performs A + B
When M = 1, B ex-or 1 = B',Full adder receive complement of B, input carry is 1,
hence circuit performs A - B
8/9/2019 Arithmetic Micro Operation
8/11
The increment microoperation adds one to the number in
the register
8/9/2019 Arithmetic Micro Operation
9/11
One of the inputs to the least significant half-adder is conn-
ected to logic-1
The other input is connected to the least significant bit ofthe number to be incremented
The output carry from one half-adder is connected to one of
the inputs of the next higher-order half-adder
The incremented output of the bits A0 through A3 is obtained
from S0 through S3
The output carry C4 will be 1 only after incrementing binary
1111
8/9/2019 Arithmetic Micro Operation
10/11
8/9/2019 Arithmetic Micro Operation
11/11
ARIHTMETIC CIRCUIT FUNCTION TABLE