线网型变量使用举例:两路选择器的RTL级描述 module mux2to1(out,a,b,sel); input a,b,sel; output out;
wire out; assign out=(sel)?b:a; //input a,b,sel没声明信号类型,缺省为wire型 endmodule |
|关于本站|小黑屋|Archiver|手机版|无线电爱好网
( 粤ICP备14010847号 )
GMT+8, 2014-5-23 12:47 , Processed in 0.106769 second(s), 27 queries .
Powered by Discuz! X3.1 Licensed
© 2001-2013 Comsenz Inc.