mirror of https://github.com/YosysHQ/yosys.git
Fix xilinx_dsp index cast
This commit is contained in:
parent
8326af5418
commit
0727b2c902
|
@ -11,7 +11,7 @@ match ffA
|
|||
select ffA->type.in($dff, $dffe)
|
||||
select param(ffA, \CLK_POLARITY).as_bool()
|
||||
// select nusers(port(ffA, \Q)) == 2
|
||||
index <SigSpec> port(ffA, \Q).to_sigbit_pool() === port(dsp, \A).remove_const().to_sigbit_pool()
|
||||
index <pool<SigBit>> port(ffA, \Q).to_sigbit_pool() === port(dsp, \A).remove_const().to_sigbit_pool()
|
||||
// DSP48E1 does not support clock inversion
|
||||
optional
|
||||
endmatch
|
||||
|
@ -25,7 +25,7 @@ match ffB
|
|||
select ffB->type.in($dff, $dffe)
|
||||
select param(ffB, \CLK_POLARITY).as_bool()
|
||||
// select nusers(port(ffB, \Q)) == 2
|
||||
index <SigSpec> port(ffB, \Q).to_sigbit_pool() === port(dsp, \B).remove_const().to_sigbit_pool()
|
||||
index <pool<SigBit>> port(ffB, \Q).to_sigbit_pool() === port(dsp, \B).remove_const().to_sigbit_pool()
|
||||
optional
|
||||
endmatch
|
||||
|
||||
|
|
Loading…
Reference in New Issue