|
12 | 12 |
|
13 | 13 | from amaranth import Module |
14 | 14 |
|
15 | | -from . import StepBase, _wire_up_ports |
16 | | -from ._json_compare import compare_events |
17 | | -from .. import ChipFlowError, _ensure_chipflow_root |
| 15 | +from .base import StepBase, _wire_up_ports |
| 16 | +from .utils import top_components |
| 17 | +from .sim import VARIABLES, TASKS, DOIT_CONFIG, SimPlatform |
| 18 | +from ..steps._json_compare import compare_events |
| 19 | +from ..utils import ChipFlowError, ensure_chipflow_root |
18 | 20 | from ..cli import run |
19 | | -from ..platforms._utils import top_components, load_pinlock |
20 | | -from ..platforms.sim import VARIABLES, TASKS, DOIT_CONFIG, SimPlatform |
| 21 | +from ..packaging import load_pinlock |
21 | 22 |
|
22 | 23 |
|
23 | 24 | EXE = ".exe" if os.name == "nt" else "" |
@@ -92,7 +93,7 @@ def run_cli(self, args): |
92 | 93 |
|
93 | 94 | @property |
94 | 95 | def sim_dir(self): |
95 | | - return _ensure_chipflow_root() / 'build' / 'sim' |
| 96 | + return ensure_chipflow_root() / 'build' / 'sim' |
96 | 97 |
|
97 | 98 | def build(self, *args): |
98 | 99 | """ |
@@ -120,8 +121,8 @@ def build(self, *args): |
120 | 121 | context = { |
121 | 122 | "COMMON_DIR": common_dir, |
122 | 123 | "RUNTIME_DIR": runtime_dir, |
123 | | - "PROJECT_ROOT": _ensure_chipflow_root(), |
124 | | - "BUILD_DIR": _ensure_chipflow_root() / 'build', |
| 124 | + "PROJECT_ROOT": ensure_chipflow_root(), |
| 125 | + "BUILD_DIR": ensure_chipflow_root() / 'build', |
125 | 126 | "EXE": EXE, |
126 | 127 | } |
127 | 128 | for k,v in VARIABLES.items(): |
|
0 commit comments