projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf82b38
)
Consistency
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 4 Oct 2019 19:43:19 +0000
(12:43 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Sat, 5 Oct 2019 05:31:04 +0000
(22:31 -0700)
passes/pmgen/xilinx_dsp_CREG.pmg
patch
|
blob
|
history
diff --git
a/passes/pmgen/xilinx_dsp_CREG.pmg
b/passes/pmgen/xilinx_dsp_CREG.pmg
index a20d3cdce85c3469ff5ee66d7166c2b8700612d5..38a5a8d24c0375e889462610284d0127e3c79e10 100644
(file)
--- a/
passes/pmgen/xilinx_dsp_CREG.pmg
+++ b/
passes/pmgen/xilinx_dsp_CREG.pmg
@@
-45,7
+45,7
@@
match dsp
select nusers(port(dsp, \C, SigSpec())) > 1
endmatch
-code sigC sigP
+code sigC sigP
clock
unextend = [](const SigSpec &sig) {
int i;
for (i = GetSize(sig)-1; i > 0; i--)
@@
-71,6
+71,8
@@
code sigC sigP
}
else
sigP = P;
+
+ clock = port(dsp, \CLK, SigBit());
endcode
// (2) Match the driver of the 'C' input to a possible $dff cell (CREG)
@@
-82,8
+84,6
@@
code argQ ffC ffCcemux ffCrstmux ffCcepol ffCrstpol sigC clock
if (sigC == sigP)
reject;
- clock = port(dsp, \CLK, SigBit());
-
argQ = sigC;
subpattern(in_dffe);
if (dff) {