ece406f08hw6

ece406f08hw6 - Problem: Download the project 1 solution...

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

View Full Document Right Arrow Icon
NC State University ECE 406 Fall 2008 ECE Department Design of Complex Digital Systems Liu Homework #6 Due 11/10/08 Four shift related instructions are added to the LC3 instruction set. They are SLL DR, SR, Imm4 // Shift left logical: VDR=VSR<<Imm4 SRL DR, SR, Imm4 // Shift right logical: VDR=VSR>>Imm4 RTL DR, SR, Imm4 // Rotate left: VDR=({VSR,VSR}<<Imm4)>>16 SRA DR, SR, Imm4 // Shift right arithmetic: VDR={16{VSR[15]},VSR}>>Imm4 The encoding scheme is as follows. The variable “ Mode ” is used to distinguish the 4 operations: 00-SLL, 01-SRL, 10-RTL, 11-SRA.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Problem: Download the project 1 solution from the course website. Modify it to incorporate the four shift instructions. Name your design as hw6.v and submitted it through wolfware. Note that you can choose to use your own project 1 design, instead of the solution posted. HINT: You need to find what module(s) must be modified in order to handle the new instructions first. Refer to lecture note for help. 1 1 0 1 DR SR Mode Imm4 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1...
View Full Document

This note was uploaded on 03/30/2009 for the course ECE 406 taught by Professor Davis during the Spring '08 term at N.C. State.

Ask a homework question - tutors are online