Convert DV into a submodule (#1591)

This commit is contained in:
Côme 2023-11-03 11:20:08 +01:00 committed by GitHub
parent b6ff6887c7
commit b2a59c9617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 25 deletions

3
.gitmodules vendored
View file

@ -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
verif/.gitignore vendored
View file

@ -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_*

View file

@ -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
verif/sim/dv Submodule

@ -0,0 +1 @@
Subproject commit f0c570d11236f94f9c5449870223a5ac717cc580