mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 11:41:23 +00:00
Add support for memory writes in processes.
This commit is contained in:
parent
c00a29296c
commit
4e03865d5b
16 changed files with 246 additions and 44 deletions
|
@ -342,7 +342,6 @@ struct proc_dlatch_db_t
|
|||
|
||||
void proc_dlatch(proc_dlatch_db_t &db, RTLIL::Process *proc)
|
||||
{
|
||||
std::vector<RTLIL::SyncRule*> new_syncs;
|
||||
RTLIL::SigSig latches_bits, nolatches_bits;
|
||||
dict<SigBit, SigBit> latches_out_in;
|
||||
dict<SigBit, int> latches_hold;
|
||||
|
@ -351,7 +350,6 @@ void proc_dlatch(proc_dlatch_db_t &db, RTLIL::Process *proc)
|
|||
for (auto sr : proc->syncs)
|
||||
{
|
||||
if (sr->type != RTLIL::SyncType::STa) {
|
||||
new_syncs.push_back(sr);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -373,8 +371,7 @@ void proc_dlatch(proc_dlatch_db_t &db, RTLIL::Process *proc)
|
|||
for (int i = 0; i < GetSize(ss.first); i++)
|
||||
latches_out_in[ss.first[i]] = ss.second[i];
|
||||
}
|
||||
|
||||
delete sr;
|
||||
sr->actions.clear();
|
||||
}
|
||||
|
||||
latches_out_in.sort();
|
||||
|
@ -441,8 +438,6 @@ void proc_dlatch(proc_dlatch_db_t &db, RTLIL::Process *proc)
|
|||
|
||||
offset += width;
|
||||
}
|
||||
|
||||
new_syncs.swap(proc->syncs);
|
||||
}
|
||||
|
||||
struct ProcDlatchPass : public Pass {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue