Skip to content

Commit b801eff

Browse files
committed
modular mempress
1 parent f4b5879 commit b801eff

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ lazy val chipyard = {
158158
.dependsOn(testchipip, rocketchip, boom, rocketchip_blocks, rocketchip_inclusive_cache,
159159
dsptools, rocket_dsp_utils,
160160
radiance, gemmini, icenet, tracegen, cva6, nvdla, sodor, ibex, fft_generator,
161-
constellation, mempress, barf, shuttle, rerocc,
161+
constellation, barf, shuttle, rerocc,
162162
saturn, firrtl2_bridge, vexiiriscv, tacit)
163163
.settings(libraryDependencies ++= rocketLibDeps.value)
164164
.settings(
@@ -178,6 +178,9 @@ lazy val chipyard = {
178178
val includeCompressAcc = file("generators/compress-acc/.git").exists()
179179
if (includeCompressAcc) chipyard = chipyard.dependsOn(compressacc)
180180

181+
val includeMempress = file("generators/mempress/.git").exists()
182+
if (includeMempress) chipyard = chipyard.dependsOn(mempress)
183+
181184
chipyard
182185
}
183186

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ endif
8888
# Returns a list of files in directories $1 with *any* of the file extensions in $2
8989
lookup_srcs_by_multiple_type = $(foreach type,$(2),$(call lookup_srcs,$(1),$(type)))
9090

91-
CHECK_SUBMODULES_COMMAND = echo "Checking required submodules in generators/ are initialized. Uninitialized submodules will be displayed" ; ! git submodule status $(base_dir)/generators | grep '^-.*' | grep -vE "(ara|caliptra|compress)"
91+
CHECK_SUBMODULES_COMMAND = echo "Checking required submodules in generators/ are initialized. Uninitialized submodules will be displayed" ; ! git submodule status $(base_dir)/generators | grep '^-.*' | grep -vE "(ara|caliptra|compress|mempress)"
9292

9393
SCALA_EXT = scala
9494
VLOG_EXT = sv v
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../mempress/chipyard/MempressConfigs.scala

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ class LeanGemminiPrintfRocketConfig extends Config(
3232
new chipyard.config.WithSystemBusWidth(128) ++
3333
new chipyard.config.AbstractConfig)
3434

35-
class MempressRocketConfig extends Config(
36-
new mempress.WithMemPress ++ // use Mempress (memory traffic generation) accelerator
37-
new chipyard.config.WithExtMemIdBits(7) ++ // use 7 bits for tl like request id
38-
new chipyard.config.WithSystemBusWidth(128) ++
39-
new freechips.rocketchip.subsystem.WithNBanks(8) ++
40-
new freechips.rocketchip.subsystem.WithInclusiveCache(nWays=16, capacityKB=2048) ++
41-
new freechips.rocketchip.subsystem.WithNMemoryChannels(4) ++
42-
new freechips.rocketchip.rocket.WithNHugeCores(1) ++
43-
new chipyard.config.AbstractConfig)
44-
4535
class ReRoCCTestConfig extends Config(
4636
new rerocc.WithReRoCC ++
4737
new chipyard.config.WithCharacterCountRoCC ++ // rerocc tile4 is charcnt

generators/mempress

scripts/init-submodules-no-riscv-tools-nolog.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function usage
4545
ENABLE_ARA=""
4646
ENABLE_CALIPTRA=""
4747
ENABLE_COMPRESSACC=""
48+
ENABLE_MEMPRESS=""
4849

4950
while test $# -gt 0
5051
do
@@ -59,6 +60,7 @@ do
5960
ENABLE_ARA=1
6061
ENABLE_CALIPTRA=1
6162
ENABLE_COMPRESSACC=1
63+
ENABLE_MEMPRESS=1
6264
;;
6365
--ara)
6466
ENABLE_ARA=1
@@ -69,6 +71,9 @@ do
6971
--compressacc)
7072
ENABLE_COMPRESSACC=1
7173
;;
74+
--mempress)
75+
ENABLE_MEMPRESS=1
76+
;;
7277
*)
7378
echo "ERROR: bad argument $1"
7479
usage
@@ -111,12 +116,13 @@ cd "$RDIR"
111116
# path to temporarily exclude during the recursive update
112117
for name in \
113118
toolchains/*-tools/* \
114-
generators/cva6 \
119+
toolchains/libgloss \
120+
generators/cva6 \
115121
generators/ara \
116122
generators/caliptra-aes-acc \
117123
generators/compress-acc \
118124
generators/nvdla \
119-
toolchains/libgloss \
125+
generators/mempress \
120126
generators/gemmini \
121127
generators/rocket-chip \
122128
generators/compress-acc \
@@ -179,6 +185,10 @@ cd "$RDIR"
179185
git submodule update --init generators/compress-acc || exit 1
180186
fi
181187

188+
if [[ "$ENABLE_MEMPRESS" -eq 1 ]] ; then
189+
git submodule update --init generators/mempress
190+
fi
191+
182192
# Non-recursive clone to exclude gemmini-software
183193
submodule_name="generators/gemmini"
184194
git submodule update --init generators/gemmini || exit 1

0 commit comments

Comments
 (0)