Verilog HDL Program for Carry Save Adder

Verilog HDL Program for Carry Save Adder.

1
2
3
4
5
6
7
8
9
10
11
12
13
module carrysave(s,c,a,b);
    output [3:0]s;
    output c;
    input [3:0]a,b;
    wire [2:0]c2,c0;
    fa u1(s[0],c0[0],a[0],b[0],1'b0);
    dff1 u2(c2[0],c0[0],clk);
    fa u3(s[1],c0[1],a[1],b[1],c2[0]);
    dff1 u4(c2[1],c0[1],clk);
    fa u5(s[2],c0[2],a[2],b[2],c2[1]);
    dff1 u6(c2[2],c0[2],clk);
    fa u7(s[3],c,a[3],b[3],c2[2]);
endmodule
Simulated waveform for Carry Save Adder
Simulated waveform for Carry Save Adder
Ansten Lobo

2 thoughts on “Verilog HDL Program for Carry Save Adder

  1. HI Arun,
    could you please send the the full program, as the program given is not complete. Two modules are missing.
    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in