Ripple Carry Adder
Problem Statement: Design and simulate a four-bit Ripple Carry Adder (RCA).
What is Ripple Carry Adder?
How can we use our full adder to build RCA?

Implementing a 4-bit ripple carry adder
-
Create a new Verilog file named
adder_4bit.v
, and copy-paste the below structural design of 4-bit ripple carry adder. -
Create a new Verilog file and type the below testbench code provided below. Save the file with the same name as the module name.
-
Compile the code and check for any syntax errors using the below command.
iverilog adder_4bit.v tb_adder_4bit.v -o adder_4bit
-
If there are no errors, use the below command for running the simulation.
vvp adder_4bit
You will see the values of signals being monitored across each clocktick.
-
If all looks well, use the below command for viewing the waveform. Add the signals from
tb_adder_4bit
design to the window to view the simulation output as shown in below image.gtkwave adder_4bit.vcd