Skip to content

Commit baef821

Browse files
committed
fix configs, scripts, makefile, and other stuff for merge
1 parent b5a46de commit baef821

File tree

7 files changed

+14
-251
lines changed

7 files changed

+14
-251
lines changed

.github/scripts/check-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ search () {
4646
}
4747

4848

49-
submodules=("cva6" "boom" "ibex" "gemmini" "icenet" "nvdla" "rocket-chip" "rocket-chip-blocks" "rocket-chip-inclusive-cache" "testchipip" "riscv-sodor" "mempress" "bar-fetchers" "shuttle" "constellation" "fft-generator" "hardfloat" "caliptra-aes-acc" "rocc-acc-utils" "diplomacy" "rerocc" "compress-acc" "saturn" "ara" "vexiiriscv")
49+
submodules=("cva6" "boom" "ibex" "gemmini" "icenet" "nvdla" "rocket-chip" "rocket-chip-blocks" "rocket-chip-inclusive-cache" "testchipip" "riscv-sodor" "mempress" "bar-fetchers" "shuttle" "constellation" "fft-generator" "hardfloat" "caliptra-aes-acc" "rocc-acc-utils" "diplomacy" "rerocc" "compress-acc" "saturn" "ara" "vexiiriscv" "radiance")
5050
dir="generators"
5151
branches=("master" "main" "dev")
5252
search

common.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ HELP_COMPILATION_VARIABLES += \
1717
" EXTRA_SIM_SOURCES = additional simulation sources needed for simulator" \
1818
" EXTRA_SIM_REQS = additional make requirements to build the simulator" \
1919
" EXTRA_SIM_OUT_NAME = additional suffix appended to the simulation .out log filename" \
20+
" EXTRA_SIM_PREPROC_DEFINES = additional defines passed to the simulator" \
2021
" ENABLE_YOSYS_FLOW = if set, add compilation flags to enable the vlsi flow for yosys(tutorial flow)" \
2122
" EXTRA_CHISEL_OPTIONS = additional options to pass to the Chisel compiler" \
2223
" MFC_BASE_LOWERING_OPTIONS = override lowering options to pass to the MLIR FIRRTL compiler" \

conda-reqs/chipyard-extended.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ dependencies:
4646
- findutils
4747
- lzop
4848

49-
# dpi module
50-
- rust
5149

5250
- bash-completion
5351
- ca-certificates

generators/chipyard/src/main/scala/config/CoalescerConfigs.scala

Lines changed: 1 addition & 231 deletions
Original file line numberDiff line numberDiff line change
@@ -15,236 +15,6 @@ class MemtraceCoreConfig extends Config(
1515
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
1616
new freechips.rocketchip.subsystem.WithNBanks(4) ++
1717
new chipyard.config.WithSystemBusWidth(16 * 8) ++
18-
// Small Rocket core that does nothing
19-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
20-
new chipyard.config.AbstractConfig
18+
new chipyard.NoCoresConfig
2119
)
2220

