一、首先定义一个1位全加器
module adder_1bit(a,b,cin,sum,cout);
input a,b,cin;
output sum,cout;
sum sum1(a,b,cin,sum);
carry carry1