Verilog
Friday, March 17, 2006
用and取代assign
module top;
reg a,b;
wire c;
and(c,a,b); // 原本為 assign c=a&b;
initial
begin
a=0;
b=0;
#2000 $finish;
end
always
#50 a=~a;
always
#100 b=~b;
endmodule
posted by 元 @
4:49 PM
0 Comments:
Post a Comment
<< Home
About Me
Name:
元
View my complete profile
Previous Posts
雙CPU設計的測試
單CPU設計的測試
課堂初試
網路的範例
Verilog
0 Comments:
Post a Comment
<< Home