-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
138 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
export PATH="$LOCAL_CONDA/bin:$PATH" | ||
conda init | ||
source ~/.bashrc | ||
conda activate base | ||
if ! { conda env list | grep 'chipyard'; } >/dev/null 2>&1; then | ||
conda create -n chipyard | ||
conda activate chipyard | ||
conda install -c conda-forge conda-lock | ||
fi | ||
conda activate chipyard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------- | ||
# installs gemmini | ||
# | ||
# run location: circle ci docker image | ||
#------------------------------------------------------------- | ||
|
||
# turn echo on and error on earliest command | ||
set -ex | ||
|
||
# get shared variables | ||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
source $SCRIPT_DIR/defaults.sh | ||
|
||
source $SCRIPT_DIR/enable-conda.sh | ||
|
||
cd $HOME | ||
rm -rf chipyard | ||
git clone --progress --verbose https://github.com/ucb-bar/chipyard.git chipyard | ||
cd $LOCAL_CHIPYARD_DIR | ||
|
||
echo "Checking out Chipyard version: $(cat $LOCAL_CHECKOUT_DIR/CHIPYARD.hash)" | ||
git fetch | ||
git checkout $(cat $LOCAL_CHECKOUT_DIR/CHIPYARD.hash) | ||
|
||
./build-setup.sh esp-tools | ||
|
||
source env.sh | ||
|
||
cd toolchains/esp-tools/riscv-isa-sim/build | ||
echo "Checking out Spike version $(cat $LOCAL_CHECKOUT_DIR/SPIKE.hash)" | ||
git checkout $(cat $LOCAL_CHECKOUT_DIR/SPIKE.hash) | ||
make && make install | ||
|
||
cd $LOCAL_CHECKOUT_DIR | ||
chown -R $(whoami) . | ||
git config --global --add safe.directory $LOCAL_CHECKOUT_DIR | ||
git submodule update --init --recursive software/gemmini-rocc-tests | ||
rm -rf $LOCAL_CHIPYARD_DIR/generators/gemmini/* $LOCAL_CHIPYARD_DIR/generators/gemmini/.git* | ||
mv -f $LOCAL_CHECKOUT_DIR/* $LOCAL_CHECKOUT_DIR/.git* $LOCAL_CHIPYARD_DIR/generators/gemmini/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
source $SCRIPT_DIR/defaults.sh | ||
|
||
rm -rf $LOCAL_CHIPYARD_DIR | ||
rm -rf $LOCAL_CONDA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.