-
Verilog Assignment
1.testbench.v //test bench for the CPU module design 2.HALFADDER.v //source code for the half adder module 3.FULLADDER.v //source code for the full adder module 4.AND.v // source code for 8 bit AND operation 5.OR.v //source code for 8 bit OR operation 6.NOT.v //source code for 8 bit NOT operation 7.ALU.v //source code for ALU module (comprises of part of multiplexer ) 8.CU.v //source code for Control Unit which also has a 3*8 Bit Decoder 9.ASSIGN.v //source code to Assign a bit to all bits of a 8-bit wire 10.COMBINED_ADDER.v //source code selecting the operand2 for which adder operation to be implemented (4 input mux to select the operand2) 11.ADDER.v //source code for Ripple Carry Adder module (8-bit Full Adder) -
Report.pdf
-
CONTROL UNIT.png
-
README.md
-
Extract the zip file. After ziping the file, open the terminal in the Verilog Assignment Folder.
-
Write ls in the terminal and make sure all the 11 .v files are there.
-
Now run the following code in terminal: " iverilog testbench.v HALFADDDER.v FULLADDER.v AND.v OR.v NOT.v ALU.v CU.v ASSIGN.v COMBINED_ADDER.v ADDER.v" after running this, write "vvp a.out" in the terminal.
-
We'll get the following message:
VCD info: dumpfile testbench.vcd opened for output. Test Completed
-
Now write in the terminal: "gtkwave testbench.vcd"
-
The GTKWAVE application will now open, double click the Instruction and Result under uut (inside cu_v2_tb) and observe the wavefront. Close GTKWAVE.