-1 verilog
教授给出了下面的代码,我要弄清楚为什么它永远不会停止。
module tb_problem1();
reg a, b, c, d, e;
wire x;
reg [4:0] ins;
problem1 dut(a, b, c, d, e, x);
initial begin
ins = 0;
while(ins < 32) begin
{a, b, c, d, e} = ins;
#20;
ins = ins + 1;
end
end
endmodule
Run Code Online (Sandbox Code Playgroud)
那是因为我们需要做ins = ins+1'b1;
吗?
归档时间: |
|
查看次数: |
125 次 |
最近记录: |