




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















1.) Put down parts that you thing will belong to this computa4on. These parts become the datapath No4ce that I might be wrong with the parts I choose. I am just trying to think what would elements might be useful!!!!!!!
Make sure each part works first though!
Sel
3.) Simulate – give a couple of inputs to each input and make sure the output is as expected!
Hardwire to 0100 (internally) Input Output Datapath OpCode I didn’t want the Input for one command, I wanted to output the constant 4!! [see table on page 4] Perhaps, I would have seen it earlier, but simula4on helps me see what is wrong with my design!
4.) Define and Build control logic to make sure output works as expected.
Hardwire to 0100 (internally) Input Output Datapath OpCode OpCode Opera&on 0 Output 4 1 Add 4 Control is just as easy as you make it!! What if Wal‐Mart wanted this reversed? Hardwire to 0100 (internally) Copyright 2009 James E. S4ne, Jr. 8
Register #
Opcode RS RT RD 2 bits 2 bits 2 bits 2 bits Opcode RS RD Const 2 bits 2 bits 2 bits 2 bits We arbitrarily choose to have 2 types of instruc4on formats so input is only 8 bits. The user would have to know the format or else For instruc4on 2 or an add instruc4on For instruc4ons 0, 1, and 3 or lw, addi, and sw instruc4ons, respecsully. I could have just given a 10‐bit sequence if I was feeling lazy……..