mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-13 21:21:27 +00:00
Use fast path for 32-bit Const integer constructor in more places
This commit is contained in:
parent
ec52d6c649
commit
7814aa0c31
6 changed files with 10 additions and 9 deletions
|
@ -82,7 +82,7 @@ void create_ice40_dsp(ice40_dsp_pm &pm)
|
|||
|
||||
SigSpec CD = st.sigCD;
|
||||
if (CD.empty())
|
||||
CD = RTLIL::Const(0, 32);
|
||||
CD = RTLIL::Const(0);
|
||||
else
|
||||
log_assert(GetSize(CD) == 32);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ struct QlBramMergeWorker {
|
|||
{
|
||||
if(cell->type != split_cell_type) continue;
|
||||
if(!cell->hasParam(ID(OPTION_SPLIT))) continue;
|
||||
if(cell->getParam(ID(OPTION_SPLIT)) != RTLIL::Const(1, 32)) continue;
|
||||
if(cell->getParam(ID(OPTION_SPLIT)) != RTLIL::Const(1)) continue;
|
||||
mergeable_groups[get_key(cell)].insert(cell);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue