back.rtlil: Remove code allowing internal yosys cells in Instance
.
This was allowed only because Amaranth used it internally. Now that all uses are gone, let's just disallow it entirely.
This commit is contained in:
parent
6dc7c2718c
commit
1cb9d43841
|
@ -923,12 +923,8 @@ class ModuleEmitter:
|
||||||
ports[name] = self.instance_wires[cell_idx, name]
|
ports[name] = self.instance_wires[cell_idx, name]
|
||||||
for name, nets in cell.ports_io.items():
|
for name, nets in cell.ports_io.items():
|
||||||
ports[name] = self.sigspec(nets)
|
ports[name] = self.sigspec(nets)
|
||||||
if cell.type.startswith("$"):
|
self.builder.cell(f"\\{cell.type}", cell.name, ports=ports, params=cell.parameters,
|
||||||
type = cell.type
|
attrs=cell.attributes, src=_src(cell.src_loc))
|
||||||
else:
|
|
||||||
type = "\\" + cell.type
|
|
||||||
self.builder.cell(type, cell.name, ports=ports, params=cell.parameters,
|
|
||||||
attrs=cell.attributes, src=_src(cell.src_loc))
|
|
||||||
|
|
||||||
def emit_cells(self):
|
def emit_cells(self):
|
||||||
for cell_idx in self.module.cells:
|
for cell_idx in self.module.cells:
|
||||||
|
|
Loading…
Reference in a new issue