Professional Documents
Culture Documents
HW/SW Abstraction
Somanath Tripathy
IIT Patna
This Class
• Computer Designing goal
• Instruction Execution
Computer Architecture
• Computer Architecture: The idea of designing,
selecting, and interconnecting hardware
components to create a computing system meeting
with desired goals (functional, performance,
energy consumption, cost, etc.)
8
Abstraction
• An abstraction omits unneeded detail,
helps us cope with complexity
9
Levels of Transformation, Revisited
◼ A user-centric view: computer designed for users
Problem
Algorithm
Program/Language User
Runtime System
(VM, OS, MM)
ISA
Microarchitecture
Logic circuits
Decode&Exec
IO
Data
Buffers d1
-- d2
--
--
------
How to perform a Task?
• Task/ Program is a sequence of steps
– For each step, an arithmetic or logical operation is done
• For each operation, a different set of control signals is
needed
• Hardwired
– Connect to a particular hardware component
– Hardwired systems are inflexible
• Micro-program
– General purpose hardware can do different tasks, given
correct control signals
– Instead of re-wiring, supply a new set of control signals
Instruction Cycle
• Instruction cycle constitutes of two steps:
• Fetch
• Execute
Fetch Cycle
• Program Counter (PC) holds address of next
instruction to fetch
• Processor fetches instruction from memory
location pointed to by PC
• Increment PC
– Unless specified.
• Load Instruction into Instruction Register (IR)
• Combination of above
Example of Program Execution
Ex. Let The processor has
a single data register AC
Let the PC content is 300
16-bit Instruction has 4-bit
opcode and 12-bit operand field