Skip to content

Commit 90758ff

Browse files
committed
Modularize compressacc
1 parent b73fc75 commit 90758ff

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

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)"
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)"
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+
../../../../../compress-acc/chipyard/CompressAccConfigs.scala

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,3 @@ class ReRoCCManyGemminiConfig extends Config(
6161
new freechips.rocketchip.rocket.WithNHugeCores(4) ++ // 4 rocket cores
6262
new chipyard.config.AbstractConfig)
6363

64-
class ZstdCompressorRocketConfig extends Config(
65-
new compressacc.WithZstdCompressor ++
66-
new freechips.rocketchip.rocket.WithNHugeCores(1) ++
67-
new chipyard.config.AbstractConfig)

generators/compress-acc

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ function usage
1919
echo "Enable other submodules with the --full or submodule-specific flags"
2020
echo ""
2121
echo "Options:"
22-
echo " -h Display this help message"
23-
echo " --full Initialize all submodules"
24-
echo " --ara Initialize the ara submodule"
22+
echo " -h Display this help message"
23+
echo " --full Initialize all submodules"
24+
echo " --ara Initialize the optional ara submodule"
25+
echo " --compressacc Initialize the optional compressor accelerator submodule"
2526
echo ""
2627
}
2728

2829
ENABLE_ARA=""
2930
ENABLE_CALIPTRA=""
31+
ENABLE_COMPRESSACC=""
3032

3133
while test $# -gt 0
3234
do
@@ -47,6 +49,9 @@ do
4749
--caliptra)
4850
ENABLE_CALIPTRA=1
4951
;;
52+
--compressacc)
53+
ENABLE_COMPRESSACC=1
54+
;;
5055
*)
5156
echo "ERROR: bad argument $1"
5257
usage
@@ -92,6 +97,7 @@ cd "$RDIR"
9297
generators/cva6 \
9398
generators/ara \
9499
generators/caliptra-aes-acc \
100+
generators/compress-acc \
95101
generators/nvdla \
96102
toolchains/libgloss \
97103
generators/gemmini \
@@ -138,7 +144,7 @@ cd "$RDIR"
138144
git submodule update --init generators/nvdla
139145
git -C generators/nvdla submodule update --init src/main/resources/hw
140146

141-
# Non-recursive clone to exclude ara submods
147+
# Optional clones
142148
if [[ "$ENABLE_ARA" -eq 1 ]] ; then
143149
git submodule update --init generators/ara
144150
git -C generators/ara submodule update --init ara
@@ -148,15 +154,17 @@ cd "$RDIR"
148154
git submodule update --init generators/caliptra-aes-acc
149155
fi
150156

157+
if [[ "$ENABLE_COMPRESSACC" -eq 1]] ; then
158+
git submodule update --init generators/compress-acc
159+
fi
160+
151161
# Non-recursive clone to exclude gemmini-software
152162
git submodule update --init generators/gemmini
153163
git -C generators/gemmini/ submodule update --init --recursive software/gemmini-rocc-tests
154164

155165
# Non-recursive clone
156166
git submodule update --init generators/rocket-chip
157167

158-
# Non-recursive clone
159-
git submodule update --init generators/compress-acc
160168

161169
# Non-recursive clone
162170
git submodule update --init generators/vexiiriscv

0 commit comments

Comments
 (0)