FINAL EXAM
1. General
- The exam is closed-book, 3-hour long.
- You must bring a photo ID.
- You may use a pen or a pencil. Unlike the midterm, answers written in pencil can
be re-marked.
- You may not use cell phones or any computing or communication device
during the exam with the exception of a calculator.
- You may bring one information sheet (8.5x11" -both sides). Note,
however, that we will provide the MIPS instruction data sheet and, if needed, the
datapath figures (for the single-cycle, multicycle, and pipelined processor) and
the finite state machine diagram for multi-cycle control.
- Unless stated otherwise, you must justify or explain your answers; i.e. it is
not enough to put down an answer. In fact, answers with little or no explanation
will receive little or no marks even if correct.
2. Scope
- Chapter 2
- Chapter 3 up to page 176.
- Chapter 5 up to and including 5.5
- Chapter 6 up to and including 6.3
- Chapter 7 up to and including 7.2
- Labs A-D and K-N.
- You may want to read parts of Chapter 4 sections 4.1 and 4.2 so you understand better performance issues and calculations we did in chapters 5 and 6.
- You will not be responsible for Verlog on the examination
3. Outline
Six groups of questions:
- On assembly language and the topics covered in the labs (MIPS)
- On the datapath/control of the single-cycle processor
- On the multi-cycle processor and its control
- On pipelining, hazards, and hazard avoidance
- On cache, mapping and calculations
.
- On foundational concepts; i.e. write a logical argument (to
show that a given idea is correct or incorrect) or perform a
computation.
- The question on the the single cylce, multicylce and pipeline machines will be meant to test your understanding of the datapath and its controls. so you may have questions that give you the datapath and the control lines and then propose a particular MIPS statement or sequence of statements and ask what data flows in the datapath at particular points or what controls are set and what data will be stored in registers or Main memory or in buffers. We might also ask what would happen if the controls are set incorrectly. Or inversely you may be given data that flows in the lines of some of the data path or the cotrol signals that are set and then asked what MIPS instruction or sequence of MIPS instructions could be responsible for the flow. In the multicylce machine we may ask questions about the FSM settings or sequences. For the pipeliine machine you may be asked simple questions about hazards and how they affect the instruction delays, or questions about how to eliminate delays in certain situations. You could be asked simple questions about performance and the comparison of performnce among the types of machines.
- Again the questions for cache will again be maent to test your understanding. You may be asked about the implementation of the direct addressing cache or about the calculation of cache sizing.