{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework04-sol - 3:11 PM Homework#04(Solution 1 Study...

Info icon This 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.
Image of page 1

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

View Full Document Right 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern