XST将根据Verilog标准自动为您初始化变量。
所以,在过去,
我做过以下代码:
reg [15:0] rst_pipe = 16'hffff;
wire reset = rst_pipe [15];
永远@(posedge clk)
rst_pipe
约翰普罗塞纳
在原帖中查看解决方案
以上来自于谷歌翻译
以下为原文
XST will automatically initialize variables for you as per the Verilog standards. So, in the past,
I've done code like:
reg [15:0] rst_pipe = 16'hffff;
wire reset = rst_pipe[15];
always @(posedge clk)
rst_pipe <= {rst_pipe, 1'b0};
Everytime the design is reloaded, the signal reset will be asserted for 16 clock cycles at the start.
Note that ASIC designs don't allow this, this is a feature of FPGAs.
John Providenza
View solution in original post
XST将根据Verilog标准自动为您初始化变量。
所以,在过去,
我做过以下代码:
reg [15:0] rst_pipe = 16'hffff;
wire reset = rst_pipe [15];
永远@(posedge clk)
rst_pipe
约翰普罗塞纳
在原帖中查看解决方案
以上来自于谷歌翻译
以下为原文
XST will automatically initialize variables for you as per the Verilog standards. So, in the past,
I've done code like:
reg [15:0] rst_pipe = 16'hffff;
wire reset = rst_pipe[15];
always @(posedge clk)
rst_pipe <= {rst_pipe, 1'b0};
Everytime the design is reloaded, the signal reset will be asserted for 16 clock cycles at the start.
Note that ASIC designs don't allow this, this is a feature of FPGAs.
John Providenza
View solution in original post
举报