Computer Architecture
Computer Architecture
• Data + Instruction
• both are directly add into main memory
Data Instruction
a=20 Sub= subtraction
b=10 sum= addition
c=a+b MOV=movie
Von Neuman Architecture
Stored-program concept
• Instruction Set Architecture defines the machine code that a processor reads and
acts upon as well as the word size, memory address modes .processor registers and
data type.
• System Design includes all of the other hardware components within a computer
system. These include
• Micro Architecture, Computer Organization describes how a particular processor
will implement the size of a computer's CPU cache for instance, is an issue that
generally has nothing to do with the ISA
Computer Architecture and Computer Organization
fetch
Execute
Execute the
Instruction
Fetch cycle
• PC (program counter) holds address of next instruction to fetch.
• Processor fetches instruction from memory location pointed to by PC
Execute cycle
• Processor-Memory
• Data transfer between CPU and main memory
• Processor I/O
• Data transfer between CPU and I/O module
• Data processing
• Some reckoning or logically operations on data
• Control
• Altering of sequence of operation
Interrupt cycle
• Processor checks for interrupt
Indicated by an interrupt signal
• If no interrupt , fetch next instruction
• If interrupt pending
Suspend execution of current program
Save context
Set pc to start addressing of interrupt handler routine
Process interrupt
Restore context and continue interrupted program
Multiple interrupt
• Disable interrupts
• Process will ignore further interrupt while processing one interrupt
• Interrupts remain pending and are checked after first interrupt has been
processed
• Interrupt handled in sequence as they occur
Prefetch