verilog之task用法实例
摘要:
该用法的代码源自夏宇闻老师的教材。 源代码: 1 module traffic_lights; 2 reg clock, red, amber, green; 3 parameter on = 1, off = 0, red_tics = 350, 4 amber_tics = 30, green_tics = 200; 5 // initialize colors. 6 initial red = off; 7 initial amber = off; 8 initial green = off; 9 always begin // sequence to control t... 阅读全文
posted @ 2014-01-05 23:31 ZcsTech 阅读(3129) 评论(0) 推荐(0) 编辑