{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw9 - (a and $7,$12,$4(b lw $4-16($5(c addi $s1,$t3 22(d sw...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 2030 Introduction to Computer Engineering Homework 9 1. You are given 1Mx4 memory chips as described in lecture. Design a 4MB (4Mx8) memory system. 2. Consider the design of a 16-bit barrel shifter which can shift left or right (logical only). Give an estimate of the number of transistors needed for this design. You only need to consider the main portion of the data path, and not any decoding logic. 3. Using opcodes given in the lecture notes (available on the news tab of the web page), give the hexadecimal representation of the machine codes for each given instruction. Also, describe each operation in RTL notation.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (a) and $7,$12,$4 (b) lw $4, -16($5) (c) addi $s1,$t3, 22 (d) sw $ra 4($sp) 4. Using opcodes given in the lecture notes, give the hexadecimal representation of the machine code for the branch (beq), jump (j), and and immediate (addi) in-structions. Assume that loop = 0x00002000. loop: and $7,$12,$4 lw $4, -16($5) addi $s1,$t3, 22 beq $4, $5, end sw $ra 4($sp) j loop end: 5. Specify assembler memory directives to initialize an array A of word integers of size 5 such that A[i]=i. (equivalent to the C code: int A[5]; for (i=0;i<5;i++) A[i]=i;). Spring 2009 Due: 22.4.2009 Prof. David Schimmel Sections F...
View Full 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