ece3803_d2008_exam1_solutions

ece3803_d2008_exam1_solutions - ECE 3803 Microprocessor...

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

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

View Full Document Right 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)
Image of page 2
ECE 3803 D2008 Exam 1 3 Bus, address decoding, read cycle timing 2.
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
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