COA Part-I
COA Part-I
Organization
&
Architecture
Dr. Manoj Kumar Mishra
• Control Signals
• Interfaces between the Computer and Peripherals
• Memory Technology used
• Etc
Arithmetic
Input and
logic
Memory
Output
Control
I/O Processor
Input Unit :: Computers read through input units(Keyboard/Mouse/Joystick etc) --> Memory -
-> Processor
Output Unit :: Processed results to the output units (Printer / Display unit etc).
• Most computer
executed in ALU of the Processor.
• Arithmetic or Logic Operations is initiated
by loading the operands into memory – MAR MDR
ALU
• Each Register can store one word of data. Rn - 1
ALU contains ::
Memory address register (MAR)
Memory Data Register (MDR)
Instruction register (IR)
Program counter (PC)
General-purpose register (R0 – Rn-1)
4/5/2021 Dr. Manoj Kumar Mishra 11
Arithmetic and Logic Unit Memory
(ALU)
MDR :: contains a word of data to be stored in
memory, or is used to receive a word from memory. MAR MDR
PC R0
PC R0
Instruction Fetch R1
IR
ALU
Operand Fetch Rn - 1
n general purpose
registers
Storing the Result Connection Between the Processor and the Memory
Increament PC
Instruction Fetch ::
Programs reside in the memory & get there through
input devices
• Execution starts when PC is set to point to the first
MAR MDR
Control
R1
• The contents of PC are transferred to MAR IR
• The first instruction is read out and loaded into MDR n general purpose
registers
Operand Fetch ::
• If required, Operand residing in Memory, is
then fetched by sending its address to the MAR MDR
R0
• The Operand is read from the Memory into
PC
R1
R1
n general purpose
registers
Increment PC ::
• At some point during the execution of the MAR MDR
ALU
Rn - 1
n general purpose
instruction is completed, a new fetch cycle Connection Between the Processor and the Memory
may be initiated.
• PC = PC + 1
Example:-
• Load LOCA, R1
• Add R1, R0
Bus
T = N ×S
How to improve T ?
✓Reduce N & S
R
✓Increase R
Microprogrammed
Control Unit Hardwared
Cache Control Unit
Microprogrammed
Control Memory Instruction Data
Cache Cache
P1 P2 Pn P1 P2 Pn
Network
i th word
last word
Memory words.
b31 b30 b1 b0
•
•
•
Sign bit: b31= 0 for positive numbers
b31= 1 for negative numbers
22 ADD 457
OPCODE ADDRESS
---------- ---------------
15 0
Operand
OPERAND 457
• Thus, Harvard architecture is more complicated but separate pipelines remove the
bottleneck that Von Neumann creates.
4/5/2021 Dr. Manoj Kumar Mishra 46
Von-Neumann Architecture
Von-Neumann architecture
• In a Von-Neumann architecture, the same
memory and bus are used to store both data and
instructions that run the program.
Example :: To Store 0 R A J J A R 0
RAJ KUMAR 03 4 K U M A A M U K 4
8 R 0 0 0 0 0 0 R 8
12 0 0 0 03 0 0 0 03 12
Big-Endian Little-Endian
O O L L
L L
O O
Big-Endian 16 Bit Little-Endian16-Bit
Big-Endian Little-Endian
• Instruction Formats
• Addressing Modes