Test 1 Questions for Microprocessor System Design | ECE 3534, Exams of Microprocessors

Material Type: Exam; Professor: Patterson; Class: Microprocessor System Design; Subject: Electrical & Computer Engineer; University: Virginia Polytechnic Institute And State University; Term: Spring 2008;

Typology: Exams

Pre 2010

Uploaded on 09/02/2008

mpower611
mpower611 🇺🇸

1

(1)

1 document

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1 of 8
ECE 3534 Microprocessor System Design
Patterson TR 9:30 – 10:45 am section
Test 1
September 28, 2006
Only aid permitted is the MicroBlaze Instruction Set Summary
75 minutes
Total points: 45
Name:______________________________
Instructions
1. All questions should be answered on this test. Use the reverse side of the page for
your rough work.
2. Raise your hand if the problem statements are not clear.
3. Students are expected to adhere to all provisions of the Virginia Tech Honor
System. Sign the pledge below affirming that you have followed the honor code. By
signing the pledge you are stating that you have not discussed any portion of this exam
with any other student during the exam period, that you have not used notes or any other
unauthorized material while taking the exam, that you have not copied any answers or
portions of answers from another student and that you have not allowed anyone to copy
yours.
Pledged: _____________________________
pf3
pf4
pf5
pf8

Partial preview of the text

Download Test 1 Questions for Microprocessor System Design | ECE 3534 and more Exams Microprocessors in PDF only on Docsity!

ECE 3534 Microprocessor System Design

Patterson TR 9:30 – 10:45 am section

Test 1

September 28, 2006

Only aid permitted is the MicroBlaze Instruction Set Summary 75 minutes Total points: 45 Name:______________________________ Instructions

  1. All questions should be answered on this test. Use the reverse side of the page for your rough work.
  2. Raise your hand if the problem statements are not clear.
  3. Students are expected to adhere to all provisions of the Virginia Tech Honor System. Sign the pledge below affirming that you have followed the honor code. By signing the pledge you are stating that you have not discussed any portion of this exam with any other student during the exam period, that you have not used notes or any other unauthorized material while taking the exam, that you have not copied any answers or portions of answers from another student and that you have not allowed anyone to copy yours. Pledged: _____________________________

SHORT PROBLEMS (1 point each) Circle T if the statement is true, else circle F. If necessary, state any reasonable assumptions to support your choice. A correct response is worth one point. T or F : Embedded microprocessors usually have lower clock rates than desktop processors. T or F : RISC architectures attempt to decrease the size of instruction memory. T or F : In the MicroBlaze architecture, 32-bit words must be aligned on an address that is a multiple of 4. T or F : MicroBlaze is a big-endian architecture. T or F : It is impossible to inadvertently execute data in a Harvard architecture. T or F : The .org directive can only be used once in a program. T or F : Device drivers do not have to be written in assembly code. T or F : Memory-mapped I/O avoids the need for a device driver. T or F : MicroBlaze Type A instructions are faster than Type B instructions. T or F : MicroBlaze has 32 registers because it has a 32-bit architecture. What do the following acronyms stand for?  RISC _____________________________________________  HLL _____________________________________________  GPIO _____________________________________________  SEXT _____________________________________________  SPR _____________________________________________

2. [3 points] Provide either C-like code or a succinct English description of the operations performed on memory variables A and B by the following code: addi r5,r0,A add r6,r0,r L1: lbu r7,r5,r beqi r7,L addi r5,r5, addi r6,r6, bri L L2: swi r6,r0,B Be sure to define the types of variables A and B.

  1. [5 points] Write MicroBlaze assembly language code that stores in r5 the sum of the first n odd numbers, where n is stored in r6.
  1. [5 points] Write MicroBlaze assembly language code that logically shifts r6 to the right until the least significant bit is non-zero. If r6 initially contains zero then do nothing.
  1. [5 points] Write MicroBlaze assembly language code that uses repeated subtraction to compute the number of times that the divisor in r7 divides into the dividend in r8. Assume both the dividend and divisor are positive. Store the quotient in r9.