Skip to content

Commit

Permalink
Fix warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Dec 18, 2024
1 parent bd14cfb commit 50590fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions transactron/core/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def elaborate(self, platform):
cgr, porder = TransactionManager._conflict_graph(method_map)

m = Module()
m._MustUse__silence = True # type: ignore
m.submodules.merge_manager = merge_manager

for elem in method_map.methods_and_transactions:
Expand All @@ -347,9 +348,6 @@ def elaborate(self, platform):
m.d.comb += transaction.runnable.eq(Cat(ready).all())

ccs = _graph_ccs(cgr)
m.submodules._transactron_schedulers = ModuleConnector(
*[self.cc_scheduler(method_map, cgr, cc, porder) for cc in ccs]
)

method_enables = self._method_enables(method_map)

Expand All @@ -369,6 +367,10 @@ def elaborate(self, platform):
runs = Cat(method_runs[method])
m.d.comb += assign(method.data_in, method.combiner(m, method_args[method], runs), fields=AssignType.ALL)

m.submodules._transactron_schedulers = ModuleConnector(
*[self.cc_scheduler(method_map, cgr, cc, porder) for cc in ccs]
)

if "TRANSACTRON_VERBOSE" in environ:
self.print_info(cgr, porder, ccs, method_map)

Expand Down

0 comments on commit 50590fc

Please sign in to comment.