endmatch
code clock
- if (ffA)
+ if (ffA) {
clock = port(ffA, \CLK).as_bit();
+
+ for (auto b : port(ffA, \Q))
+ if (b.wire->get_bool_attribute(\keep))
+ reject;
+ }
endcode
match ffB
code clock
if (ffB) {
+ for (auto b : port(ffB, \Q))
+ if (b.wire->get_bool_attribute(\keep))
+ reject;
+
SigBit c = port(ffB, \CLK).as_bit();
if (clock != SigBit() && c != clock)
// ffP = ffY;
if (ffP) {
+ for (auto b : port(ffP, \Q))
+ if (b.wire->get_bool_attribute(\keep))
+ reject;
+
SigBit c = port(ffP, \CLK).as_bit();
if (clock != SigBit() && c != clock)