Lab 1: Logic Simulation Basics
Lab 1: Logic Simulation Basics
CS210-Computer Architecture
In this lab, you will begin to familiarise yourself with Logisim and simulate some blocks. This
will help you learn more about logic, and build the fundamental components used in any digital
system.
Using Logisim
To build a CMOS inverter, you will need the following Logisim components: • A power source.
• A ground. • A P-type transistor, facing south. • An N-type transistor, facing north. • A constant
generator, to provide an input value. • A probe to read the output value.
If you follow the steps below and build a circuit, you should end up with a working inverter.
Now, by clicking on the constant component and pressing either the 1 or 0 key on your
keyboard, (by clicking on the pin if you used a pin input ) , you can change the logic value that it
generates. At the same time, you should see the value at the probe change, in accordance with the
logic function NOT. If your circuit does not work as expected, make sure the components are
wired correctly, and that the type and orientation of your transistors are correct. If they are not
correct, you may see X at the output for a particular input value. Save your work before
continuing.
Fig: A CMOS inverter
1. Using the same approach for the gates shown, create a library of gates(NAND, NOR,
XOR, AND, OR, multiple input logic gates etc).
Using your own library implement a full adder and 2 bit adder and 4 bit adder.
(Design and simulate , verify the truth table). (100 points)
Submission:
Show your simulation to TAs. All circuits should be included in your record. Submit your
single library (roll_number.circ file) to the link below before 12 PM.
https://u.pcloud.com/#page=puplink&code=E3WkZBqjQ39X3hz5RB1dfoXpPHfI9w9Xk