List of Practical
1. Study and verify the truth table of various logic gates (NOT, AND, OR, NAND,
NOR, EX-OR, and EX-NOR).
2. Simplify given Boolean expression and realize it.
3. Design and verify a half/full adder
4. Design and verify half/full subtractor
5. Design a 4 bit magnitude comparator using combinational circuits.
6. Design and verify the operation of flip-flops using logic gates.
7. Verify the operation of a counter.
8. Verify the operation of a 4 bit shift register
9. Using SPIM, write and test an adding machine program that repeatedly reads
in integers and adds them into a running sum. The program should stop when
it gets an input that is 0, printing out the sum at that point.
10. Using SPIM, write and test a program that reads in a positive integer using the
SPIM system calls. If the integer is not positive, the program should terminate
with the message “Invalid Entry”; otherwise the program should print out the
names of the digits of the integers, delimited by exactly one space. For
example, if the user entered “528,” the output would be “Five Two Eight.”
# Practical No. 1 to 8 can be performed using any open source simulator (like
(Download it from https://sourceforge.net/projects/circuit/)
# Practical No. 9 and 10 are required to be done using SPIM. SPIM is a selfcontained simulator that will run MIPS R2000/R3000 assembly language
# Latest version is available at https://sourceforge.net/projects/spimsimulator/