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 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
+ "YOSYS-WITNESS" : "yowasp-yosys-witness" ,
24
+ }
25
+
26
+ os .environ |= _amaranth_settings
27
+
7
28
class StepBase (ABC ):
8
29
def __init__ (self , config = {}):
9
30
...
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: BSD-2-Clause
2
- from . import StepBase
2
+ from . import StepBase , _setup_amaranth_tools
3
3
4
4
class BoardStep (StepBase ):
5
5
"""Build the design for a board."""
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