Assignment 3
Assignment 3
Assignment 3
Assignment 3, 2024-03-18
Abstract
Implement a half-adder. Then use two (2) half-adders to implement a
full adder.
Please read carefully. All outputs required are described in the text. Five (5)
points will be taken for each bug, missing required output and behavior.
sc_main
Description
1. Create two test suites in one sc_main, and you must name the file
main.cpp, that
o Instantiate both half-adder and full-adder modules
o Provide all possible combinations to these modules, i.e. 4 input
vectors to the half-adder and 8 input vectors to the full-adder.
2. Create a trace file named RESULT.vcd. And trace ports are shown as
follows:
Half-adder A
Half-adder B
Half-adder Sum
Half-adder Carry
Full-adder A
Full-adder B
Full-adder Cin
Full-adder S
Full-adder Cout
makefile
Description
Please turn in the source codes and makefile only. Combine all the files
using zip, gzip, or tar. Please do not use rar. Do not turn in the executable.
Due date
2:00 PM, March 25, 2024