Skip to content

Commit

Permalink
Merge pull request #455 from riscv-boom/jerryz123-patch-1
Browse files Browse the repository at this point in the history
Update CHIPYARD.hash
  • Loading branch information
jerryz123 committed Apr 21, 2020
2 parents 90911dd + 826b70e commit e81d8cc
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 111 deletions.
104 changes: 23 additions & 81 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 2
jobs:
install-riscv-toolchain:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -31,7 +31,7 @@ jobs:
- "/home/riscvuser/riscv-tools-install"
install-esp-toolchain:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -55,7 +55,7 @@ jobs:
- "/home/riscvuser/esp-tools-install"
prepare-build-environment:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -67,25 +67,18 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Build Verilator and checkout submodules
name: Checkout submodules
command: |
.circleci/prepare-for-rtl-build.sh
no_output_timeout: 120m
- save_cache:
key: chipyard-v13-{{ checksum "CHIPYARD.hash" }}
paths:
- "/home/riscvuser/chipyard"
- save_cache:
key: verilator-v13-{{ checksum "CHIPYARD.hash" }}
paths:
- "/home/riscvuser/verilator"
run-scala-checkstyle:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -96,7 +89,7 @@ jobs:
command: make checkstyle
prepare-smallboomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -115,9 +108,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building SmallBoomConfig using Verilator
command: .circleci/do-rtl-build.sh smallboom
Expand All @@ -128,7 +118,7 @@ jobs:
- "/home/riscvuser/chipyard"
prepare-mediumboomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -147,9 +137,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building MediumBoomConfig using Verilator
command: .circleci/do-rtl-build.sh mediumboom
Expand All @@ -160,7 +147,7 @@ jobs:
- "/home/riscvuser/chipyard"
prepare-largeboomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -179,9 +166,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building LargeBoomConfig using Verilator
command: .circleci/do-rtl-build.sh largeboom
Expand All @@ -192,7 +176,7 @@ jobs:
- "/home/riscvuser/chipyard"
prepare-megaboomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -211,9 +195,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building MegaBoomConfig using Verilator
command: .circleci/do-rtl-build.sh megaboom
Expand All @@ -224,7 +205,7 @@ jobs:
- "/home/riscvuser/chipyard"
prepare-smallrv32boomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -243,9 +224,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building SmallRV32BoomConfig using Verilator
command: .circleci/do-rtl-build.sh rv32boom
Expand All @@ -256,7 +234,7 @@ jobs:
- "/home/riscvuser/chipyard"
prepare-hwachaboomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -275,9 +253,6 @@ jobs:
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building HwachaBoomConfig using Verilator
command: .circleci/do-rtl-build.sh hwachaboom
Expand All @@ -288,7 +263,7 @@ jobs:
- "/home/riscvuser/chipyard"
smallboomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -304,16 +279,13 @@ jobs:
- restore_cache:
keys:
- smallboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallBoomConfig csmith tests
command: .circleci/build-run-csmith-tests.sh smallboom 50
no_output_timeout: 30m
smallboomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -329,15 +301,12 @@ jobs:
- restore_cache:
keys:
- smallboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallBoomConfig riscv tests
command: .circleci/run-tests.sh smallboom
mediumboomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -353,16 +322,13 @@ jobs:
- restore_cache:
keys:
- mediumboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run MediumBoomConfig csmith tests
command: .circleci/build-run-csmith-tests.sh mediumboom 50
no_output_timeout: 30m
mediumboomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -378,15 +344,12 @@ jobs:
- restore_cache:
keys:
- mediumboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run MediumBoomConfig riscv tests
command: .circleci/run-tests.sh mediumboom
largeboomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -402,16 +365,13 @@ jobs:
- restore_cache:
keys:
- largeboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run LargeBoomConfig csmith tests
command: .circleci/build-run-csmith-tests.sh largeboom 40
no_output_timeout: 30m
largeboomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -427,15 +387,12 @@ jobs:
- restore_cache:
keys:
- largeboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run LargeBoomConfig riscv tests
command: .circleci/run-tests.sh largeboom
megaboomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -451,16 +408,13 @@ jobs:
- restore_cache:
keys:
- megaboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run MegaBoomConfig csmith tests
command: .circleci/build-run-csmith-tests.sh megaboom 40
no_output_timeout: 30m
megaboomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -476,16 +430,13 @@ jobs:
- restore_cache:
keys:
- megaboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run MegaBoomConfig riscv tests
command: .circleci/run-tests.sh megaboom
no_output_timeout: 30m
smallrv32boomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -501,16 +452,13 @@ jobs:
- restore_cache:
keys:
- smallrv32boomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallRV32BoomConfig csmith tests
command: .circleci/build-run-csmith-tests.sh rv32boom 50
no_output_timeout: 30m
smallrv32boomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -526,15 +474,12 @@ jobs:
- restore_cache:
keys:
- smallrv32boomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallRV32BoomConfig riscv tests
command: .circleci/run-tests.sh rv32boom
hwachaboomconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
- image: ucbbar/chipyard-image:1.0.0
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
Expand All @@ -550,9 +495,6 @@ jobs:
- restore_cache:
keys:
- hwachaboomconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run HwachaBoomConfig riscv tests
command: .circleci/run-tests.sh hwachaboom
Expand All @@ -566,7 +508,7 @@ workflows:
- install-riscv-toolchain
- install-esp-toolchain

# Build verilator
# Prepare chipyard directory
- prepare-build-environment

# Run generic syntax checking
Expand Down
2 changes: 0 additions & 2 deletions .circleci/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ REMOTE_WORK_DIR=$CI_DIR/$CIRCLE_PROJECT_REPONAME-$CIRCLE_BRANCH-$CIRCLE_SHA1-$CI
REMOTE_RISCV_DIR=$REMOTE_WORK_DIR/riscv-tools-install
REMOTE_ESP_DIR=$REMOTE_WORK_DIR/esp-tools-install
REMOTE_CHIPYARD_DIR=$REMOTE_WORK_DIR/chipyard
REMOTE_VERILATOR_DIR=$REMOTE_WORK_DIR/verilator
REMOTE_SIM_DIR=$REMOTE_CHIPYARD_DIR/sims/verilator
REMOTE_JAVA_ARGS="-Xmx8G -Xss8M -Dsbt.ivy.home=$REMOTE_WORK_DIR/.ivy2 -Dsbt.global.base=$REMOTE_WORK_DIR/.sbt -Dsbt.boot.directory=$REMOTE_WORK_DIR/.sbt/boot"

Expand All @@ -34,7 +33,6 @@ LOCAL_CHECKOUT_DIR=$HOME/project
LOCAL_RISCV_DIR=$HOME/riscv-tools-install
LOCAL_ESP_DIR=$HOME/esp-tools-install
LOCAL_CHIPYARD_DIR=$HOME/chipyard
LOCAL_VERILATOR_DIR=$HOME/verilator
LOCAL_SIM_DIR=$LOCAL_CHIPYARD_DIR/sims/verilator

# key value store to get the build strings
Expand Down

0 comments on commit e81d8cc

Please sign in to comment.