3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-03-03 04:06:57 +00:00

Add -legalize option to read_rtlil

This commit is contained in:
Robert O'Callahan 2025-12-17 03:11:06 +00:00
parent 914e14946d
commit ddd6a16ee0
3 changed files with 131 additions and 20 deletions

View file

@ -3039,6 +3039,13 @@ void RTLIL::Module::remove(RTLIL::Cell *cell)
}
}
void RTLIL::Module::remove(RTLIL::Memory *memory)
{
log_assert(memories.count(memory->name) != 0);
memories.erase(memory->name);
delete memory;
}
void RTLIL::Module::remove(RTLIL::Process *process)
{
log_assert(processes.count(process->name) != 0);