summaryrefslogtreecommitdiff
path: root/rtl/if_common/if_rst_sync.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-16 01:08:04 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-24 05:58:19 -0600
commitb21c321a059e11edeece1c90d97776bb0716d7a0 (patch)
treecb7c3e6c2a5f6fd153c3b01d61040a2c901e0ba8 /rtl/if_common/if_rst_sync.sv
parenta6c23ba92d0c2cad9862de1cb11c19b4e06fc0e6 (diff)
rtl: fix quartus errors: parser, synthesis, fitter
Diffstat (limited to 'rtl/if_common/if_rst_sync.sv')
-rw-r--r--rtl/if_common/if_rst_sync.sv5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtl/if_common/if_rst_sync.sv b/rtl/if_common/if_rst_sync.sv
index 69f1b78..e6077b6 100644
--- a/rtl/if_common/if_rst_sync.sv
+++ b/rtl/if_common/if_rst_sync.sv
@@ -8,6 +8,9 @@ module if_rst_sync
);
always_ff @(posedge clk or negedge rst_n)
- srst_n <= ~rst_n ? 0 : 1;
+ if (~rst_n)
+ srst_n <= 0;
+ else
+ srst_n <= 1;
endmodule