From e9eb855d38b3bd4d5a61471af49e791be12817ba Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 11 Sep 2019 13:06:49 -0700 Subject: [PATCH] Make unextend a udata --- passes/pmgen/xilinx_dsp.pmg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/passes/pmgen/xilinx_dsp.pmg b/passes/pmgen/xilinx_dsp.pmg index 6e726d1c2..6998d6e84 100644 --- a/passes/pmgen/xilinx_dsp.pmg +++ b/passes/pmgen/xilinx_dsp.pmg @@ -1,6 +1,6 @@ pattern xilinx_dsp -state > unextend +udata > unextend state clock state sigA sigffAcemuxY sigB sigffBcemuxY sigC sigffCcemuxY sigD sigffDcemuxY sigM sigP state postAddAB postAddMuxAB @@ -23,7 +23,7 @@ match dsp select dsp->type.in(\DSP48E1) endmatch -code unextend sigA sigB sigC sigD sigM +code sigA sigB sigC sigD sigM unextend = [](const SigSpec &sig) { int i; for (i = GetSize(sig)-1; i > 0; i--) @@ -396,7 +396,6 @@ endcode subpattern out_dffe arg argD argQ clock -arg unextend code dff = nullptr; -- 2.30.2