Académique Documents
Professionnel Documents
Culture Documents
Register Transfer
Arithmetic Microoperations
Logic Microoperations
Shift Microoperations
DESIGNATION OF REGISTERS
AR
Registers may also be represented showing the bits of data they contain
Register Transfer Language
DESIGNATION OF REGISTERS
15 0 15 8 7 0
R2 PC(H) PC(L)
Numbering of bits Subfields
Register Transfer
REGISTER TRANSFER
R2 R1
CONTROL FUNCTIONS
Often actions need to only occur if a certain condition is true
This is similar to an if statement in a programming language
In digital systems, this is often done via a control signal, called
a control function
If the signal is 1, the action takes place
This is represented as:
P: R2 R1
Load
Transfer occurs here
The same clock controls the circuits that generate the control function
and the destination register
Register Transfer
SIMULTANEOUS OPERATIONS
P: R3 R5, AR IR
CONNECTING REGISTRS
Bus lines
4-bit Common Bus using Multiplexer
Bus and Memory Transfers
MEMORY READ
MEMORY WRITE
M[AR] R1
MICROOPERATIONS
ARITHMETIC MICROOPERATIONS
The basic arithmetic microoperations are
Addition
Subtraction
Increment
Decrement
BINARY ADDER
B3 A3 B2 A2 B1 A1 B0 A0
FA C3 FA C2 FA C1 FA C0
C4 S3 S2 S1 S0
Arithmetic Microoperations
FA C3 FA C2 FA C1 FA C0
C4 S3 S2 S1 S0
4-bit arithmetic circuit
Arithmetic Microoperations
ARITHMETIC CIRCUIT
Cin
S1
S0
A0 X0 C0
S1 D0
S0 FA
B0 0 4x1 Y0 C1
1 MUX
2
3
Cout
0 1
Arithmetic Microoperations
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
LOGIC MICROOPERATIONS
Specify binary operations on the strings of bits in registers
Ai
0
Bi
1
4X1 Fi
MUX
2
3 Select
S1
S0
Function table
S1 S0 Output -operation
0 0 F=AB AND
0 1 F = AB OR
1 0 F=AB XOR
1 1 F = A Complement
Shift Microoperations
SHIFT MICROOPERATIONS
The operation that changes the adjacent bit position of the binary
values stored in the register is known as shift micro operation.
SHIFT MICROOPERATIONS
There are three types of shifts
Logical shift
Circular shift
Arithmetic shift
Arithmetic D i
Circuit
Ci+1
E
Logic
Bi Circuit
Ai
Shift Microoperations
Arithmetic D i
Circuit
Ci+1
Ei
Logic
Bi Circuit
Ai
Ai-1 shr
Ai+1 shl
Shift Microoperations
Arithmetic D i
Circuit
Ci+1
Ei
Logic
Bi Circuit
Ai
Ai-1 shr
Ai+1 shl
Shift Microoperations
Arithmetic D i
Circuit
Select
Ci+1
0 4x1 Fi
1 MUX
2
3
Ei
Logic
Bi Circuit
Ai
Ai-1 shr
Ai+1 shl
Shift Microoperations
Arithmetic D i
Circuit
Select
Ci+1
0 4x1 Fi
1 MUX
2
3
Ei
Logic
Bi Circuit
Ai
Ai-1 shr
Ai+1 shl
Shift Microoperations
Arithmetic D i
Circuit
Select
Ci+1
0 4x1 Fi
1 MUX
2
3
Ei
Logic
Bi Circuit
Ai
Ai-1 shr
Ai+1 shl
5. Draw and explain 4-bit arithmetic logic and shift unit with all
functional table.