Skip to content

Commit c935741

Browse files
committed
Modularize compressacc
1 parent ddae0e0 commit c935741

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
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: 15 additions & 7 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 \
@@ -139,25 +145,27 @@ cd "$RDIR"
139145
git submodule update --init generators/nvdla
140146
git -C generators/nvdla submodule update --init src/main/resources/hw
141147

142-
# Non-recursive clone to exclude ara submods
148+
# Optional clones
143149
if [[ "$ENABLE_ARA" -eq 1 ]] ; then
144150
git submodule update --init generators/ara
145151
git -C generators/ara submodule update --init ara
146152
fi
147153

148-
if [[ "$ENABLE_CALIPTRA" -eq 1]] ; then
154+
if [[ "$ENABLE_CALIPTRA" -eq 1 ]] ; then
149155
git submodule update --init generators/caliptra-aes-acc
150156
fi
151157

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

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

159-
# Non-recursive clone
160-
git submodule update --init generators/compress-acc
161169

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

0 commit comments

Comments
 (0)