Full Adder using Half Adder (Structural Modeling):
module
full_use_half(
input a,
input b,
input cin,
output sum,
output carry
);
wire
x,y,z;
halfadder
HA1(a,b,y,x);
halfadder
HA2(cin,y,sum,z);
or
R1(carry,x,z);
endmodule
Hint: For Module halfadder refer previous posts
No comments:
Post a Comment