EE457_Dis12b_PipelineExceptions

EE457_Dis12b_PipelineExceptions - EE457 Discussion # 12...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Pipeline: Exceptions EE457 Discussion # 12 Gathered and prepared by Maryam Soltan and Tony Toghia (USC) Fall2007 Portions of these slides are derived from: D. Patterson © UCB, H. Jiang UNL , M. Banikazemi NYU, M. Younis UMBC, and Gojko Babic OSU
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Exceptions - “Stuff Happens” Exceptions: unexpected change in control flow Another form of control hazard. For example: add $1 , $2, $1; causing an arithmetic overflow sw $3, 400( $1 ); add $5, $1 , $2; Invalid $1 contaminates other registers or memory locations!
Background image of page 2
Interrupts and Traps Interrupts Caused by external events Interrupts caused by hardware failure: » Power failure » Memory parity error Traps Caused by internal events
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Interrupts Interrupts Caused by external events : » Network, Keyboard, Disk I/O, Timer » Page fault - virtual memory » System call - user request for OS action Asynchronous to program execution May be handled between instructions Simply suspend and resume user program
Background image of page 4
Traps Caused by internal events » Exceptional conditions (overflow) » Undefined Instruction » Hardware malfunction Usually Synchronous to program execution Condition must be remedied by the handler Instruction may be retried or simulated and program continued or program may be aborted Traps
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Interrupts as result of instruction execution (these are also called exceptions) More on Interrupts
Background image of page 6
Synchronous vs Asynchronous Definition : If the event occurs at the same place every time the program is executed with the same data and memory allocation, the event is synchronous . Otherwise asynchronous . Except for hardware malfunctions, asynchronous
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 32

EE457_Dis12b_PipelineExceptions - EE457 Discussion # 12...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online