From cc78ef286b5c797176ec3342d9d0b4e4e7077ee8 Mon Sep 17 00:00:00 2001 From: Marno van der Maas Date: Mon, 6 Jan 2025 21:01:34 +0000 Subject: [PATCH] Revocation control: define done earlier This was causing undeclared identifier warnings. Co-authored-by: Adrian Lees --- rtl/ip/rev_ctl/rtl/rev_ctl.sv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtl/ip/rev_ctl/rtl/rev_ctl.sv b/rtl/ip/rev_ctl/rtl/rev_ctl.sv index cc76a4bb..f6769bed 100644 --- a/rtl/ip/rev_ctl/rtl/rev_ctl.sv +++ b/rtl/ip/rev_ctl/rtl/rev_ctl.sv @@ -24,6 +24,10 @@ module rev_ctl import rev_ctl_reg_pkg::*; ( // Internal registers. logic go; + // Internal wires. + logic done; + assign done = reg2hw.epoch.running.q & ~core_to_ctl_i[0]; + // Architectural registers. logic interrupt_status; @@ -46,10 +50,6 @@ module rev_ctl import rev_ctl_reg_pkg::*; ( end end - // Internal wires. - logic done; - assign done = reg2hw.epoch.running.q & ~core_to_ctl_i[0]; - // Control to core. always @(posedge clk_i or negedge rst_ni) begin if (~rst_ni) begin