Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekcyjna committed Oct 5, 2023
1 parent 0d505ad commit b72903c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion coreblocks/params/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from typing import TYPE_CHECKING

from coreblocks.params.dependencies import SimpleKey, UnifierKey
from transactron.lib import MethodTryProduct, Collector, Method
from transactron import Method
from transactron.lib import MethodTryProduct, Collector
from coreblocks.peripherals.wishbone import WishboneMaster

if TYPE_CHECKING:
Expand Down
1 change: 1 addition & 0 deletions transactron/lib/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Optional

__all__ = [
"AdapterBase",
"AdapterTrans",
"Adapter",
]
Expand Down
4 changes: 2 additions & 2 deletions transactron/lib/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..core import RecordDict
from typing import Optional, Callable, Tuple
from coreblocks.utils import ValueLike, assign, AssignType
from .transactions import ManyToOneConnectTrans
from . import transactions
from .connections import Forwarder

__all__ = [
Expand Down Expand Up @@ -260,7 +260,7 @@ def elaborate(self, platform):

m.submodules.forwarder = forwarder = Forwarder(self.method.data_out.layout)

m.submodules.connect = ManyToOneConnectTrans(
m.submodules.connect = transactions.ManyToOneConnectTrans(
get_results=[get for get in self.method_list], put_result=forwarder.write
)

Expand Down
4 changes: 2 additions & 2 deletions transactron/lib/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from ..core import *
from ..core import RecordDict
from typing import Optional, Callable
from .methods import MethodTransformer
from . import methods

__all__ = [
"ConnectTrans",
Expand Down Expand Up @@ -84,7 +84,7 @@ def __init__(
def elaborate(self, platform):
m = TModule()

m.submodules.transformer = transformer = MethodTransformer(
m.submodules.transformer = transformer = methods.MethodTransformer(
self.method2,
i_transform=(self.method1.data_out.layout, self.i_fun),
o_transform=(self.method1.data_in.layout, self.o_fun),
Expand Down

0 comments on commit b72903c

Please sign in to comment.