Question: Lab Assignments 1. Create a project Lab2.circ in the Logisim. 2. Add a circuit testing Registers (including 1-bit, 2-bit, 8-bit). 3. Add a circuit testing


Lab Assignments 1. Create a project Lab2.circ in the Logisim. 2. Add a circuit testing Registers (including 1-bit, 2-bit, 8-bit). 3. Add a circuit testing TRI-STATE BUFFERS (including 1-bit, 2-bit, 8-bit). 4. Add a circuit testing Decoders (including 1 to 2, 2 to 4, and 3 to 8 decoders). 5. Add a circuit to build a 1-bit CPU described in the lab notes. Here is a picture of the 1-bit CPU circuit for your reference. One Bit CPU CPU BUS TMP ACC JOH OH TMPout OH ACCout OH Cout EXTout Bout 0 EXTin O TMP in O Bin 0 Cin AC Cin Hin DH EN O ALUout Some Relevant Details: The ALU performs two operations, XOR and AND. The operation to be performed is to be determined by the code in the IR. The value 0 in the IR indicates an XOR operation and the value 1 in IR indicates an AND operation. The following control signals will be required for our 1-bit CPU in this lab: AC Cout, ACCin, TMPout, TMPin, ALUout, IRin, Bout, Bin, Cout, Cin, EXTin, ExTout. 6. 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 '1'- the pre-condition for the AND operation): Remember to pre-load 'O' in register B and '1' in register C. And see what is the result in register C. 1. EXTin, EXTout, IRin. // Load '1' in register IR for AND operation. 2. EXTin, EXTout, Bin. // Load 'O' in register B. 3. EXTin, EXTout, Cin. // Load '1' in register C. 4. Bout, ACCin. 5. Cout, TMPin. 6. ALUout, Cin. Practice these microinstructions with your newly built CPU. 7. 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. 8. You are now able to Build a 2-bit CPU by expanding the 1-bit CPU described in the lab notes. Remember to have a 2-bit bus for your design. The 2-bit CPU will do the following operations: o For instruction 00, do 2-bit XOR, test 10 XOR 11 = 01 o For instruction 01, do 2-bit AND, test 10 AND 11 = 10 o For instruction 10, do 2-bit NOT operation, the Operand will be in the register ACC, test NOT 10 = 01. o For instruction 11, do 2-bit OR, test 10 OR 11 = 11 Lab Assignments 1. Create a project Lab2.circ in the Logisim. 2. Add a circuit testing Registers (including 1-bit, 2-bit, 8-bit). 3. Add a circuit testing TRI-STATE BUFFERS (including 1-bit, 2-bit, 8-bit). 4. Add a circuit testing Decoders (including 1 to 2, 2 to 4, and 3 to 8 decoders). 5. Add a circuit to build a 1-bit CPU described in the lab notes. Here is a picture of the 1-bit CPU circuit for your reference. One Bit CPU CPU BUS TMP ACC JOH OH TMPout OH ACCout OH Cout EXTout Bout 0 EXTin O TMP in O Bin 0 Cin AC Cin Hin DH EN O ALUout Some Relevant Details: The ALU performs two operations, XOR and AND. The operation to be performed is to be determined by the code in the IR. The value 0 in the IR indicates an XOR operation and the value 1 in IR indicates an AND operation. The following control signals will be required for our 1-bit CPU in this lab: AC Cout, ACCin, TMPout, TMPin, ALUout, IRin, Bout, Bin, Cout, Cin, EXTin, ExTout. 6. 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 '1'- the pre-condition for the AND operation): Remember to pre-load 'O' in register B and '1' in register C. And see what is the result in register C. 1. EXTin, EXTout, IRin. // Load '1' in register IR for AND operation. 2. EXTin, EXTout, Bin. // Load 'O' in register B. 3. EXTin, EXTout, Cin. // Load '1' in register C. 4. Bout, ACCin. 5. Cout, TMPin. 6. ALUout, Cin. Practice these microinstructions with your newly built CPU. 7. 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. 8. You are now able to Build a 2-bit CPU by expanding the 1-bit CPU described in the lab notes. Remember to have a 2-bit bus for your design. The 2-bit CPU will do the following operations: o For instruction 00, do 2-bit XOR, test 10 XOR 11 = 01 o For instruction 01, do 2-bit AND, test 10 AND 11 = 10 o For instruction 10, do 2-bit NOT operation, the Operand will be in the register ACC, test NOT 10 = 01. o For instruction 11, do 2-bit OR, test 10 OR 11 = 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
