Professional Documents
Culture Documents
Lecture 6 General Register Organization
Lecture 6 General Register Organization
list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
os
de
vi
h/
c
fte
UNIT-1 : LECTURE-6
So
2Z
/A
/c
General Register Organization
m
co
e.
ub
t
ou
.y
w
w
//w
s:
tp
ht
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
Prerequisites
os
de
vi
h/
▪ Registers
c
fte
So
2Z
Register Transfer and Memory Transfer
/A
▪
/c
m
co
e.
ub
t
ou
.y
w
w
//w
s:
tp
ht
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
Multiplexer https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
os
▪
de
2n data inputs, ‘n’ selection lines and single output line.
vi
h/
Example: 8x1 Multiplexer
c
fte
▪ 2x1 Multiplexer 4x1 Multiplexer 8x1 Multiplexer Input: 8 -> pow(2,3)
So
Selection lines: 3
2Z
16x1 Multiplexer ……. Output: 1
/A
/c
m
co
e.
Inputs
ub
8x1 Outputs
t
ou
A
.y B Mux
w
C
w
//w
D
Select
s:
tp
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
Decoder https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
os
▪ Decoder is a combinational circuit that has ‘n’ input lines and 2n data outputs out of which
de
vi
h/
only ONE output is activated based on ‘n’ inputs. Example: 3*8 Decoder
c
fte
So
▪ 2x4 Decoder 3x8 Decoder Input: 3
2Z
/A
4x16 Decoder
/c
Output: 8 -> pow(2,3)
m
co
e.
ub
t
ou
.y
w
w
//w
s:
tp
ht
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
Input
Clock
os
A bus organization
de
for seven CPU
vi
R1
h/
R2
registers.
c
fte
R3
R1 R2+R3
So
R4
2Z
1. MUX A selector (SELA): R5
/A
R6
to place the content of R2
/c
R7
into bus A .
m
2 . MUX B selector Load
co
(7 lines)
(SELB): to place the { }
e.
SELA MUX MUX SELB
ub
content o f R 3 into bus B
t
ou
3 . ALU operation selector 3x8
A bus B bus
.y
(OPR): to provide the decoder w
arithmetic addition
w
//w
A + B. SELD
s:
OPR ALU
tp
4. Decoder destination
ht
There are 14 binary selection inputs in the unit, and their combined value specifies a control
os
de
word.
vi
h/
c
SEL A SEL B SEL D OPR
fte
So
3 3 3 5
2Z
/A
/c
EXAMPLE
m
co
e.
R1 R2 - R3
tub
ou
Field: SELA SELB SELD OPR .y
w
w
Symbol: R2 R3
//w
R1 SUB
s:
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
6
Encoding of Register Selection Fields
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
os
de
000 Input Input None
vi
h/
001 R1 R1 R1
c
fte
So
010 R2 R2 R2
2Z
/A
011 R3 R3 R3
/c
m
100 R4 R4 R4
co
e.
101 R5 R5 R5
ub
t
ou
110 R6 R6 R6
.y
w
111 R7 R7 R7
w
//w
s:
tp
NOTE: When SELA or SELB is 000, the corresponding multiplexer selects the external input data.
ht
os
de
00000 Transfer A TSFA
vi
h/
c
00001 Increment A INCA
fte
So
00010 ADD A + B ADD
2Z
/A
00101 Subtract A - B SUB
/c
m
00110 Decrement A DECA
co
e.
ub
01000 AND A and B AND
t
ou
01010 OR A and B OR
.y
w
w
01100 XOR A and B XOR
//w
s:
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
10000 Shift right A SHRA
Symbolic Designation
os
de
vi
Microoperation SEL A SEL B SEL D OPR Control Word
h/
c
fte
R1 R2 - R3 R2 R3 R1 SUB 010 011 001 00101
So
2Z
R4 R4 R5 R4 R5 R4 OR 100 101 100 01010
/A
/c
R6 R6 + 1
m
R6 - R6 INCA 110 000 110 00001
co
e.
R7 R1
ub
R1 - R7 TSFA 001 000 111 00000
t
ou
Output R2
.y
R2 - NONE w TSFA 010 000 000 00000
w
Output Input
//w
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L
Thank
os
de
vi
h/
c
fte
So
2Z
You
/A
/c
m
co
e.
ub
t
ou
.y
w
w
//w
s:
tp
ht
https://www.youtube.com/playlist?list=PLqisrLSFbMDKZRViIED3mwBVHl5c4LG-L