From bd8661e0247121cf411b4c35fcedbc12a5919b50 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 26 Sep 2019 10:32:01 -0700 Subject: CREG to check for \keep --- passes/pmgen/xilinx_dsp_CREG.pmg | 3 +++ 1 file changed, 3 insertions(+) (limited to 'passes/pmgen/xilinx_dsp_CREG.pmg') diff --git a/passes/pmgen/xilinx_dsp_CREG.pmg b/passes/pmgen/xilinx_dsp_CREG.pmg index d79abdd4a..a31dc80bf 100644 --- a/passes/pmgen/xilinx_dsp_CREG.pmg +++ b/passes/pmgen/xilinx_dsp_CREG.pmg @@ -87,6 +87,9 @@ code reject; if (c.wire->get_bool_attribute(\keep)) reject; + Const init = c.wire->attributes.at(\init, State::Sx); + if (!init.is_fully_undef() && !init.is_fully_zero()) + reject; } endcode -- cgit v1.2.3