| 3 | 1/1 | 返回列表 |
| 查看: 616 | 回復: 2 | |||
rosary新蟲 (初入文壇)
|
[交流]
【求助】初學者,求大神們看下這段簡單的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 ] |

金蟲 (文壇精英)
老漢一枚
新蟲 (初入文壇)

| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0805 316求調劑 +4 | 大雪深藏 2026-03-18 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 求調劑 +5 | 林之夕 2026-03-24 | 5/250 |
|
|
[考研] 070300化學求調劑 +9 | 苑豆豆 2026-03-20 | 9/450 |
|
|
[考研] 274求調劑 +4 | 顧九笙要謙虛 2026-03-24 | 4/200 |
|
|
[考研]
|
WWW西西弗斯 2026-03-24 | 4/200 |
|
|
[考研] 279分求調劑 一志愿211 +18 | chaojifeixia 2026-03-19 | 20/1000 |
|
|
[考研] 求調劑 +7 | 十三加油 2026-03-21 | 7/350 |
|
|
[考研] 328求調劑,英語六級551,有科研經歷 +7 | 生物工程調劑 2026-03-17 | 12/600 |
|
|
[考研] 315分,誠求調劑,材料與化工085600 +3 | 13756423260 2026-03-22 | 3/150 |
|
|
[考研] 289材料與化工(085600)B區(qū)求調劑 +3 | 這么名字咋樣 2026-03-22 | 4/200 |
|
|
[考研] 一志愿中南化學(0703)總分337求調劑 +9 | niko- 2026-03-19 | 10/500 |
|
|
[考研] 298求調劑一志愿211 +3 | 上岸6666@ 2026-03-20 | 3/150 |
|
|
[考研] 求調劑院校信息 +6 | CX 330 2026-03-21 | 6/300 |
|
|
[考研] 求助 +5 | 夢里的無言 2026-03-21 | 6/300 |
|
|
[考研] 296求調劑 +4 | www_q 2026-03-20 | 4/200 |
|
|
[考研] 330求調劑0854 +3 | assdll 2026-03-21 | 3/150 |
|
|
[考研] 一志愿華南師大 070300(化學)304分求調劑 +3 | 0703武芊慧雪304 2026-03-18 | 3/150 |
|
|
[考研] 304求調劑 +6 | 曼殊2266 2026-03-18 | 6/300 |
|
|
[考研] 288求調劑 +16 | 于海海海海 2026-03-19 | 16/800 |
|
|
[考研]
|
簡木ChuFront 2026-03-19 | 8/400 |
|