Docsity

Micro Operations-Assembly Language, Microprocessors and Computer Architecture-Lecture Slides, Slides of Computer Architecture and Organization

Toggle sidebar
bg1
Micro-Operations
zA computer executes a program
zFetch/execute cycle
zEach cycle has a number of steps
zsee pipelining
zCalled micro-operations
zEach step does very little
zAtomic operation of CPU
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Micro Operations-Assembly Language, Microprocessors and Computer Architecture-Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Micro-Operations z

A computer executes a program z Fetch/execute cycle z Each cycle has a number of steps z see pipelining z Called micro-operations z Each step does very little z Atomic operation of CPU

Constituent Elements of Program Execution

Fetch Sequence z

Address of next instruction is in PC z Address (MAR) is placed on address bus z Control unit issues READ command z Result (data from memory) appears ondata bus z Data from data bus copied into MBR z PC incremented by 1 (in parallel with datafetch from memory) z Data (instruction) moved from MBR to IR z MBR is now free for further data fetches

Fetch Sequence (symbolic) z

t1:MAR <-(PC) z t2:MBR <-(memory) z PC <-(PC) + z t3:IR <-(MBR) z (tx = time unit/clock cycle) or z t1:MAR <-(PC) z t2:MBR <-(memory) z t3:PC <-(PC) +1 z IR <-(MBR)

Indirect Cycle z

t1: MAR <-(IRaddress) -address field of IR z t2: MBR <-(memory) z t3: IRaddress<-(MBRaddress) z MBR contains an address z IR is now in same state as if directaddressing had been used

Interrupt Cycle z

t1:MBR <-(PC) z t2:MAR <-save-address z PC <-routine-address z t3:memory <-(MBR) z This is a minimum z May be additional micro-ops to get address z Saving context is done by interrupt handlerroutine, not micro-ops

Execute Cycle (ISZ) z

ISZ X -increment and skip if zero z t1:MAR <-(IRaddress) z t2:MBR <-(memory) z t3:MBR <-(MBR) + 1 z t4:memory <-(MBR) if (MBR) == 0 then PC <-(PC) + 1 z Notes: z if is a single micro-operation z Micro-operations done during t

Execute Cycle (BSA) z

BSA X -Branch and save address z Address of instruction following BSA is savedin X z Execution continues from X+ z t1:MAR <-(IRaddress) MBR <-(PC) z t2:PC <-(IRaddress) memory <-(MBR) z t3:PC <-(PC) + 1

Flowchart for Instruction Cycle

SUMMARY