Skip to content

Commit

Permalink
Merge pull request #444 from riscv-boom/no_renumber
Browse files Browse the repository at this point in the history
Move WithRenumberHarts to chipyard
  • Loading branch information
abejgonzalez committed Mar 6, 2020
2 parents b3bf6d9 + 1b88b41 commit fb248eb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .circleci/build-run-csmith-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -ex
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source $SCRIPT_DIR/defaults.sh

SIM_BASE=simulator-example-
SIM_BASE=simulator-chipyard-
CONFIG=$(echo ${mapping[$1]} | sed -n -e 's/^.*CONFIG=\([a-zA-Z0-9]*\).*/\1/p')
SIM=${SIM_BASE}${CONFIG}
AMT_RUNS=$2
Expand Down
107 changes: 7 additions & 100 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,38 +222,6 @@ jobs:
key: megaboomconfig-{{ .Branch }}-{{ .Revision }}
paths:
- "/home/riscvuser/chipyard"
prepare-smallboomandrocketconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
steps:
- add_ssh_keys:
fingerprints:
- "3e:c3:02:5b:ed:64:8c:b7:b0:04:43:bc:83:43:73:1e"
- checkout
- run:
name: Create hash of toolchains
command: |
.circleci/create-hash.sh
- restore_cache:
keys:
- riscv-tools-installed-v4-{{ checksum "../riscv-tools.hash" }}
- restore_cache:
keys:
- chipyard-v13-{{ checksum "CHIPYARD.hash" }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Building SmallBoomAndRocketConfig using Verilator
command: .circleci/do-rtl-build.sh boomandrocket
no_output_timeout: 120m
- save_cache:
key: smallboomandrocketconfig-{{ .Branch }}-{{ .Revision }}
paths:
- "/home/riscvuser/chipyard"
prepare-smallrv32boomconfig:
docker:
- image: riscvboom/riscvboom-images:0.0.12
Expand Down Expand Up @@ -515,55 +483,6 @@ jobs:
name: Run MegaBoomConfig riscv tests
command: .circleci/run-tests.sh megaboom
no_output_timeout: 30m
smallboomandrocketconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
steps:
- checkout
- run:
name: Create hash of toolchains
command: |
.circleci/create-hash.sh
- restore_cache:
keys:
- riscv-tools-installed-v4-{{ checksum "../riscv-tools.hash" }}
- restore_cache:
keys:
- smallboomandrocketconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallBoomAndRocketConfig csmith tests
command: .circleci/build-run-csmith-tests.sh boomandrocket 50
no_output_timeout: 30m
smallboomandrocketconfig-run-riscv-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
TERM: dumb
steps:
- checkout
- run:
name: Create hash of toolchains
command: |
.circleci/create-hash.sh
- restore_cache:
keys:
- riscv-tools-installed-v4-{{ checksum "../riscv-tools.hash" }}
- restore_cache:
keys:
- smallboomandrocketconfig-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- verilator-v13-{{ checksum "CHIPYARD.hash" }}
- run:
name: Run SmallBoomAndRocketConfig riscv tests
command: .circleci/run-tests.sh boomandrocket
smallrv32boomconfig-run-csmith-tests:
docker:
- image: riscvboom/riscvboom-images:0.0.12
Expand Down Expand Up @@ -670,14 +589,10 @@ workflows:
requires:
- prepare-build-environment
- install-riscv-toolchain
- prepare-smallboomandrocketconfig:
requires:
- prepare-build-environment
- install-riscv-toolchain
- prepare-smallrv32boomconfig:
requires:
- prepare-build-environment
- install-riscv-toolchain
# - prepare-smallrv32boomconfig:
# requires:
# - prepare-build-environment
# - install-riscv-toolchain
- prepare-hwachaboomconfig:
requires:
- prepare-build-environment
Expand Down Expand Up @@ -715,18 +630,10 @@ workflows:
requires:
- prepare-megaboomconfig

# Run the SmallBoomAndRocketConfig tests
- smallboomandrocketconfig-run-csmith-tests:
requires:
- prepare-smallboomandrocketconfig
- smallboomandrocketconfig-run-riscv-tests:
requires:
- prepare-smallboomandrocketconfig

# Run the SmallRV32BoomConfig tests
- smallrv32boomconfig-run-riscv-tests:
requires:
- prepare-smallrv32boomconfig
# - smallrv32boomconfig-run-riscv-tests:
# requires:
# - prepare-smallrv32boomconfig

# Run the HwachaBoomConfig tests
- hwachaboomconfig-run-riscv-tests:
Expand Down
2 changes: 1 addition & 1 deletion CHIPYARD.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
86a473dbf6e596d092d57e9c199bca053020f326
854e71a205d1b16aed615f6943771fee0d71dfdc
1 change: 1 addition & 0 deletions src/main/scala/common/config-mixins.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class WithRenumberHarts(rocketFirst: Boolean = false) extends Config((site, here
case MaxHartIdBits => log2Up(up(BoomTilesKey, site).size + up(RocketTilesKey, site).size)
})


/**
* Add a synchronous clock crossing to the tile boundary
*/
Expand Down
2 changes: 1 addition & 1 deletion util/csmith/run-csmith.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ run_once () {
return 0
fi

cmp -s $BASE_NAME.sim.out $BASE_NAME.spike.out
cmp -s <(grep checksum $BASE_NAME.sim.out) $BASE_NAME.spike.out
RV=$?
if [ $RV -ne 0 ]; then
echo "[$1] Simulator produced wrong result."
Expand Down

0 comments on commit fb248eb

Please sign in to comment.