ece3803_d2008_exam1_solutions

ece3803_d2008_exam1_solutions - ECE 3803: Microprocessor...

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

View Full Document Right Arrow Icon
ECE 3803: Microprocessor System Design D Term 2008 Exam 1 solutions This is a closed book exam. NO books or notes. Calculators are ok; use only for calculations. All the datasheets you should need are attached to the exam. You may discard these after the exam is over. Show all your work and state any assumptions you make. This exam is graded on a partial credit basis. The solution approach is more important than a correct result. Good luck! NAME: _______ Gene Bogdanov __________________ ECE MAILBOX: ____________ Problem Score Points 1 25 2 50 3 25
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 3803 D2008 Exam 1 2 ARM assembly/binary instruction encoding 1. [25 points] You are given the following ARM instruction: eoreq r5,r7,r2,ror #16 a) [10 points] Explain what operations this instruction performs verbally or with the help of pseudo-code (ARM assembly reference page is attached). if (equal [zero flag is set]) { r5 = r7 XOR (r2 ROR 16); } // XOR = bitwise exclusive OR // x ROR y = rotate x right by y b) [15 points] Encode this instruction into ARM binary machine code (instruction encoding reference page is attached). Explain the meaning of each field in the instruction. Express the instruction as 4 individual bytes arranged in the order they appear in memory (starting from the lowest address). 0000 00 0 0001 0 0111 0101 10000 11 0 0010 cond =EQ data proc. reg. shifted opcode =EOR S=no flags Rn =r7 Rd =r5 #shift =16 Sh =ROR Shift by const. Rm =r2 hex: 0x00275862 mem: 62 58 27 00 (little endian)
Background image of page 2
ECE 3803 D2008 Exam 1 3 Bus, address decoding, read cycle timing 2. [50 points] In the following circuit diagram, a flash memory device (a type of EEPROM) is
Background image of page 3

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

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

This note was uploaded on 04/17/2008 for the course ECE 3803 taught by Professor Bogdanov during the Spring '08 term at WPI.

Page1 / 6

ece3803_d2008_exam1_solutions - ECE 3803: Microprocessor...

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

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