project2 - Introduction While the processor is the core of...

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

View Full Document Right Arrow Icon
Introduction While the processor is the core of the computer, even it has a tendency for failures and errors that will affect that performance dramatically. If the processor cannot handle this failures and errors, no one would want that processor, even if it had the best error free performance. An exception handler is a segment of code that handles errors like this, as well as any interrupts that come from outside sources. These sources could be keyboards, mice, or even joysticks. This exception handler is only a segment of code, however, the hardware is what triggers this segment of the code. In order to make use of this exception handler, we would have to create hardware to supplement our processor. With the type of exceptions and interrupts we will be testing, a simple Coprocessor could handle our exceptions. We also wanted to prioritize our exceptions and interrupts, so that if a certain exception goes off at the same time as another, we get the higher priority one. In the exception handler, there are certain instructions that are not normally used in programmer's code. The instructions we will be implement, move from Co processor(mfco), and return from exception(rfe). Mfco moves data from the registers in the Coprocessor into the register specified by the exception handler in the processor. Rfe triggers a bit in the Coprocessor that re-enables interrupts and exceptions which had been disabled while we were handling an interrupt or exception. Parameters For this project, we were required to create an exception handler for the processor we had designed in a previous project. The type of exceptions and interrupts we will be handling are an overflow in our ALUs as well as two different timers, where one has higher priority over the other. To do this, we would be required create both the timers, as well as making our ALUs capable of recognizing that there was an overflow. We would also be implementing a priority encoder that would handle our exceptions and prioritize our twenty cycle timer over the thirty cycle timer and our ALU
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 over all of them. The encoder would then send a code to the Coprocessor control, where it would be decoded, and would change the three registers in our Coprocessor. This control would also send a signal to our PC, changing it to the address of the instruction
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/27/2008 for the course CPRE 281X taught by Professor Somani during the Spring '08 term at Iowa State.

Page1 / 5

project2 - Introduction While the processor is the core of...

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

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