2008年10月6日 星期一

10/6

Design a verilog model of a half adder and write a testbench to verify the designed verilog model

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

今天上課有點累,所以就一直睡覺沒練習,下次吧= =

沒有留言: