mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-11 00:23:26 +00:00
Simplify
This commit is contained in:
parent
7f10019610
commit
96ee7b9cf7
1 changed files with 2 additions and 4 deletions
|
@ -92,16 +92,12 @@ match ffFJKG
|
||||||
endmatch
|
endmatch
|
||||||
|
|
||||||
code sigH sigO clock clock_pol
|
code sigH sigO clock clock_pol
|
||||||
sigO = sigH;
|
|
||||||
|
|
||||||
if (ffFJKG) {
|
if (ffFJKG) {
|
||||||
sigH = port(ffFJKG, \Q);
|
sigH = port(ffFJKG, \Q);
|
||||||
for (auto b : sigH)
|
for (auto b : sigH)
|
||||||
if (b.wire->get_bool_attribute(\keep))
|
if (b.wire->get_bool_attribute(\keep))
|
||||||
reject;
|
reject;
|
||||||
|
|
||||||
sigO = sigH;
|
|
||||||
|
|
||||||
SigBit c = port(ffFJKG, \CLK).as_bit();
|
SigBit c = port(ffFJKG, \CLK).as_bit();
|
||||||
bool cp = param(ffFJKG, \CLK_POLARITY).as_bool();
|
bool cp = param(ffFJKG, \CLK_POLARITY).as_bool();
|
||||||
|
|
||||||
|
@ -111,6 +107,8 @@ code sigH sigO clock clock_pol
|
||||||
clock = c;
|
clock = c;
|
||||||
clock_pol = cp;
|
clock_pol = cp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sigO = sigH;
|
||||||
endcode
|
endcode
|
||||||
|
|
||||||
match addA
|
match addA
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue