








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









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
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
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)
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
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
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
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