Verilog for迴圈範例1
reg[31:0]matrix[8:0]; always@(posedge clk)begin if(reset) for(idx=0; idx <9; idx = idx +1)begin matrix[idx] <= 0; end end
文章標籤
全站熱搜
沒有痛苦 就沒有收穫
若內容對你有幫助,可以留言讓我知道哦~
有問題想要諮詢可以請至這裡連絡我哦 =>不會就放這邊
Verilog for迴圈範例1
reg[31:0]matrix[8:0]; always@(posedge clk)begin if(reset) for(idx=0; idx <9; idx = idx +1)begin matrix[idx] <= 0; end end