4-bit Ripple Carry Adder
Problem Description
Implement a 4-bit ripple carry adder that adds two 4-bit numbers along with a carry-in bit.
Module Interface
- Inputs:
A
: 4-bit operand AB
: 4-bit operand Bcin
: 1-bit carry input
- Outputs:
sum
: 4-bit sum outputcout
: 1-bit carry output
Expected Behavior
- Performs binary addition: sum = A + B + cin
- cout is the carry out from the most significant bit
No Waveform Data
Submit your Verilog code using Cmd+Enter to see the simulation results and waveform visualization.