Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ __pycache__/

docs/_build
docs/autoapi
docs/chipflow-lib
.cache
6 changes: 3 additions & 3 deletions chipflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class UnexpectedError(ChipFlowError):


DEFAULT_STEPS = {
"silicon": "chipflow.steps.silicon:SiliconStep",
"sim": "chipflow.steps.sim:SimStep",
"software": "chipflow.steps.software:SoftwareStep"
"silicon": "chipflow.platform.silicon_step:SiliconStep",
"sim": "chipflow.platform.sim_step:SimStep",
"software": "chipflow.platform.software_step:SoftwareStep"
}


Expand Down
4 changes: 4 additions & 0 deletions chipflow/common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: BSD-2-Clause
"""
Common utilities for ChipFlow.
"""
File renamed without changes.
20 changes: 0 additions & 20 deletions chipflow/config.py

This file was deleted.

34 changes: 0 additions & 34 deletions chipflow/config_models.py

This file was deleted.

9 changes: 8 additions & 1 deletion chipflow/platforms/_packages.py → chipflow/packages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from ..packaging import QuadPackageDef, BareDiePackageDef, GAPackageDef, Package, OpenframePackageDef
# SPDX-License-Identifier: BSD-2-Clause
"""
Package definitions for ChipFlow platforms.

This module contains package type definitions for supported IC packages.
"""

from .packaging import QuadPackageDef, BareDiePackageDef, GAPackageDef, Package, OpenframePackageDef

# Add any new package types to both PACKAGE_DEFINITIONS and the PackageDef union
PACKAGE_DEFINITIONS = {
Expand Down
2 changes: 1 addition & 1 deletion chipflow/packaging/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .allocation import _linear_allocate_components

if TYPE_CHECKING:
from ..config_models import Config, Process
from ..config import Config, Process

# Type variable for pin types (int for linear allocation, GAPin for grid arrays, etc.)
PinType = TypeVar('PinType')
Expand Down
2 changes: 1 addition & 1 deletion chipflow/packaging/lockfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .openframe import OpenframePackageDef

# Import Process directly for pydantic to work properly
from ..config_models import Process
from ..config import Process


# Union of all package definition types
Expand Down
2 changes: 1 addition & 1 deletion chipflow/packaging/openframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from .base import LinearAllocPackageDef
from .pins import PowerPins, BringupPins
from ..config_models import Voltage
from ..config import Voltage


class OFPin(NamedTuple):
Expand Down
2 changes: 1 addition & 1 deletion chipflow/packaging/pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from enum import StrEnum, auto
from typing import Set, List, Union, Optional, TypeVar, Generic

from ..config_models import Voltage, VoltageRange
from ..config import Voltage, VoltageRange


# Type aliases for pin collections
Expand Down
2 changes: 1 addition & 1 deletion chipflow/packaging/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def lock_pins(config: Optional['Config'] = None) -> None:
ChipFlowError: If configuration is invalid or pin allocation fails
"""
# Import here to avoid circular dependency
from ..platforms._packages import PACKAGE_DEFINITIONS
from ..packages import PACKAGE_DEFINITIONS
from ..utils import top_components

if config is None:
Expand Down
2 changes: 1 addition & 1 deletion chipflow/platform/sim_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def check(self, *args):

self.run(args)
# Import here to avoid circular import
from ..steps._json_compare import compare_events
from ..common._json_compare import compare_events
compare_events(self._config.chipflow.test.event_reference, self.sim_dir / "events.json")
print("Integration test passed sucessfully")

Binary file removed chipflow/platforms/.__init__.py.swp
Binary file not shown.
66 changes: 0 additions & 66 deletions chipflow/platforms/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions chipflow/platforms/silicon.py

This file was deleted.

30 changes: 0 additions & 30 deletions chipflow/steps/__init__.py

This file was deleted.

15 changes: 0 additions & 15 deletions chipflow/steps/board.py

This file was deleted.

23 changes: 0 additions & 23 deletions chipflow/steps/silicon.py

This file was deleted.

17 changes: 0 additions & 17 deletions chipflow/steps/sim.py

This file was deleted.

17 changes: 0 additions & 17 deletions chipflow/steps/software.py

This file was deleted.

11 changes: 7 additions & 4 deletions chipflow_lib/platforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"""
Backward compatibility module for chipflow_lib.platforms.

This module has been renamed to 'chipflow.platforms'. This compatibility layer
This module has been renamed to 'chipflow.platform'. This compatibility layer
will be maintained for some time but is deprecated. Please update your imports.
"""

import warnings

# Issue deprecation warning
warnings.warn(
"The 'chipflow_lib.platforms' module has been renamed to 'chipflow.platforms'. "
"Please update your imports to use 'chipflow.platforms' instead. "
"The 'chipflow_lib.platforms' module has been renamed to 'chipflow.platform'. "
"Please update your imports to use 'chipflow.platform' instead. "
"This compatibility shim will be removed in a future version.",
DeprecationWarning,
stacklevel=2
)

# Re-export symbols used by chipflow-digital-ip and chipflow-examples
from chipflow.platforms import ( # noqa: F401, E402
from chipflow.platform import ( # noqa: F401, E402
# Pin signatures (used by both repos)
BidirIOSignature,
GPIOSignature,
Expand All @@ -40,3 +40,6 @@
attach_data,
SoftwareBuild,
)

# Package definitions
from chipflow.packages import PACKAGE_DEFINITIONS # noqa: F401, E402
2 changes: 1 addition & 1 deletion chipflow_lib/steps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Backward compatibility module for chipflow_lib.steps.

This module has been renamed to 'chipflow.steps'. This compatibility layer
This module has been renamed to 'chipflow.platform'. This compatibility layer
will be maintained for some time but is deprecated. Please update your imports.
"""

Expand Down
Loading
Loading