skip to main
|
skip to sidebar
肥貓窩
2009年10月5日 星期一
10/4 作業
module top;
integer ia,ib;
reg a,b;
wire c,s;
and a1(c,a,b);
xor x1(s,a,b);
initial
begin
for(ia=0;ia<=1;ia=ia+1) begin a=ia; for(ib=0;ib<=1;ib=ib+1) begin b=ib; #10 $display("a=%d b=%d c=%d s=%d",a,b,c,s); end end end endmodule
沒有留言:
張貼留言
較新的文章
首頁
訂閱:
張貼留言 (Atom)
追蹤者
網誌存檔
▼
2009
(12)
►
12月
(4)
►
11月
(5)
▼
10月
(3)
module top;wire A1,A0,B1,B0;system_clk #50 clk1(B0...
module top;integer icin,ia,ib;reg a,b,cin;wire cou...
10/4 作業
關於我自己
穿長靴的貓
檢視我的完整簡介
沒有留言:
張貼留言