| 5 | 1/1 | 返回列表 |
| 查看: 632 | 回復: 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 ] |

新蟲 (初入文壇)

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 309分085801求調劑 +3 | 學員Gtwj7W 2026-03-31 | 3/150 |
|
|---|---|---|---|---|
|
[電化學] 070300化學調劑 +6 | 山頂見α 2026-03-25 | 6/300 |
|
|
[考研] 311求調劑 +7 | 李芷新1 2026-03-31 | 7/350 |
|
|
[考研] 張芳銘-中國農業(yè)大學-環(huán)境工程專碩-298 +9 | 手機用戶 2026-03-26 | 9/450 |
|
|
[考研] 086000調劑 +5 | 7901117076 2026-03-26 | 5/250 |
|
|
[考研] 求調劑 生物學 377分 +6 | zzll03 2026-03-31 | 6/300 |
|
|
[考研] 0710生物學求調劑! +5 | 敘述文 2026-03-31 | 5/250 |
|
|
[考研] 求調劑 +4 | 圖鑒212 2026-03-30 | 4/200 |
|
|
[考研] 哈爾濱工業(yè)大學材料與化工專碩378求調劑 +3 | 塔比烏斯 2026-03-30 | 3/150 |
|
|
[考研] 297 地理學070500 復試求調劑 +3 | 小圓圈圈ooo 2026-03-30 | 3/150 |
|
|
[考研] 一志愿北京化工大學材料與化工(085600)296求調劑 +25 | 稻妻小編 2026-03-26 | 25/1250 |
|
|
[考研] 材料化工340求調劑 +3 | jhx777 2026-03-30 | 3/150 |
|
|
[考研] 296求調劑 +10 | 彼岸t 2026-03-29 | 10/500 |
|
|
[考研] 求調劑 +10 | 張zz111 2026-03-27 | 11/550 |
|
|
[考研] 086000生物與醫(yī)藥調劑 +5 | Feisty。 2026-03-28 | 9/450 |
|
|
[考研] 304求調劑 +6 | 曼殊2266 2026-03-27 | 6/300 |
|
|
[考研] 265求調劑 +8 | 小木蟲085600 2026-03-27 | 8/400 |
|
|
[考研] 265求調劑11408 +3 | 劉小鹿lu 2026-03-27 | 3/150 |
|
|
[考研] 一志愿吉大071010,316分求調劑 +3 | xgbiknn 2026-03-27 | 3/150 |
|
|
[考研] 調劑 +4 | 柚柚yoyo 2026-03-26 | 4/200 |
|