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

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

View Full Document Right Arrow Icon
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(R0) 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online