Skip to content

Commit

Permalink
Convert DV into a submodule (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathales authored Nov 3, 2023
1 parent b6ff688 commit b2a59c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@
[submodule "core/cache_subsystem/hpdcache"]
path = core/cache_subsystem/hpdcache
url = https://github.com/openhwgroup/cv-hpdcache.git
[submodule "verif/sim/dv"]
path = verif/sim/dv
url = https://github.com/google/riscv-dv.git
1 change: 0 additions & 1 deletion verif/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ tests/riscv-compliance/
tests/riscv-arch-test/
tests/riscv-tests/
tests/riscv-isa-sim/
sim/dv/
sim/vcs_results
sim/verilator_work
sim/out_*
Expand Down
25 changes: 1 addition & 24 deletions verif/regress/install-riscv-dv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,4 @@ export RTL_PATH=$ROOT_PROJECT/
export TB_PATH=$ROOT_PROJECT/verif/tb/core
export TESTS_PATH=$ROOT_PROJECT/verif/tests

if [ -z "$DV_REPO" ]; then
export DV_REPO="https://github.com/chipsalliance/riscv-dv.git"
export DV_BRANCH="master"
export DV_HASH="f0c570d11236f94f9c5449870223a5ac717cc580"
export DV_PATCH=
fi
echo "Repo: " $DV_REPO
echo "Branch:" $DV_BRANCH
echo "Hash: " $DV_HASH
echo "Patch: " $DV_PATCH

mkdir -p verif/sim
if ! [ -d verif/sim/dv ]; then
git clone $DV_REPO -b $DV_BRANCH verif/sim/dv
cd verif/sim/dv; git checkout $DV_HASH;
if [[ -n "$DV_PATCH" && -f "$DV_PATCH" ]]; then
git apply "$DV_PATCH"
fi
cd -
# install riscv-dv dependencies
cd verif/sim/dv; pip3 install -r requirements.txt; cd -
fi

touch verif/sim/dv/__init__.py
(cd verif/sim/dv; pip3 install -r requirements.txt)
1 change: 1 addition & 0 deletions verif/sim/dv
Submodule dv added at f0c570

0 comments on commit b2a59c9

Please sign in to comment.