projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ea5da
)
unextend only used in init
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 25 Sep 2019 21:05:59 +0000
(14:05 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 25 Sep 2019 21:05:59 +0000
(14:05 -0700)
passes/pmgen/ice40_dsp.pmg
patch
|
blob
|
history
diff --git
a/passes/pmgen/ice40_dsp.pmg
b/passes/pmgen/ice40_dsp.pmg
index 046aae9e25a0f8399f59c77038aae4fad8625ddf..9330dd09bc12a3276d282d07d9235461772ed1a5 100644
(file)
--- a/
passes/pmgen/ice40_dsp.pmg
+++ b/
passes/pmgen/ice40_dsp.pmg
@@
-1,6
+1,5
@@
pattern ice40_dsp
-udata <std::function<SigSpec(const SigSpec&)>> unextend
state <SigBit> clock
state <bool> clock_pol cd_signed o_lo
state <SigSpec> sigA sigB sigCD sigH sigO
@@
-28,7
+27,7
@@
match mul
endmatch
code sigA sigB sigH
- unextend = [](const SigSpec &sig) {
+
auto
unextend = [](const SigSpec &sig) {
int i;
for (i = GetSize(sig)-1; i > 0; i--)
if (sig[i] != sig[i-1])