Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Urbanczyk committed Feb 11, 2024
1 parent 2e60114 commit 2319b0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions scripts/gen_verilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def elaborate(self, platform: Platform):


def gen_verilog(core_config: CoreConfiguration, output_path):
dependency_manager = DependencyManager()
with DependencyContext(dependency_manager):
with DependencyContext(DependencyManager()):
top = Top(GenParams(core_config))

with open(output_path, "w") as f:
Expand Down
3 changes: 1 addition & 2 deletions scripts/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ def unit(gen_params: GenParams):


def synthesize(core_config: CoreConfiguration, platform: str, core: UnitCore):
dependency_manager = DependencyManager()
with DependencyContext(dependency_manager):
with DependencyContext(DependencyManager()):
gen_params = GenParams(core_config)
resource_builder, module = core(gen_params)

Expand Down
3 changes: 1 addition & 2 deletions test/regression/pysim.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def f():
return f

async def run(self, mem_model: CoreMemoryModel, timeout_cycles: int = 5000) -> SimulationExecutionResult:
self.dependency_manager = DependencyManager()
with DependencyContext(self.dependency_manager):
with DependencyContext(DependencyManager()):
wb_instr_bus = WishboneBus(self.gp.wb_params)
wb_data_bus = WishboneBus(self.gp.wb_params)
core = Core(gen_params=self.gp, wb_instr_bus=wb_instr_bus, wb_data_bus=wb_data_bus)
Expand Down

0 comments on commit 2319b0c

Please sign in to comment.