Skip to content

Commit c53eee9

Browse files
committed
back.rtlil: fix MEMID parameter to match $mem_v2 cell name.
1 parent 525c7e2 commit c53eee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amaranth/back/rtlil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def _convert_fragment(builder, fragment, name_map, hierarchy):
872872
hierarchy=hierarchy + (sub_name,))
873873

874874
if sub_type == "$mem_v2" and "MEMID" not in sub_params:
875-
sub_params["MEMID"] = "$" + sub_name
875+
sub_params["MEMID"] = builder._make_name(sub_name, local=False)
876876

877877
sub_ports = OrderedDict()
878878
for port, value in sub_port_map.items():

0 commit comments

Comments
 (0)