用寄存器(reg)类型变量生成触发器的例子: module rw2(clk,d,out1,out2); input clk,d; output out1,out2; reg out1; wire out2; assign out2 =d & ~out1; always @(posedge clk) out1<=d; endmodule
|
|关于本站|小黑屋|Archiver|手机版|无线电爱好网
( 粤ICP备14010847号 )
GMT+8, 2014-5-23 12:47 , Processed in 0.108345 second(s), 27 queries .
Powered by Discuz! X3.1 Licensed
© 2001-2013 Comsenz Inc.