Version
Yosys 0.61 (git sha1 5ae48ee, g++ 13.3.0-6ubuntu2~24.04 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
In yosys:
read_json sys_rtl.json
memory_libmap -lib memory_primitives.txt
sys_rtl.json
memory_primitives.txt
Expected Behavior
Error doesn't occur, mem_v2 are replaced with memory primitives.
Actual Behavior
ERROR: Found error in internal cell \sys.$flatten\fab.\char_d0.\d9.$auto$proc_rom.cc:155:do_switch$2246.0.30 ($basic_rom_32) at kernel/rtlil.cc:2664: