From: Eddie Hung Date: Thu, 22 Aug 2019 02:18:40 +0000 (-0700) Subject: Reuse var X-Git-Tag: working-ls180~1085^2~69 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d02d17b16d1f120697a5513f29d4eba8deae2a5;p=yosys.git Reuse var --- diff --git a/passes/pmgen/xilinx_srl.pmg b/passes/pmgen/xilinx_srl.pmg index 3f4efebe9..4558234de 100644 --- a/passes/pmgen/xilinx_srl.pmg +++ b/passes/pmgen/xilinx_srl.pmg @@ -177,7 +177,7 @@ code chain.push_back(first); subpattern(tail); finally - if (GetSize(chain) == param(shiftx, \A_WIDTH).as_int()) + if (GetSize(chain) == shiftx_width) accept; chain.clear(); endcode