Homework04-sol - 2/16/03 3:11 PM Homework #04 (Solution) 1....

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

View Full Document Right Arrow Icon
2/16/03 3:11 PM ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2003 Page 1 of 6 Homework #04 (Solution) 1. Study Appendix B.5 and answer the following questions. Assume that the register file in Figure B.18 has 64 32-bit registers. a. (21 points) Write down the width (in number of bits) purpose of each of the following signals in Figure B.18. Signal No. of Bits Purpose Read Register #1 6 Specifies a register to read. This register's current contents appear on Read Data #1 Read Register #2 6 Specifies another register to read. That register's current contents appear on Read Data #2 Write Register 6 Specifies a 32-bit register to write to. The contents to be written are in “Write Data”. The writing happens on the clock edge at the end of the clock cycle. This new value can be read during the next cycle. Write Data 32 The data that is written to the register specified by the “Write Register” bits. Read Data #1 32 The data that is read from the register specified by the “Read Register #1” bits. Read Data #2 32 The data that is read from the register specified by the “Read Register #2” bits. Write 1 When this bit is a 1, then the write operation specified by “Write Data” and “Write Register” occurs, otherwise not. Grading: 1 point off for each wrong size, 1 point off for each wrong purpose. b. (2 points) How many registers can be read simultaneously? Answer: Two Grading: 2 or nothing.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2/16/03 3:11 PM ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2003 Page 2 of 6 c. (2 points) Can a register be read and written during a single clock cycle? If so, explain how it works. Answer: See pageB-26, para 2. The writing actually occurs on the clock edge at the end of the cycle. During the cycle, reads produce the value written at the end of the previous clock cycle. Data written during the current cycle can be read during the subsequent cycle. Grading: 0 for wrong answer, 1 for wrong explanation . 2. (15 points) Look at the table of ALU functions on Page 353 and Figure 5.14 on Page 355 of your textbook. List which of these five ALU functions (or actions) are performed by the ALU for the three instruction classes of our reduced MIPS processor. Write the desired ALU actions along with their corresponding ALU control inputs.
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 04/25/2010 for the course ECSE ecse-2340 taught by Professor Wozny during the Spring '09 term at Rensselaer Polytechnic Institute.

Page1 / 6

Homework04-sol - 2/16/03 3:11 PM Homework #04 (Solution) 1....

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