@@ -32,6 +32,8 @@ _CW340_TESTROM_PATH = _CW310_TESTROM_PATH
32
32
33
33
_OTP_RMA_PATH = "{}/$(location {})" .format (_PREFIX , _OTP_RMA )
34
34
35
+ _FPGA_PATH_TMPL = "lowrisc_systems_{}_0.1/synth-vivado/{}"
36
+
35
37
# Note: all of the targets are tagged with "manual" to prevent them from being
36
38
# matched by bazel wildcards like "//...". In order to build the bitstream,
37
39
# you need to ask for it directly or by dependency via another rule, such as
@@ -51,10 +53,10 @@ fusesoc_build(
51
53
"--OtpCtrlMemInitFile=" + _OTP_RMA_PATH ,
52
54
],
53
55
output_groups = {
54
- "bitstream" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw310_0.1.bit" ],
55
- "rom_mmi" : ["synth-vivado/ rom.mmi" ],
56
- "otp_mmi" : ["synth-vivado/ otp.mmi" ],
57
- "logs" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw310_0.1.runs/" ],
56
+ "bitstream" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310" , " lowrisc_systems_chip_earlgrey_cw310_0.1.bit") ],
57
+ "rom_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310" , " rom.mmi") ],
58
+ "otp_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310" , " otp.mmi") ],
59
+ "logs" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310" , " lowrisc_systems_chip_earlgrey_cw310_0.1.runs/") ],
58
60
},
59
61
systems = ["lowrisc:systems:chip_earlgrey_cw310" ],
60
62
tags = ["manual" ],
@@ -101,10 +103,10 @@ fusesoc_build(
101
103
"--OtpCtrlMemInitFile=" + _OTP_RMA_PATH ,
102
104
],
103
105
output_groups = {
104
- "bitstream" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.bit" ],
105
- "rom_mmi" : ["synth-vivado/ rom.mmi" ],
106
- "otp_mmi" : ["synth-vivado/ otp.mmi" ],
107
- "logs" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.runs/" ],
106
+ "bitstream" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310_hyperdebug" , " lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.bit") ],
107
+ "rom_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310_hyperdebug" , " rom.mmi") ],
108
+ "otp_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310_hyperdebug" , " otp.mmi") ],
109
+ "logs" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw310_hyperdebug" , " lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.runs/") ],
108
110
},
109
111
systems = ["lowrisc:systems:chip_earlgrey_cw310_hyperdebug" ],
110
112
tags = ["manual" ],
@@ -151,10 +153,10 @@ fusesoc_build(
151
153
"--OtpCtrlMemInitFile=" + _OTP_RMA_PATH ,
152
154
],
153
155
output_groups = {
154
- "bitstream" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw340_0.1.bit" ],
155
- "rom_mmi" : ["synth-vivado/ rom.mmi" ],
156
- "otp_mmi" : ["synth-vivado/ otp.mmi" ],
157
- "logs" : ["synth-vivado/ lowrisc_systems_chip_earlgrey_cw340_0.1.runs/" ],
156
+ "bitstream" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw340" , " lowrisc_systems_chip_earlgrey_cw340_0.1.bit") ],
157
+ "rom_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw340" , " rom.mmi") ],
158
+ "otp_mmi" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw340" , " otp.mmi") ],
159
+ "logs" : [_FPGA_PATH_TMPL . format ( "chip_earlgrey_cw340" , " lowrisc_systems_chip_earlgrey_cw340_0.1.runs/") ],
158
160
},
159
161
systems = ["lowrisc:systems:chip_earlgrey_cw340" ],
160
162
tags = ["manual" ],
0 commit comments