From b21c321a059e11edeece1c90d97776bb0716d7a0 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 16 May 2024 01:08:04 -0600 Subject: rtl: fix quartus errors: parser, synthesis, fitter --- rtl/if_common/if_rst_sync.sv | 5 ++++- rtl/if_common/mod.mk | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'rtl/if_common') 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 diff --git a/rtl/if_common/mod.mk b/rtl/if_common/mod.mk index e60abc4..2f2a465 100644 --- a/rtl/if_common/mod.mk +++ b/rtl/if_common/mod.mk @@ -1,3 +1,4 @@ define core + $(this)/deps := peakrdl_intfs $(this)/rtl_dirs := . endef -- cgit v1.2.3