Skip to content

Commit 239996b

Browse files
committed
Update sim infrastructure so it all lives in chipflow-lib
1 parent 2ed9a3f commit 239996b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

chipflow_lib/platforms/sim.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ def instantiate_ports(self, m: Module):
7373
for component, iface in pinlock.port_map.items():
7474
for k, v in iface.items():
7575
for name, port in v.items():
76-
invert = port.invert if port.invert else False
77-
self._ports[port.port_name] = io.SimulationPort(port.direction, port.width, invert=invert, name=f"{component}-{name}")
76+
self._ports[port.port_name] = io.SimulationPort(port.direction, port.width, invert=port.invert, name=f"{component}-{name}")
7877

7978
for clock, name in self._config["chipflow"]["clocks"].items():
8079
if name not in pinlock.package.clocks:
81-
raise ChipFlowError(f"Unable to find clock {name} in pinlock")
80+
raise ChipFlowError("Unable to find clock {name} in pinlock")
8281

8382
port_data = pinlock.package.clocks[name]
8483
port = io.SimulationPort(io.Direction.Input, port_data.width, name=f"clock-{name}")

chipflow_lib/steps/sim.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def load_tasks(self, cmd, pos_args):
7272
task_list.append(dict_to_task(d))
7373
return task_list
7474

75-
7675
class SimStep(StepBase):
7776
def __init__(self, config):
7877
self._platform = SimPlatform(config)

0 commit comments

Comments
 (0)