{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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.
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

• 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.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern