Skip to content

Commit

Permalink
util_axis_fifo_asym: Fixes for simulation
Browse files Browse the repository at this point in the history
Initialization of regs was not executed in always(*) blocks since
the block is not triggered due missing inputs.
  • Loading branch information
ronagyl committed Jun 30, 2022
1 parent af74515 commit ec6e184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/util_axis_fifo_asym/util_axis_fifo_asym.v
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ end

generate
if (RATIO == 1) begin
always @(*) begin
s_axis_counter <= 1'b1;
initial begin
s_axis_counter = 1'b1;
end
end else if (RATIO > 1) begin
if (RATIO_TYPE) begin
Expand Down Expand Up @@ -290,8 +290,8 @@ endgenerate

generate
if (RATIO == 1) begin
always @(*) begin
m_axis_counter <= 1'b0;
initial begin
m_axis_counter = 1'b0;
end
end else if (RATIO > 1) begin
always @(posedge m_axis_aclk) begin
Expand Down

0 comments on commit ec6e184

Please sign in to comment.