空白符和注释 跟C语言比较类似,用成对的“/*”和“*/”来表示一行或者多行的注释,不能嵌套;可出现在程序的任何位置;用//表示一行内的注释。例: module MUX2_1(out,a,b,sel); // Port declarations output out; input sel;// control input input b,a;/* data inputs */ wire sel_,a1,b1; /*The netlist logic selects input ”a” when sel = 0 and it selects ”b” when sel = 1. */ not not1(sel_,sel); and and1(a1,a,sel_); and and2(b1,b,sel); or or1(out,a1,b1); endmodule |
|关于本站|小黑屋|Archiver|手机版|无线电爱好网
( 粤ICP备14010847号 )
GMT+8, 2014-5-23 12:47 , Processed in 0.096320 second(s), 27 queries .
Powered by Discuz! X3.1 Licensed
© 2001-2013 Comsenz Inc.