Skip to content

Commit d31d0ec

Browse files
committed
Reduce API surface
1 parent c05c72b commit d31d0ec

File tree

11 files changed

+9
-8
lines changed

11 files changed

+9
-8
lines changed

chipflow_lib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
__version__ = importlib.metadata.version("chipflow_lib")
1717

18+
1819
logger = logging.getLogger(__name__)
1920

2021
class ChipFlowError(Exception):
File renamed without changes.

chipflow_lib/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
_get_cls_by_reference,
1515
_parse_config,
1616
)
17-
from .pin_lock import PinCommand
17+
from ._pin_lock import PinCommand
1818

1919
class UnexpectedError(ChipFlowError):
2020
pass

chipflow_lib/platforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from .silicon import SiliconPlatformPort, SiliconPlatform
1010
from .sim import SimPlatform
11-
from .utils import (
11+
from ._utils import (
1212
IO_ANNOTATION_SCHEMA, IOSignature, IOModel, IODriveMode, IOTripPoint, IOModelOptions,
1313
OutputIOSignature, InputIOSignature, BidirIOSignature,
1414
)

chipflow_lib/platforms/_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .silicon import *
22
from .sim import *
3-
from .utils import *
3+
from ._utils import *
44
from ._packages import *
55
__all__ = ['IO_ANNOTATION_SCHEMA', 'IOSignature', 'IOModel',
66
'OutputIOSignature', 'InputIOSignature', 'BidirIOSignature',

chipflow_lib/platforms/_openframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import List, NamedTuple, Optional, Literal
22

3-
from .utils import Voltage, PowerPins, LinearAllocPackageDef, BringupPins
3+
from ._utils import Voltage, PowerPins, LinearAllocPackageDef, BringupPins
44

55
class OFPin(NamedTuple):
66
pin: int

chipflow_lib/platforms/_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .utils import QuadPackageDef, BareDiePackageDef, Package
1+
from ._utils import QuadPackageDef, BareDiePackageDef, Package
22
from ._openframe import OpenframePackageDef
33

44
# Add any new package types to both PACKAGE_DEFINITIONS and the PackageDef union
File renamed without changes.

chipflow_lib/platforms/silicon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from amaranth.hdl._ir import PortDirection
2222

2323
from .. import ChipFlowError
24-
from .utils import load_pinlock, PortDesc, Pin, IOModel, IODriveMode, IOTripPoint, Process
24+
from ._utils import load_pinlock, PortDesc, Pin, IOModel, IODriveMode, IOTripPoint, Process
2525

2626
if TYPE_CHECKING:
2727
from ..config_models import Config

chipflow_lib/platforms/sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from amaranth.hdl._ir import PortDirection
1212
from amaranth.lib.cdc import FFSynchronizer
1313

14-
from .utils import load_pinlock
14+
from ._utils import load_pinlock
1515

1616

1717
__all__ = ["SimPlatform"]

0 commit comments

Comments
 (0)