File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 22Steps provide an extensible way to modify the `chipflow` command behavior for a given design
33"""
44
5+ import os
56from abc import ABC
67
8+ def setup_amaranth_tools ():
9+ _amaranth_settings = {
10+ "AMARANTH_USE_YOSYS" : "system" ,
11+ "YOSYS" : "yowasp-yosys" ,
12+ "SBY" : "yowasp-sby" ,
13+ "SMTBMC" : "yowasp-yosys-smtbmc" ,
14+ "NEXTPNR_ICE40" : "yowasp-nextpnr-ice40" ,
15+ "ICEPACK" : "yowasp-icepackr" ,
16+ "NEXTPNR_ECP5" : "yowasp-nextpnr-ecp5" ,
17+ "ECPBRAM" : "yowasp-ecpbram" ,
18+ "ECPMULTI" : "yowasp-ecpmulti" ,
19+ "ECPPACK" : "yowasp-ecppack" ,
20+ "ECPPLL" : "yowasp-ecppll" ,
21+ "ECPUNPACK" : "yowasp-ecpunpack" ,
22+ "NEXTPNR-ECP5" : "yowasp-nextpnr-ecp5" ,
23+ "YOSYS-WITNESS" : "yowasp-yosys-witness" ,
24+ }
25+
26+ os .environ |= _amaranth_settings
27+
728class StepBase (ABC ):
829 def __init__ (self , config = {}):
930 ...
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: BSD-2-Clause
2- from . import StepBase
2+ from . import StepBase , setup_amaranth_tools
33
44class BoardStep (StepBase ):
55 """Build the design for a board."""
66
77 def __init__ (self , config , platform ):
88 self .platform = platform
9+ setup_amaranth_tools ()
910
1011 def build_cli_parser (self , parser ):
1112 pass
You can’t perform that action at this time.
0 commit comments