23-
24-
/////////////////////////////////////////////////
25-
/// Various Configs for perf testing (feel free to delete them later)
26-
/////////////////////////////////////////////////
27-
28-
class MemtraceCoreNV64B2IdConfig extends Config(
29-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
30-
traceHasSource = false) ++
31-
new radiance.subsystem.WithCoalescer(nNewSrcIds=2) ++
32-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=2) ++
33-
// L2
34-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
35-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
36-
new chipyard.config.WithSystemBusWidth(64) ++
37-
// Small Rocket core that does nothing
38-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
39-
new chipyard.config.AbstractConfig
40-
)
41-
42-
class MemtraceCoreNV128B2IdConfig extends Config(
43-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
44-
traceHasSource = false) ++
45-
new radiance.subsystem.WithCoalescer(nNewSrcIds=2) ++
46-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=2) ++
47-
// L2
48-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
49-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
50-
new chipyard.config.WithSystemBusWidth(128) ++
51-
// Small Rocket core that does nothing
52-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
53-
new chipyard.config.AbstractConfig
54-
)
55-
56-
class MemtraceCoreNV256B2IdConfig extends Config(
57-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
58-
traceHasSource = false) ++
59-
new radiance.subsystem.WithCoalescer(nNewSrcIds=2) ++
60-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=2) ++
61-
// L2
62-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
63-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
64-
new chipyard.config.WithSystemBusWidth(256) ++
65-
// Small Rocket core that does nothing
66-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
67-
new chipyard.config.AbstractConfig
68-
)
69-
70-
class MemtraceCoreNV512B2IdConfig extends Config(
71-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
72-
traceHasSource = false) ++
73-
new radiance.subsystem.WithCoalescer(nNewSrcIds=2) ++
74-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=2) ++
75-
// L2
76-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
77-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
78-
new chipyard.config.WithSystemBusWidth(512) ++
79-
// Small Rocket core that does nothing
80-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
81-
new chipyard.config.AbstractConfig
82-
)
83-
84-
class MemtraceCoreNV64B8IdConfig extends Config(
85-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
86-
traceHasSource = false) ++
87-
new radiance.subsystem.WithCoalescer(nNewSrcIds=8) ++
88-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=8) ++
89-
// L2
90-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
91-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
92-
new chipyard.config.WithSystemBusWidth(64) ++
93-
// Small Rocket core that does nothing
94-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
95-
new chipyard.config.AbstractConfig
96-
)
97-
98-
class MemtraceCoreNV128B8IdConfig extends Config(
99-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
100-
traceHasSource = false) ++
101-
new radiance.subsystem.WithCoalescer(nNewSrcIds=8) ++
102-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=8) ++
103-
// L2
104-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
105-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
106-
new chipyard.config.WithSystemBusWidth(128) ++
107-
// Small Rocket core that does nothing
108-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
109-
new chipyard.config.AbstractConfig
110-
)
111-
112-
class MemtraceCoreNV256B8IdConfig extends Config(
113-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
114-
traceHasSource = false) ++
115-
new radiance.subsystem.WithCoalescer(nNewSrcIds=8) ++
116-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=8) ++
117-
// L2
118-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
119-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
120-
new chipyard.config.WithSystemBusWidth(256) ++
121-
// Small Rocket core that does nothing
122-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
123-
new chipyard.config.AbstractConfig
124-
)
125-
126-
class MemtraceCoreNV512B8IdConfig extends Config(
127-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
128-
traceHasSource = false) ++
129-
new radiance.subsystem.WithCoalescer(nNewSrcIds=8) ++
130-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=8) ++
131-
// L2
132-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
133-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
134-
new chipyard.config.WithSystemBusWidth(512) ++
135-
// Small Rocket core that does nothing
136-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
137-
new chipyard.config.AbstractConfig
138-
)
139-
140-
class MemtraceCoreNV64B16IdConfig extends Config(
141-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
142-
traceHasSource = false) ++
143-
new radiance.subsystem.WithCoalescer(nNewSrcIds=16) ++
144-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=16) ++
145-
// L2
146-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
147-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
148-
new chipyard.config.WithSystemBusWidth(64) ++
149-
// Small Rocket core that does nothing
150-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
151-
new chipyard.config.AbstractConfig
152-
)
153-
154-
class MemtraceCoreNV128B16IdConfig extends Config(
155-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
156-
traceHasSource = false) ++
157-
new radiance.subsystem.WithCoalescer(nNewSrcIds=16) ++
158-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=16) ++
159-
// L2
160-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
161-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
162-
new chipyard.config.WithSystemBusWidth(128) ++
163-
// Small Rocket core that does nothing
164-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
165-
new chipyard.config.AbstractConfig
166-
)
167-
168-
class MemtraceCoreNV256B16IdConfig extends Config(
169-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
170-
traceHasSource = false) ++
171-
new radiance.subsystem.WithCoalescer(nNewSrcIds=16) ++
172-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=16) ++
173-
// L2
174-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
175-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
176-
new chipyard.config.WithSystemBusWidth(256) ++
177-
// Small Rocket core that does nothing
178-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
179-
new chipyard.config.AbstractConfig
180-
)
181-
182-
class MemtraceCoreNV512B16IdConfig extends Config(
183-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
184-
traceHasSource = false) ++
185-
new radiance.subsystem.WithCoalescer(nNewSrcIds=16) ++
186-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=16) ++
187-
// L2
188-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
189-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
190-
new chipyard.config.WithSystemBusWidth(512) ++
191-
// Small Rocket core that does nothing
192-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
193-
new chipyard.config.AbstractConfig
194-
)
195-
196-
class MemtraceCoreNV64B32IdConfig extends Config(
197-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
198-
traceHasSource = false) ++
199-
new radiance.subsystem.WithCoalescer(nNewSrcIds=32) ++
200-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=32) ++
201-
// L2
202-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
203-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
204-
new chipyard.config.WithSystemBusWidth(64) ++
205-
// Small Rocket core that does nothing
206-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
207-
new chipyard.config.AbstractConfig
208-
)
209-
210-
class MemtraceCoreNV128B32IdConfig extends Config(
211-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
212-
traceHasSource = false) ++
213-
new radiance.subsystem.WithCoalescer(nNewSrcIds=32) ++
214-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=32) ++
215-
// L2
216-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
217-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
218-
new chipyard.config.WithSystemBusWidth(128) ++
219-
// Small Rocket core that does nothing
220-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
221-
new chipyard.config.AbstractConfig
222-
)
223-
224-
class MemtraceCoreNV256B32IdConfig extends Config(
225-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
226-
traceHasSource = false) ++
227-
new radiance.subsystem.WithCoalescer(nNewSrcIds=32) ++
228-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=32) ++
229-
// L2
230-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
231-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
232-
new chipyard.config.WithSystemBusWidth(256) ++
233-
// Small Rocket core that does nothing
234-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
235-
new chipyard.config.AbstractConfig
236-
)
237-
238-
class MemtraceCoreNV512B32IdConfig extends Config(
239-
new radiance.subsystem.WithMemtraceCore("nvbit.vecadd.n100000.filter_sm0.lane32.trace",
240-
traceHasSource = false) ++
241-
new radiance.subsystem.WithCoalescer(nNewSrcIds=32) ++
242-
new radiance.subsystem.WithSimtConfig(nMemLanes=32, nSrcIds=32) ++
243-
// L2
244-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=8, capacityKB=512) ++
245-
new freechips.rocketchip.subsystem.WithNBanks(4) ++
246-
new chipyard.config.WithSystemBusWidth(512) ++
247-
// Small Rocket core that does nothing
248-
new radiance.subsystem.WithNCustomSmallRocketCores(1) ++
249-
new chipyard.config.AbstractConfig
250-
)

