第2个回答 2015-01-11
module FADD(A,B,Cin,Sum,Cout);
input A,B,Cin;
output Sum,Cout;
...
endmodule
module Test;
...
FADD M(C1,C2,C3,C4,C5);
...
endmodule
答案Cin(wire) Cout(wire/reg) C3(wire/reg) C5(wire)
能举例说明百度知道说清楚c3应Cin能wire另两都
定义wire 用assign输节省拍且节省资源消耗用寄存器保存值assign赋值主要用场合