b.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and...
TRANSCRIPT
![Page 1: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/1.jpg)
Overview of Register Transfer, Micro Operations and Basic
Computer Organization and Design
Course: B.Sc-CS-II Subject: Computer Organization
And Architecture Unit-2
1
![Page 2: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/2.jpg)
SIMPLE DIGITAL SYSTEMS
• Combinational and sequential circuits can be used to create simple digital systems.
• These are the low-level building blocks of a digital computer.
• Simple digital systems are frequently characterized in terms of– the registers they contain, and– the operations that they perform.
• Typically,– What operations are performed on the data in the registers– What information is passed between registers
2
![Page 3: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/3.jpg)
MICROOPERATIONS (1)
• The operations on the data in registers are called microoperations.
• The functions built into registers are examples of microoperations– Shift– Load– Clear– Increment
3
![Page 4: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/4.jpg)
MICROOPERATION (2)
An elementary operation performed (during one clock pulse), on the information stored in one or more registers
R f(R, R)
f: shift, load, clear, increment, add, subtract, complement,and, or, xor, …
ALU(f)
Registers(R) 1 clock cycle
4
![Page 5: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/5.jpg)
ORGANIZATION OF A DIGITAL SYSTEM[1]
- Set of registers and their functions
- Microoperations set
Set of allowable microoperations provided by the organization of the computer
- Control signals that initiate the sequence of microoperations (to perform the functions)
• Definition of the (internal) organization of a computer
5
![Page 6: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/6.jpg)
REGISTER TRANSFER LEVEL[1]
• Viewing a computer, or any digital system, in this way is called the register transfer level
• This is because we’re focusing on– The system’s registers– The data transformations in them, and– The data transfers between them.
6
![Page 7: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/7.jpg)
REGISTER TRANSFER LANGUAGE[1]
• Rather than specifying a digital system in words, a specific notation is used, register transfer language
• For any function of the computer, the register transfer language can be used to describe the (sequence of) microoperations
• Register transfer language– A symbolic language– A convenient tool for describing the internal organization of digital
computers– Can also be used to facilitate the design process of digital systems.
7
![Page 8: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/8.jpg)
DESIGNATION OF REGISTERS
• Registers are designated by capital letters, sometimes followed by numbers (e.g., A, R13, IR)
• Often the names indicate function:– MAR - memory address register– PC - program counter– IR - instruction register
• Registers and their contents can be viewed and represented in various ways
– A register can be viewed as a single entity:
– Registers may also be represented showing the bits of data they contain
MAR
8
![Page 9: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/9.jpg)
DESIGNATION OF REGISTERS[1]
R1 Register
Numbering of bits
Showing individual bits
SubfieldsPC(H) PC(L)
15 8 7 0
- a register - portion of a register - a bit of a register
• Common ways of drawing the block diagram of a register
7 6 5 4 3 2 1 0
R215 0
• Designation of a register
9
![Page 10: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/10.jpg)
REGISTER TRANSFER
• Copying the contents of one register to another is a register transfer
• A register transfer is indicated asR2 R1– In this case the contents of register R1 are copied (loaded) into
register R2– A simultaneous transfer of all bits from the source R1 to the
destination register R2, during one clock pulse– Note that this is a non-destructive; i.e. the contents of R1 are not
altered by copying (loading) them to R2
10
![Page 11: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/11.jpg)
REGISTER TRANSFER
• A register transfer such as
R3 R5
Implies that the digital system has
– the data lines from the source register (R5) to the destination register (R3)
– Parallel load in the destination register (R3)– Control lines to perform the action
11
![Page 12: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/12.jpg)
CONTROL FUNCTIONS[2]
• 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
Which means “if P = 1, then load the contents of register R1 into register R2”, i.e., if (P = 1) then (R2 R1)
12
![Page 13: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/13.jpg)
HARDWARE IMPLEMENTATION OF CONTROLLED TRANSFERS
Implementation of controlled transfer P: R2 R1
Block diagram
Timing diagram
Clock
Transfer occurs here
R2
R1
Control Circuit
LoadP
n
Clock
Load
t t+1
• The same clock controls the circuits that generate the control function and the destination register• Registers are assumed to use positive-edge-triggered flip-flops
13
![Page 14: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/14.jpg)
SIMULTANEOUS OPERATIONS
• If two or more operations are to occur simultaneously, they are separated with commas
P: R3 R5, MAR IR
• Here, if the control function P = 1, load the contents of R5 into R3, and at the same time (clock), load the contents of register IR into register MAR
14
![Page 15: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/15.jpg)
BASIC SYMBOLS FOR REGISTER TRANSFERS[2]
Capital letters Denotes a register MAR, R2 & numerals Parentheses () Denotes a part of a register R2(0-7), R2(L)
Arrow Denotes transfer of information R2 R1Colon : Denotes termination of control function P:Comma , Separates two micro-operations A B, B A
Symbols Description Examples
15
![Page 16: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/16.jpg)
CONNECTING REGISTRS
• In a digital system with many registers, it is impractical to have data and control lines to directly allow each register to be loaded with the contents of every possible other registers
• To completely connect n registers n(n-1) lines• O(n2) cost
– This is not a realistic approach to use in a large digital system
• Instead, take a different approach• Have one centralized set of circuits for data transfer – the bus• Have control circuits to select which register is the source, and
which is the destination
16
![Page 17: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/17.jpg)
Micro-Operations[2]
A micro-operation is an elementary operation, performed during one clock pulse, on the information stored in one or more registers.R1 ← R1 + R2
17
Register 1 Register 2
Binary Adder
LD1
CLK
R1
R2
2
3
Adder 5
LD1
CLK
R1
R2
2
3
Adder 5
LD1
5
8
Adder
![Page 18: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/18.jpg)
Computer Organization
The organization of a digital computer is best defined by specifying:– The set of registers it contains and their function– The sequence of micro-operations performed on
the binary information stored in the registers– The control functions that initiate the sequence
of micro-operations
18
![Page 19: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/19.jpg)
Register Designation[2]
• Whole register• Portion of a register• One bit in a register
19 /
R1
Register
7 6 5 4 3 2 1 0
Individual Bits
R1
Bit Numbering
7 0
Register Fields
DataAddress
![Page 20: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/20.jpg)
Parallel Register Transfer[2]
• UnconditionalR1 ← R2
• ConditionalP: R1 ← R2
• SimultaneousR1 ← R2 , R3 ← R2
20 /
Register 1
Register 2
ControlLogic
LoadP
CLK
LD1
R1 2 5
![Page 21: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/21.jpg)
Basic Symbols for Reg. Transfer[2]
21 /
Symbol Description ExamplesCapital Letters & Numerals Denotes a register A , MBR , R3
Subscript Denotes a bit of a register A2 , B i
Parenthesis ( ) Denotes a portion of a register I(1– 5) , MBR(AD)
Arrow ← Denotes transfer of information A ← B
Colon : Denotes termination of control function P:
Comma , Separates two micro-operations A ← B , B ← A
![Page 22: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/22.jpg)
Serial Register Transfer
S: A i ← A i – 1 , A 0 ← 0 i = 1, 2, 3
22 /
3 2 1 0A
0
![Page 23: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/23.jpg)
Bus Transfer[2]
23 /
Register A Register B Register C Register D
4
Register R3 Register R2 Register R1 Register R0
4
![Page 24: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/24.jpg)
Bus Transfer
24 /
Register A Register B Register C Register D
4
4 4 4 4
Register A Register B Register C Register D
4
![Page 25: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/25.jpg)
Bus Transfer
25 /
Register A
A3 A2 A1 A0 B3 B2 B1 B0
Register B
C3 C2 C1 C0
Register C
D3 D2 D1 D0
Register D
S3 S2 S1 S0
![Page 26: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/26.jpg)
Bus Transfer
26 /
Register A Register B Register C Register D
MUX
4
4 4 4 4
Register A Register B Register C Register D
4
![Page 27: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/27.jpg)
Bus Transfer
27 /
Register A
A3 A2 A1 A0 B3 B2 B1 B0
Register B
C3 C2 C1 C0
Register C
D3 D2 D1 D0
Register D
B3 C3 D3 B2 C2 D2 B1 C1 D1 B0 C0 D0
MUXS1
S0
0 1 2 3
Y
MUXS1
S0
0 1 2 3
Y
MUXS1
S0
0 1 2 3
Y
MUXS1
S0
0 1 2 3
Y
4 - bit Bus
xy
![Page 28: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/28.jpg)
Bus Transfer
28 /
Register R3 Register R2 Register R1 Register R0
4
2 x 4Decoder
I1
I0
Y3 Y2 Y1 Y0zw
EnableE
Ld Ld Ld Ld
![Page 29: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/29.jpg)
Memory Transfer
MBR ← MM ← MBR
29 /
MAR MemoryUnit
Address
MBR
Read
Write
![Page 30: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/30.jpg)
Memory Transfer[2]
MBR ← MMBR ← M [ R1 ]
30 /
MUX MemoryUnit
Address
MBR
Read
Write
Select
R1
R2
![Page 31: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/31.jpg)
Micro-Operation Summary
31 /
Symbolic DescriptionA ← B Transfer content of register B into register A
MAR ← MBR(AD) Transfer content of AD portion of register MBR into MAR
A ← Constant Transfer binary (code) constant into register A
ABUS ← R1
R2 ← ABUSTransfer content of R1 into bus A and at the same time transfer content of bus A into R2
MAR Memory address register: holds the address of the memory unit
MBR Memory buffer register: holds the data transferred in or out of the memory
M [ R ] Denotes the memory word specified by the address presently available in register R
M Denotes the memory word specified by the address in an implied register MAR
MBR ← M Memory read operation
M ← MBR Memory write operation
![Page 32: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/32.jpg)
Micro-Operation Types
• Data Transfer• Arithmetic Operations• Logic Operations• Shift Operations
32 /
![Page 33: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/33.jpg)
Micro-Operation Types[2]
• Data Transfer• Arithmetic OperationsS = A + B• Logic Operations• Shift Operations
33 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0 Binary Adder
A3B3
A2B2
A1B1
A0B0
C0
S3 S2 S1 S0C4
![Page 34: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/34.jpg)
Addition
S = A + B
34 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = ?Time (Propagation) delay = ?
A0B0
CiCy
S
![Page 35: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/35.jpg)
Addition
S = A + B
t = 0
35 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = ?Time (Propagation) delay = ?
A0B0
CiCy
S
![Page 36: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/36.jpg)
Addition
S = A + B
t =
36 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = ?Time (Propagation) delay = ?
A0B0
CiCy
S
![Page 37: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/37.jpg)
Addition
S = A + B
t = 2
37 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = ?Time (Propagation) delay = ?
A0B0
CiCy
S
![Page 38: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/38.jpg)
Addition
S = A + B
t = 3
38 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = ?Time (Propagation) delay = ?
A0B0
CiCy
S
![Page 39: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/39.jpg)
Addition
S = A + B
t = 4
39 /
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
C0
Time (Propagation) delay = 4 Time (Propagation) delay = 4
A0B0
CiCy
S
![Page 40: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/40.jpg)
Addition
EA ← A + B
40 /
Binary Adder C0
Load
A BE
Cy
FlagFlag
![Page 41: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/41.jpg)
Subtraction
A ← A – B _A ← A + ( B + 1 )
41 /
B B
0
B B
1
FA FA FA FA
A3B3
A2B2
A1B1
A0B0
S3 S2 S1 S0C4
M
![Page 42: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/42.jpg)
Increment
A ← A + 1
42 /
FA FA FA FA
A3
0A2
0A1
0A0
0
S3 S2 S1 S0C4
1
![Page 43: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/43.jpg)
Decrement
A ← A – 1
43 /
FA FA FA FA
A3
1A2
1A1
1A0
1
S3 S2 S1 S0C4
0
![Page 44: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/44.jpg)
Arithmetic
44 /
A3 A2 A1 A0
S3 S2 S1 S0C4
B3 B2 B1 B0
FA
0
MUX0 1 2 3
S1
S0Y
1
FA
0
MUX0 1 2 3
S1
S0Y
1
FA
0
MUX0 1 2 3
S1
S0Y
1
FA
0
MUX0 1 2 3
S1
S0Y
1 C2 C1 C0
![Page 45: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/45.jpg)
Arithmetic
45 /
C2 C1 C0 Function
0 0 0 Y = A + B
0 0 1 Y = A + B + 1
0 1 0 Y = A + B
0 1 1 Y = A – B
1 0 0 Y = A
1 0 1 Y = A + 1
1 1 0 Y = A – 1
1 1 1 Y = A
A3 A2 A1 A0
Y3 Y2 Y1 Y0C4
B3 B2 B1 B0
FA
0
MUX0 1 2 3
S1S0Y
1
FA
0
MUX0 1 2 3
S1S0Y
1
FA
0
MUX0 1 2 3
S1S0Y
1
FA
0
MUX0 1 2 3
S1S0Y
1 C2 C1 C0
![Page 46: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/46.jpg)
Arithmetic
46 /
C2 C1 C0 Function
0 0 0 S = A + B
0 0 1 S = A + B + 1
0 1 0 S = A + B
0 1 1 S = A – B
1 0 0 S = A
1 0 1 S = A + 1
1 1 0 S = A – 1
1 1 1 S = A
Arithmetic Unit
A B44
4
S
C2C1C0
![Page 47: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/47.jpg)
Micro-Operation Types[3]
• Data Transfer• Arithmetic Operations• Logic Operations• Shift Operations
47 /
AND: S = A Λ BOR: S = A V BXOR: S = A B
AND: S = A • BOR: S = A + BXOR: S = A B
![Page 48: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/48.jpg)
Logic
48 /
MUX0 1 2 3
S1
S0Y
Ai Bi
Fi
C1 C0
![Page 49: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/49.jpg)
Logic
49 /
C1 C0
MUX0 1 2 3
S1
S0Y
A0 B0
F0
MUX0 1 2 3
S1
S0Y
A1 B1
F1
MUX0 1 2 3
S1
S0Y
A2 B2
F2
MUX0 1 2 3
S1
S0Y
A3 B3
F3
![Page 50: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/50.jpg)
Logic
50 /
C1 C0 Function
0 0 Y = A Λ B
0 1 Y =A V B
1 0 Y = A B
1 1 Y = A
C1 C0
MUX0 1 2 3
S1
S0Y
A0 B0
F0
MUX0 1 2 3
S1
S0Y
A1 B1
F1
MUX0 1 2 3
S1
S0Y
A2 B2
F2
MUX0 1 2 3
S1
S0Y
A3 B3
F3
![Page 51: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/51.jpg)
Logic
51 /
C1 C0 Function
0 0 F = A Λ B
0 1 F = A V B
1 0 F = A B
1 1 F = A
Logic Unit
A B44
4
F
C1C0
![Page 52: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/52.jpg)
Micro-Operation Types[4]• Data Transfer• Arithmetic Operations• Logic Operations• Shift Operations
– Logical Shift shl Ashr A
– Arithmetic Shift ashl Aashr A
– Circular Shift cil Acir A
52 /
A7 A0 0
A7 A00
A7 A6 A0 0
A7 A6 A0
A7 A0
![Page 53: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/53.jpg)
Logical & Arithmetic Shift
53 /
C1 C0 Function
0 0 F = A
0 1 F = shr A
1 0 F = shl A
1 1 F = ashr A
F3
C1C0
A3 A2 A0A1
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
0A3
F2 F1 F0
0A3
A2 A1
![Page 54: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/54.jpg)
Logical & Arithmetic Shift
54 /
C1 C0 Function
0 0 F = A
0 1 F = shr A
1 0 F = shl A
1 1 F = ashr A
F3
00
A3 A2 A0A1
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
0A3
F2 F1 F0
0A3
A2 A1
![Page 55: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/55.jpg)
Logical & Arithmetic Shift
55 /
C1 C0 Function
0 0 F = A
0 1 F = shr A
1 0 F = shl A
1 1 F = ashr A
F3
01
A3 A2 A0A1
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
0A3
F2 F1 F0
0A3
A2 A1
![Page 56: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/56.jpg)
Logical & Arithmetic Shift
56 /
C1 C0 Function
0 0 F = A
0 1 F = shr A
1 0 F = shl A
1 1 F = ashr A
F3
10
A3 A2 A0A1
MUX0 1 2 3
S1
S0YMUX
0 1 2 3S1
S0YMUX
0 1 2 3S1
S0YMUX
0 1 2 3S1
S0Y
0A3
F2 F1 F0
0A3
A2 A1
![Page 57: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/57.jpg)
Logical & Arithmetic Shift
57 /
C1 C0 Function
0 0 F = A
0 1 F = shr A
1 0 F = shl A
1 1 F = ashr A
F3
11
A3 A2 A0A1
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
MUX0 1 2 3
S1S0Y
0A3
F2 F1 F0
0A3
A2 A1
![Page 58: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/58.jpg)
Logical, Arithmetic, & Circular Shift
58 /
F3
C2
C1
C0
A3 A2 A0A1
MUX0 1 2 3
S1
S0YMUX
0 1 2 3S1
S0YMUX
0 1 2 3S1
S0YMUX
0 1 2 3S1
S0Y
A3
F2 F1 F0
A3A2 A1
A3A0
C2 Shift
0 Regular
1 Circular
![Page 59: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/59.jpg)
Logical, Arithmetic, & Circular Shift
59 /
Shifter
A4
C2C1C0
4
F
C2 C1 C0 Function
x 0 0 F = A
0 0 1 F = shr A
0 1 0 F = shl A
0 1 1 F = ashr A
1 0 1 F = cir A
1 1 0 F = cil A
![Page 60: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/60.jpg)
Arithmetic and Logic Unit (ALU)
60 /
Arithmetic Unit
A
4
4
C0C1C2
Logic Unit
B
4
4
Shifter
4
C4C5C6
4
Y
MUXS0 Y
0 1C3
![Page 61: B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic computer organization and design](https://reader035.vdocuments.us/reader035/viewer/2022070512/589bdb021a28aba5108b4615/html5/thumbnails/61.jpg)
References1. Computer Organization and Architecture,
Designing for performance by William Stallings, Prentice Hall of India.
2. Modern Computer Architecture, by Morris Mano, Prentice Hall of India.
3. Computer Architecture and Organization by John P. Hayes, McGraw Hill Publishing Company.
4. Computer Organization by V. Carl Hamacher, Zvonko G. Vranesic, Safwat G. Zaky, McGraw Hill Publishing Company.