From f0bc8a9e0a8439ef6c4db27317f4e7386aa7e912 Mon Sep 17 00:00:00 2001 From: Lekcyjna <309016@uwr.edu.pl> Date: Fri, 6 Oct 2023 18:26:35 +0200 Subject: [PATCH] Change names to connectors and transformers. --- transactron/lib/__init__.py | 4 ++-- transactron/lib/{connections.py => connectors.py} | 0 transactron/lib/reqres.py | 2 +- transactron/lib/transactions.py | 4 ++-- transactron/lib/{methods.py => transformers.py} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename transactron/lib/{connections.py => connectors.py} (100%) rename transactron/lib/{methods.py => transformers.py} (99%) diff --git a/transactron/lib/__init__.py b/transactron/lib/__init__.py index 38c6e16f7..f4d3b8a23 100644 --- a/transactron/lib/__init__.py +++ b/transactron/lib/__init__.py @@ -1,7 +1,7 @@ -from .connections import * # noqa: F401 +from .connectors import * # noqa: F401 from .buttons import * # noqa: F401 from .adapters import * # noqa: F401 -from .methods import * # noqa: F401 +from .transformers import * # noqa: F401 from .transactions import * # noqa: F401 from .reqres import * # noqa: F401 from .storage import * # noqa: F401 diff --git a/transactron/lib/connections.py b/transactron/lib/connectors.py similarity index 100% rename from transactron/lib/connections.py rename to transactron/lib/connectors.py diff --git a/transactron/lib/reqres.py b/transactron/lib/reqres.py index be68728fb..476f45094 100644 --- a/transactron/lib/reqres.py +++ b/transactron/lib/reqres.py @@ -1,6 +1,6 @@ from amaranth import * from ..core import * -from .connections import Forwarder, FIFO +from .connectors import Forwarder, FIFO from coreblocks.utils.fifo import BasicFifo from amaranth.utils import * diff --git a/transactron/lib/transactions.py b/transactron/lib/transactions.py index 87a85d8f0..4364dce3d 100644 --- a/transactron/lib/transactions.py +++ b/transactron/lib/transactions.py @@ -2,7 +2,7 @@ from ..core import * from ..core import RecordDict from typing import Optional, Callable -from . import methods +from . import transformers __all__ = [ "ConnectTrans", @@ -84,7 +84,7 @@ def __init__( def elaborate(self, platform): m = TModule() - m.submodules.transformer = transformer = methods.MethodTransformer( + m.submodules.transformer = transformer = transformers.MethodTransformer( self.method2, i_transform=(self.method1.data_out.layout, self.i_fun), o_transform=(self.method1.data_in.layout, self.o_fun), diff --git a/transactron/lib/methods.py b/transactron/lib/transformers.py similarity index 99% rename from transactron/lib/methods.py rename to transactron/lib/transformers.py index 9b9bfdf9b..28bd82255 100644 --- a/transactron/lib/methods.py +++ b/transactron/lib/transformers.py @@ -4,7 +4,7 @@ from typing import Optional, Callable, Tuple from coreblocks.utils import ValueLike, assign, AssignType from . import transactions -from .connections import Forwarder +from .connectors import Forwarder __all__ = [ "MethodTransformer",