Design a verilog model of a half adder and write a
testbench to verify the designed verilog model.
p9. 半加法器設計電路
module Add_half(sum,c_out,a,b);
input a,b;
output sum,c_out;
wire c_out_bar;
xor (sum,a,b);
nand (c_out_bar,a,b);
not(c_out,c_out_bar);
endmodule

沒有留言:
張貼留言