COE 608 Midterm: COE608-Makeup Midterm-W2016

106 views5 pages

Document Summary

Notes: closed book, no calculators, answer all questions in the space provided. Q1- convert the following c code to mips assembly instructions:- Assume g,h,i,j,k in ,,, and has the address of a[0] and all variables are 32 bits. Q2-convert the following mips assembly to c code:- Loop: sll , , 2 add , , lw , 0() beq , , exit add , , j loop. Assume i , j, k are in , , and has the address of b[0] Q3-draw a gate level schematic diagram of a 32 bit alu that performs the following operations based on the value of op code s2 s1 s0 as follows: You need to show only the circuit for alu bit0 and bit 31. Q4- draw a flow chart for the algorithm used to multiple two 8 bits numbers. Q5-use the above algorithm to find the result of multiplying the following two 4 bits numbers.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents