Colour Theme | Font Size Options | |
The purpose of this lab is to learn about CPU Organization by building a simplified 1-bit CPU and 2-bit CPU.
Read lab lecture notes.
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 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:
ACCout, ACCin, TMPout, TMPin, ALUout, IRin, Bout, Bin, Cout, Cin, EXTin, EXTout.
1. EXTin, EXTout, IRin. // Load '1' in register IR for AND operation. 2. EXTin, EXTout, Bin. // Load '0' in register B. 3. EXTin, EXTout, Cin. // Load '1' in register C. 4. Bout, ACCin. 5. Cout, TMPin. 6. ALUout, Cin. 7. Cout.Practice these microinstructions with your newly built CPU.
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.
Hand in the following:
Write out the steps (micro instructions) 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. Show value in B on bus. Remember to preload IR with "0", preload ACC with "1" and C with "0".