CS251 : CS251-Assign#3-W13.pdf

182 views8 pages
21 Dec 2014
Course
Professor

Document Summary

See the instructions regarding the deliverables for this assignment at the end of this document. Consider lh (load halfword) instruction, which has the mips instruction code of 100001 (33). The format of the instruction is as follows: lh rt, imm(rs) [10 marks: in the table below, give the settings for the control signals that are used when the lh instruction is executed. Consider blez (branch if less than or equal to zero) instruction, which has the mips instruction code of. The format of the instruction is as follows: blez rs, imm. The instruction branches if the source register rs is less than or equal to zero, and it branches to the branch target address, which is (sign-extended immediate << 2) + (pc+4). Otherwise, if the source register rs is greater than zero, it advances to the instruction stored at (pc+4): modify the single-cycle mips processor on the next page of the assignment to implement blez.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers