As 00001030
As 00001030
As 00001030
UNIT – 1
SANJAY GOSWAMI, Asst. Prof.,
CS/IT Department, UCER, Prayagraj
Course Outcome (CO)
1.Studying of the internal bus structure, internal register organization
and instruction processing in the digital computer system.
2.Understanding the representation of integer and decimal numbers
and their arithmetic or logics in digital system with study of designing
ALU.
3.Detail study and analysis of Hardwired and Micro programmed
control unit implementation techniques with sound knowledge of
pipelining.
4.Detail study and analysis of different type of computer memories
and their implementations.
5.Understanding the different ways of communication between
peripheral devices, memories and standard I/O interfaces and
compare them.
Logic Diagram
Consider the full adder circuit shown above with corresponding truth table. If we define
two variables as carry generate Gi and carry propagate Pi then,
P i = Ai ⊕ B i
Gi = Ai Bi
The sum output and carry output can be expressed as
Si = Pi ⊕ Ci
C i +1 = Gi + Pi Ci
Where Gi is a carry generate which produces the carry when both Ai, Bi are one
regardless of the input carry. Pi is a carry propagate and it is associate with the
propagation of carry from Ci to Ci +1.
The carry output Boolean function of each stage in a 4 stage carry-Lookahead adder
can be expressed as C1 = G0 + P0 Cin
C2 = G1 + P1 C1
= G1 + P1 G0 + P1 P0 Cin
C3 = G2 + P2 C2
= G2 + P2 G1+ P2 P1 G0 + P2 P1 P0 Cin
C4 = G3 + P3 C3
= G3 + P3 G2+ P3 P2 G1 + P3 P2 P1 G0 + P3 P2 P1 P0 Cin
Sanjay Goswami, UCER - Prayagraj
Logic Diagram 4-Bits Lookhead Carry Generator
When the mode input (M) is at a low logic, i.e. '0', the circuit act as an
adder and when the mode input is at a high logic, i.e. '1', the circuit
act as a subtractor.
The exclusive-OR gate connected in series receives input M and one
of the inputs B.
When M is at a low logic, we have B⊕0 = B.
The full-adders receive the value of B, the input carry is 0, and the
circuit performs A plus B.
When M is at a high logic, we have B⊕1 = B' and C0 = 1.
The B inputs are complemented, and a 1 is added through the input
carry. The circuit performs the operation A plus the 2's complement of
B.
Sanjay Goswami, UCER - Prayagraj
Binary Incrementer
It adds 1 binary value to the existing binary value stored in the register or
in other words we can simply say that it increases the value stored in the
register by 1. For any n-bit binary incrementer ,‘n’ refers to the storage
capacity of the register which needs to be incremented by 1. So we
require ‘n’ number of half adders .
The half adders are connected one after the other , as it has 2 inputs
and 2 outputs , so for the LSB ( least significant bit) half adder or the
right most half adder is given 1 as direct input( first input) and A0
which is the first bit of the register (second input) , so we get the two
output : sum (S0) and carry (C).
The carry(C) from previous half adder is propagated to the next half
adder, so the carry output of the previous half adder becomes the
input of the next higher order half adder.
So considering the case for 4 half adders the circuit gets in total 4 bits
(A0, A1, A2, A3), 1 is added and we get an incremented output.
It subtracts 1 binary value from the existing binary value stored in the
register or in other words we can simply say that it decreases the existing
value stored in the register by 1. For any n- bit binary decrementer, needs
to be decremented by 1 (using 2’s complement such as for 4-bits, 2’s
complement 0001 is 1111). So we require ‘n’ number of full adders.
It consists of 4 full adders, connected one after the other. Each full
adder has 3 inputs (carry input, 1, A) and 2 outputs (carry output and
S)
A full adder basic consist of 2 half adders and an OR gate.
The carry(C) from previous full adder is propagated to the next full
adder. So carry output from one full adder becomes one of the three
input of the next full adder.
It follows the concept of 2’s complement, so we take 1 as input in all
4 full adder as seen from the above diagram.
So we add 1111 in order to subtract 1.
normalized mantissa
9.2345 x 10 23
n-1
Note: biasedvalue = 2 – 1
(here, n- nos. of bit in exponent part)