mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Fixes for reverting SigSpec helper functions
This commit is contained in:
parent
2f04beeeb5
commit
aad97168b0
2 changed files with 14 additions and 10 deletions
|
@ -206,10 +206,12 @@ match ffO_lo
|
|||
endmatch
|
||||
|
||||
code
|
||||
SigSpec O = sigOused.extract(0,std::min(16,param(ffO_lo, \WIDTH).as_int()));
|
||||
O.remove_const();
|
||||
if (!includes(port(ffO_lo, \D).to_sigbit_set(), O.to_sigbit_set()))
|
||||
reject;
|
||||
if (ffO_lo) {
|
||||
SigSpec O = sigOused.extract(0,std::min(16,param(ffO_lo, \WIDTH).as_int()));
|
||||
O.remove_const();
|
||||
if (!includes(port(ffO_lo, \D).to_sigbit_set(), O.to_sigbit_set()))
|
||||
reject;
|
||||
}
|
||||
endcode
|
||||
|
||||
match ffO_hi
|
||||
|
@ -220,10 +222,12 @@ match ffO_hi
|
|||
endmatch
|
||||
|
||||
code
|
||||
SigSpec O = sigOused.extract_end(16);
|
||||
O.remove_const();
|
||||
if (!includes(port(ffO_hi, \D).to_sigbit_set(), O.to_sigbit_set()))
|
||||
reject;
|
||||
if (ffO_hi) {
|
||||
SigSpec O = sigOused.extract_end(16);
|
||||
O.remove_const();
|
||||
if (!includes(port(ffO_hi, \D).to_sigbit_set(), O.to_sigbit_set()))
|
||||
reject;
|
||||
}
|
||||
endcode
|
||||
|
||||
code clock clock_pol sigO sigCD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue