Skip to content

Commit 8afb93e

Browse files
committed
Add default steps for sim & silicon
1 parent 64e8593 commit 8afb93e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

chipflow_lib/cli.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,21 @@ class UnexpectedError(ChipFlowError):
2020

2121
log_level = logging.WARNING
2222

23+
24+
DEFAULT_STEPS = {
25+
"silicon": "chipflow_lib.steps.silicon:SiliconStep",
26+
"sim": "chipflow_lib.steps.sim:SimStep",
27+
}
28+
29+
2330
def run(argv=sys.argv[1:]):
2431
config = _parse_config()
2532

2633
commands = {}
2734
commands["pin"] = PinCommand(config)
2835

29-
for step_name, step_reference in config["chipflow"]["steps"].items():
36+
steps = DEFAULT_STEPS | config["chipflow"]["steps"]
37+
for step_name, step_reference in steps.items():
3038
step_cls = _get_cls_by_reference(step_reference, context=f"step `{step_name}`")
3139
try:
3240
commands[step_name] = step_cls(config)

chipflow_lib/config_models.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ def validate_pad_dicts(cls, v, info: ValidationInfo):
5858
return v
5959

6060

61-
class StepsConfig(BaseModel):
62-
"""Configuration for steps in chipflow.toml."""
63-
silicon: str
64-
65-
6661
class ChipFlowConfig(BaseModel):
6762
"""Root configuration for chipflow.toml."""
6863
project_name: str

0 commit comments

Comments
 (0)