Professional Documents
Culture Documents
A three-state gate is a digital circuit that shows three states. Two of the states
are equivalent to logic 1 and 0. The third state is a high impedance state. The
high-impedance state behaves as an open circuit, i.e., the output is
disconnected from the input and does not have any logical significance.
Register Transfers – Tri-state Buffer Based Bus
System
The construction of a bus system with tri-state buffers is shown in the following
figure:
Bus and Memory Transfers
Memory Read
The read operation for the transfer of a memory unit M from an address register MAR
to another data register DR can be illustrated as:
Read: DR ←M[MAR]
Memory Write
The write operation transfer the contents of a data register to a memory word M
selected by the address. Assume that the input data are in register R1 and the address in
the MAR. The write operation can be stated symbolic as follows:
Write: M[MAR] ← R1
This cause a transfer on information from R1 into the memory word M selected by the
address in AR
Types of Micro-operations
Register Transfer
Transfer binary information from one register to another
P: R2 R1
Arithmetic
Perform arithmetic operations on numeric data stored in registers
P: R3 R1 + R2
Logic
Perform bit manipulation operation on non-numeric data stored in registers.
P: R3 R1 exor R2
Shift
Perform shift operations on data stored in registers
P: R2 shl R1
Register Transfers
Because the sign of the number must remain the same arithmetic
shift-right must leave the sign bit unchanged, when it is multiplied or
divided by 2. The left most bit in a register holds the sign bit, and the
remaining bits hold the number. The sign bit is 0 for positive and 1
for negative. Negative numbers are in 2’s complement form.
Following figure shows a typical register of n bits with an arithmetic
shift right.
Types of Shift
Arithmetic Shifts
An arithmetic shift left inserts a 0 into R0, shifts all other bits to the
left. Initial Rn-1 is lost and replaced by Rn-2.
A sign reversal is occurs if the bit in Rn-1 changes in value after the
shift after the shift. This happens if the multiplication by 2 causes an
overflow.
Detecting Overflow: overflow occurs if, before the shift, Rn-1 ≠ Rn-2.
An overflow flip-flop Vs is used to detect overflow.
Vs = Rn-1 exor Rn-2
Types of Shift
Logical Shifts
Types of Shift
Circular Shifts (Rotate)
Arithmetic Circuit for
Arithmetic Micro-operations
Arithmetic Circuit for
Arithmetic Micro-operations