File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 2
2
Steps provide an extensible way to modify the `chipflow` command behavior for a given design
3
3
"""
4
4
5
+ import os
5
6
from abc import ABC
6
7
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
+ "SBY" : "yowasp-sby" ,
24
+ "YOSYS-WITNESS" : "yowasp-yosys-witness" ,
25
+ }
26
+
27
+ os .environ |= _amaranth_settings
28
+
7
29
class StepBase (ABC ):
8
30
def __init__ (self , config = {}):
9
31
...
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class BoardStep(StepBase):
6
6
7
7
def __init__ (self , config , platform ):
8
8
self .platform = platform
9
+ _setup_amaranth_tools ()
9
10
10
11
def build_cli_parser (self , parser ):
11
12
pass
You can’t perform that action at this time.
0 commit comments