add4bit:
module add4bit(s,c,a,b);
output [3:0] s;
output c;
input [3:0] a;
input [3:0] b;
assign {c,s} = a + b;
endmodule
module add4bit(s,c,a,b);
output [3:0] s;
output c;
input [3:0] a;
input [3:0] b;
assign {c,s} = a + b;
endmodule
0 comments:
Post a Comment
if you have any doubt please let me know