【发布时间】:2014-10-21 18:24:05
【问题描述】:
我正在学习 Verilog HDL。现在,我正在尝试在 Digilent Atlys Spartan 6 xc6slx45 上运行一个程序。
我正在板上实现这个计数器。
module counter_s2( output reg [7:0] count);
initial begin
count=0;
repeat(127) begin
#10000000 count=count+1;
end
end
endmodule
当我在板上运行此代码时,我得到最终输入 1111111。板上没有延迟。我想产生一个延迟,比如说 1 秒,以查看输出。 谢谢!
P.S:我是 Verilog 的新手。
【问题讨论】: