mirror of https://github.com/YosysHQ/yosys.git
xilinx_dsp to be sensitive to keep attribute
This commit is contained in:
parent
96ee7b9cf7
commit
c320abc3f4
|
@ -29,8 +29,13 @@ match ffA
|
||||||
endmatch
|
endmatch
|
||||||
|
|
||||||
code clock
|
code clock
|
||||||
if (ffA)
|
if (ffA) {
|
||||||
clock = port(ffA, \CLK).as_bit();
|
clock = port(ffA, \CLK).as_bit();
|
||||||
|
|
||||||
|
for (auto b : port(ffA, \Q))
|
||||||
|
if (b.wire->get_bool_attribute(\keep))
|
||||||
|
reject;
|
||||||
|
}
|
||||||
endcode
|
endcode
|
||||||
|
|
||||||
match ffB
|
match ffB
|
||||||
|
@ -45,6 +50,10 @@ endmatch
|
||||||
|
|
||||||
code clock
|
code clock
|
||||||
if (ffB) {
|
if (ffB) {
|
||||||
|
for (auto b : port(ffB, \Q))
|
||||||
|
if (b.wire->get_bool_attribute(\keep))
|
||||||
|
reject;
|
||||||
|
|
||||||
SigBit c = port(ffB, \CLK).as_bit();
|
SigBit c = port(ffB, \CLK).as_bit();
|
||||||
|
|
||||||
if (clock != SigBit() && c != clock)
|
if (clock != SigBit() && c != clock)
|
||||||
|
@ -156,6 +165,10 @@ code ffP clock
|
||||||
// ffP = ffY;
|
// ffP = ffY;
|
||||||
|
|
||||||
if (ffP) {
|
if (ffP) {
|
||||||
|
for (auto b : port(ffP, \Q))
|
||||||
|
if (b.wire->get_bool_attribute(\keep))
|
||||||
|
reject;
|
||||||
|
|
||||||
SigBit c = port(ffP, \CLK).as_bit();
|
SigBit c = port(ffP, \CLK).as_bit();
|
||||||
|
|
||||||
if (clock != SigBit() && c != clock)
|
if (clock != SigBit() && c != clock)
|
||||||
|
|
Loading…
Reference in New Issue