RTL级(即逻辑描述)-方法1 module muxtwo(out,a,b,sel); input a,b,sel; output out; wire out; assign out=(sel)?b:a; endmodule 例子:RTL级(即逻辑描述)-方法2 module muxtwo(out,a,b,sel); input a,b,sel; output out; reg out; always @(sel or a or b) if(! sel) out = a; else out = b; endmodule
|
|关于本站|小黑屋|Archiver|手机版|无线电爱好网
( 粤ICP备14010847号 )
GMT+8, 2014-5-23 12:47 , Processed in 0.097340 second(s), 27 queries .
Powered by Discuz! X3.1 Licensed
© 2001-2013 Comsenz Inc.