generators/chipyard/src/main/scala/config/RadianceConfigs.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ import freechips.rocketchip.subsystem._
88
import org.chipsalliance.cde.config.Config
99
import radiance.subsystem.RadianceGemminiDataType
1010

11-
class WithRadBootROM(address: BigInt = 0x10000, size: Int = 0x10000, hang: BigInt = 0x10100) extends Config((site, here, up) => {
12-
case BootROMLocated(x) => up(BootROMLocated(x))
13-
.map(_.copy(
14-
address = address,
15-
size = size,
16-
hang = hang,
17-
contentFileName = s"${site(TargetDirKey)}/bootrom.radiance.rv32.img"
18-
))
19-
})
20-
2111
// ----------------
2212
// Radiance Configs
2313
// ----------------
@@ -38,7 +28,6 @@ class RadianceBaseConfig extends Config(
3828
new chipyard.config.WithSystemBusWidth(bitWidth = 256) ++
3929
new WithExtMemSize(BigInt("80000000", 16)) ++
4030
new WithRadBootROM() ++
41-
new chipyard.iobinders.WithCeasePunchThrough ++
4231
new radiance.subsystem.WithRadianceSimParams(true) ++
4332
new WithCacheBlockBytes(64) ++
4433
new freechips.rocketchip.subsystem.WithNMemoryChannels(2) ++
@@ -158,16 +147,11 @@ class RadianceNoCoalConfig extends Config(
158147
class RadianceEmulatorConfig extends Config(
159148
new radiance.subsystem.WithEmulatorCores(1, useVxCache = false) ++
160149
new radiance.subsystem.WithSimtConfig(nMemLanes = 4, nSrcIds = 4) ++
161-
new chipyard.config.WithSystemBusWidth(bitWidth = 256) ++
162-
new chipyard.harness.WithCeaseSuccess ++
163-
new chipyard.iobinders.WithCeasePunchThrough ++
164150
new AbstractConfig)
165151

166152
class RadianceFuzzerConfig extends Config(
167153
new radiance.subsystem.WithFuzzerCores(1, useVxCache = false) ++
168154
new radiance.subsystem.WithCoalescer(nNewSrcIds = 2) ++
169155
new radiance.subsystem.WithSimtConfig(nMemLanes = 4, nSrcIds = 2) ++
170156
new chipyard.config.WithSystemBusWidth(bitWidth = 256) ++
171-
new chipyard.harness.WithCeaseSuccess ++
172-
new chipyard.iobinders.WithCeasePunchThrough ++
173157
new AbstractConfig)

generators/chipyard/src/main/scala/config/fragments/PeripheralFragments.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ class WithNoBootROM extends Config((site, here, up) => {
162162
case BootROMLocated(_) => None
163163
})
164164

165+
class WithRadBootROM(address: BigInt = 0x10000, size: Int = 0x10000, hang: BigInt = 0x10100) extends Config((site, here, up) => {
166+
case BootROMLocated(x) => up(BootROMLocated(x))
167+
.map(_.copy(
168+
address = address,
169+
size = size,
170+
hang = hang,
171+
contentFileName = s"${site(TargetDirKey)}/bootrom.radiance.rv32.img"
172+
))
173+
})
174+
165175
class WithNoBusErrorDevices extends Config((site, here, up) => {
166176
case SystemBusKey => up(SystemBusKey).copy(errorDevice = None)
167177
case ControlBusKey => up(ControlBusKey).copy(errorDevice = None)

0 commit comments

Comments
 (0)