util_axis_fifo_asym: Fixes for simulation

Initialization of regs was not executed in always(*) blocks since
the block is not triggered due missing inputs.
main
Laszlo Nagy 2022-06-22 13:20:33 +01:00 committed by Laszlo Nagy
parent 4982104982
commit 1d4b27ea8c
1 changed files with 4 additions and 4 deletions

View File

@ -255,8 +255,8 @@ module util_axis_fifo_asym #(
generate generate
if (RATIO == 1) begin if (RATIO == 1) begin
always @(*) begin initial begin
s_axis_counter <= 1'b1; s_axis_counter = 1'b1;
end end
end else if (RATIO > 1) begin end else if (RATIO > 1) begin
if (RATIO_TYPE) begin if (RATIO_TYPE) begin
@ -288,8 +288,8 @@ module util_axis_fifo_asym #(
generate generate
if (RATIO == 1) begin if (RATIO == 1) begin
always @(*) begin initial begin
m_axis_counter <= 1'b0; m_axis_counter = 1'b0;
end end
end else if (RATIO > 1) begin end else if (RATIO > 1) begin
always @(posedge m_axis_aclk) begin always @(posedge m_axis_aclk) begin