{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hw8 - ENGRD2300 Introduction to Digital Logic Fall 2008...

This preview shows pages 1–2. Sign up to view the full content.

ENGRD2300: Introduction to Digital Logic Fall 2008 Homework 8 Due Wednesday, Dec 3, at 1:25pm Problem 1. Ezra Cornell is rumored to have written the following assembly language program for your Lab 7 microprocessor. SUB R0,R0,R0 LB R1,0(R0) LB R2,1(R1) SUB R3,R1,R2 BLTZ R3, L1 SB R1,2(R0) BEQ R0,R0,L2 L1: SB R2,2(R0) L2: HALT a) Translate this program into machine language (i.e., 16-bit instructions to be loaded into the Instruction RAM.) b) For each machine instruction, determine 31-bit control word for that instruction. (I.e., for each instruction, what are the 31 bits output by the decoder?) c) Assuming that the data RAM contains the values 3,6 and 9 at addresses 0, 1, and 2, trace the execution of this program. What is the final state of the data RAM after exectution? d) Explain what this program does. Problem 2. Two enterprising ENGRD 2300 students have implemented competing processors. The first is a single- cycle processor that runs at 25 MHz! The second is a multi-cycle processor that runs at a faster clock speed.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern