COA unit 2
COA unit 2
Register Transfer
Decoders are used to ensure that no more than one control input is
active at any given time
This circuit can replace the multiplexer in Figure 4.3
To construct a common bus for four registers of n bits each using
three-state buffers, we need n circuits with four buffers in each
Only one decoder is necessary to select between the four registers
Designate a memory word by the letter M
It is necessary to specify the address of M when writing
memory transfer operations
Arithmetic Microoperations
Logic Microoperations
A ← A⊕ B
The selective-clear operation clears to 0 the bits in A only
where there are corresponding 1‟s in B
1010 A before
1100 B
0010 A after
A← A B
The clear operation compares the bits in A and B and produces an all
0‟s result if the two number are equal
1010 A
1010 B
0000 A ← A⊕ B
Shift Microoperations
The circular shift (aka rotate) circulates the bits of the register
around the two ends without loss of information
The symbols cil and cir are for circular shift left and right
The arithmetic shift shifts a signed binary number to the left or right
To the left is multiplying by 2, to the right is dividing by 2
Arithmetic shifts must leave the sign bit unchanged
A sign reversal occurs if the bit in Rn-1 changes in value after the shift
This happens if the multiplication causes an overflow
An overflow flip-flop Vs can be used to detect
theoverflow Vs = Rn-1 ⊕Rn-2