Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a project Lab 2 . circ in the Logisim. Add a circuit testing Registers ( including 1 - bit, 2 - bit, 8 -
Create a project Labcirc in the Logisim. Add a circuit testing Registers including bit, bit, bit Add a circuit testing TRISTATE BUFFERS including bit, bit, bit Add a circuit testing Decoders including to to and to decoders Add a circuit to build a bit CPU described in the lab notes. Here is a picture of the bit CPU circuit for your reference. Some Relevant Details: The ALU performs two operations, XOR and AND. The operation to be performed is determined by the code in the IR The value in the IR indicates an XOR operation and the value in IR indicates an AND operation. The following control signals will be required for our bit CPU in this lab: ACCout, ACCin, TMPout, TMPin, ALUout, IRin, Bout, Bin, Cout, Cin, EXTin, EXTout. To implement the operation AND, let's assume that it uses the operands in registers B and C and then stores the result in C The following instructions would have to be executed. assume the external input switch is set to the value the precondition for the AND operation: Remember to preload in register B and in register C And see what is the result in register C EXTin, EXTout, IRin. Load in register IR for AND operation. EXTin, EXTout, Bin. Load in register B EXTin, EXTout, Cin. Load in register C Bout, ACCin. Cout, TMPin. ALUout, Cin. Practice these microinstructions with your newly built CPU. Do the following for your lab assignment: Write out the steps necessary to implement the operation XOR that uses the operands in the register ACC and register C and then stores the result in register B You are now able to Build a bit CPU by expanding the bit CPU described in the lab notes. Remember to have a bit bus for your design. The bit CPU will do the following operations: For instruction do bit XOR, test XOR For instruction do bit AND, test AND For instruction do bit NOT operation, the Operand will be in the register ACC, test NOT For instruction do bit OR test OR Lab Assignments Create a project Lab cire in the Logisim. Add a circuit testing Registers fincluoing bit, bit. bit Add a circuit testing TRISTATE BUFFERS including bit. bit, bit Add a circult testing Decoders including to to and to docodors Add a circuit to build a bit CPU described in the lab notes. Here is a picture of the bif CPU crcuit for your retesence. Some Relevant Details: The ALU pertorms two operations, X OR and AND. The operation to be performed is to be determined by the code in the IR The value in the IR indicates an XOR operation and the value in IR indicabos an AND opernion. The following control signals will be required for our bli CPU in this lab: ACCont, MCCin, TrEat, TWin, Rubeut, Isin, Bost, tin, Cout, cin, Extin, Extout. The foliowing instruotions would have to be ewecuted. assume beventemal hout swilch is set to the valoe T the precondition for the AND coscabonk Pernember to peetoad O in register B and T in register C And swe what is the result in negitier C Extin, exfoit, sin I Leat oc in recistre Bent, Acciar. Cout, Twin. Willout, kin. Pracice these microhstuctions with your newly bult CPU. Do the following for your lab assignment: Bhat vies the doperadis in the reetiter act wed meliser C wat then storet the rosult in reclister You ace now able to Bulld a tet Cru by wopanding the bet CPU desorbed in the lab notes Remember to have a bit bus for your design. The bit CPU will do the following operations: For instruetion do be XOR, hest XOR or For instruction do t AND, lest AND For instruction do be NOT operation, the Operand will be in the rogister ACC, test NoT to For inatruction ds til OR tost OR Lab Assignments Create a project Labcirc in the Logisim. Add a circuit testing Registers including bit, bit, bit Add a circuit testing TRISTATE BUFFERS fincluding bit. bit, bit Add a circuit testing Decoders including to to and to decoders Add a circuit to build a bit CPU described in the lab notes. Here is a picture of the bit CPU circuit for your reference. Some Relevant Details: The ALU pertorms two operations. XOR and AND. The operation to be performed is determined by the code in the I R The value in the IR indicates an XOR operation and the value in IR indicates an AND operation. The following control signals will be required for our bit CPU in this lab: ACCout, ACCin, TMPost, THPin, ALDout, IRin, Boat, Bin, Cout, Cin, Exin ExFout, To implement the operation AND, let's assume that it uses the operands in registers B and C and then stores the result in C The following instructions would have to be executed. assume the exdernal input switch is set to the value the precondition for the AND operation: Remember to preload in register B and in register C And see what is the result in register C Extin, ExTout, IMin. Load in rogister ID for NMD operation. EXTIn, EXTout, Bin. If Load in rolgister B EXTIn, EXTout, Cin. f Load in register c Bout, ACcin. Coat, Totpin. Aldout, cin. Practice these microinstructions with your newly built CPU. t Do the following for your lab assignment: Write out the ateps necessary to implenent the operation wor that lases the operands in the register McC and reqister c and then stores the result in register You are now able to Build a bit CPU by expanding the bit CPU described in the lab notes. Remember to have a bit bus for your design. The bit CPU will do the following operations: For instruction do bit XOR, test times O R For instruction do bit AND, test AND For instruction do bit NOT operation, the Operand will be in the register ACC, test NOT For instruction do bit OR test OR
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started