23.08.2015 Views

EECS 370 – Introduction to Computer Organization – Exam 1 w

EECS 370 – Introduction to Computer Organization – Exam 1 w

EECS 370 – Introduction to Computer Organization – Exam 1 w

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9. Single Cycle Datapath [12 pts]After graduation you join a start-up company that specializes in single-cycle LC2K processors(similar <strong>to</strong> those studied in class). The company wants you <strong>to</strong> do some verification of theirnewest processor <strong>to</strong> ensure correctness, thus you decide <strong>to</strong> develop some single-instruction testsprograms <strong>to</strong> check that the control ROM is working properly.Below is a table of possible bugs that you are checking for. For instance the first row considersthe possibility that control signal D (as shown in the picture) is forced <strong>to</strong> always be 0 (in jargon,it is said <strong>to</strong> be ‘stuck-at 0’). Which LC2K instructions could be used <strong>to</strong> reveal this bug? For eachbug, circle all instructions that could be used <strong>to</strong> expose the bug by sending them <strong>to</strong> the processorand then checking the results (by inspecting memory and register file).D stuck-at 0 add nand sw lw beq jalr noop haltC stuck-at 1 add nand sw lw beq jalr noop haltB stuck-at 0 add nand sw lw beq jalr noop haltA stuck-at 1 add nand sw lw beq jalr noop haltPage 10 of 12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!