| 查看: 620 | 回复: 2 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[交流]
【求助】初学者,求大神们看下这段简单的verilog代码 【已解决】 已有2人参与
|
|||
|
初始输出out为0 我是想在20个时钟上升沿之后让out为1 要求使用repeat语句 module add_delay20(out,clock); output reg out; input clock; integer count; initial begin out=1'b0; counter=1; repeat(20) begin always@(posedge clock) count=count+1; end out=1'b1; end endmodule 初试,轻拍 ![]() Error (10170): Verilog HDL syntax error at add_delay20.v(11) near text "always"; expecting "end" 终于搞对了!!!! module add_delay20(out,clock); output reg out; input clock; integer count; initial out=1'b0; initial begin count=1; repeat(20) @(posedge clock) count=count+1; out=1'b1; end endmodule ![]() 真不容易哈哈哈开心![]() [ Last edited by rosary on 2010-11-5 at 10:46 ] |
» 猜你喜欢
271求调剂
已经有4人回复
求调剂323材料与化工
已经有4人回复
材料学硕,求调剂
已经有9人回复
085600材料与化工调剂
已经有15人回复
各位老师您好:本人初试372分
已经有4人回复
【2026考研调剂】制药工程 284分 求相关专业调剂名额
已经有6人回复
289求调剂
已经有9人回复
278求调剂
已经有4人回复
总分293求调剂
已经有3人回复
生物技术与工程
已经有3人回复


3楼2010-11-04 19:09:59
















回复此楼