mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Makefile and setup cleanup
This commit is contained in:
parent
dc74bcff5b
commit
fdb839edcb
16
Makefile
16
Makefile
@ -3,20 +3,20 @@ all:
|
|||||||
make regression
|
make regression
|
||||||
|
|
||||||
# install copies over the Makefile.include from riscv-isa-sim
|
# install copies over the Makefile.include from riscv-isa-sim
|
||||||
# And corrects the TARGETDIR path and the RISCV_PREFIXZ
|
# And corrects the TARGETDIR path and the RISCV_PREFIX
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp ${RISCV}/riscv-isa-sim/arch_test_target/spike/Makefile.include addins/riscv-arch-test/
|
# *** 1/15/23 dh: check if any of this is still needed
|
||||||
sed -i '/export TARGETDIR ?=/c\export TARGETDIR ?= ${RISCV}/riscv-isa-sim/arch_test_target' addins/riscv-arch-test/Makefile.include
|
#cp ${RISCV}/riscv-isa-sim/arch_test_target/spike/Makefile.include addins/riscv-arch-test/
|
||||||
echo export RISCV_PREFIX = riscv64-unknown-elf- >> addins/riscv-arch-test/Makefile.include
|
#sed -i '/export TARGETDIR ?=/c\export TARGETDIR ?= ${RISCV}/riscv-isa-sim/arch_test_target' addins/riscv-arch-test/Makefile.include
|
||||||
#cd tests/linux-testgen/linux-testvectors; source ./tvLinker.sh # needs to be run in local directory
|
#echo export RISCV_PREFIX = riscv64-unknown-elf- >> addins/riscv-arch-test/Makefile.include
|
||||||
#rm tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
##cd tests/linux-testgen/linux-testvectors; source ./tvLinker.sh # needs to be run in local directory
|
||||||
#ln -s ${RISCV}/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
##rm tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
||||||
|
##ln -s ${RISCV}/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe tests/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64/riscvOVPsimPlus.exe
|
||||||
|
|
||||||
regression:
|
regression:
|
||||||
make -C pipelined/regression
|
make -C pipelined/regression
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make clean -C pipelined/regression
|
make clean -C pipelined/regression
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,8 +11,7 @@ all: riscoftests memfiles
|
|||||||
#make -C ../../addins/imperas-riscv-tests XLEN=64
|
#make -C ../../addins/imperas-riscv-tests XLEN=64
|
||||||
#cd ../../addins/imperas-riscv-tests; elf2hex.sh
|
#cd ../../addins/imperas-riscv-tests; elf2hex.sh
|
||||||
#cd ../../addins/imperas-riscv-tests; extractFunctionRadix.sh work/*/*/*.elf.objdump
|
#cd ../../addins/imperas-riscv-tests; extractFunctionRadix.sh work/*/*/*.elf.objdump
|
||||||
|
# Link Linux test vectors
|
||||||
# Link Linux test vectors (fix this later***)
|
|
||||||
#cd ../../tests/linux-testgen/linux-testvectors/;./tvLinker.sh
|
#cd ../../tests/linux-testgen/linux-testvectors/;./tvLinker.sh
|
||||||
|
|
||||||
allclean: clean all
|
allclean: clean all
|
||||||
@ -25,9 +24,5 @@ clean:
|
|||||||
riscoftests:
|
riscoftests:
|
||||||
# Builds riscv-arch-test 64 and 32-bit versions and builds wally-riscv-arch-test 64 and 32-bit versions
|
# Builds riscv-arch-test 64 and 32-bit versions and builds wally-riscv-arch-test 64 and 32-bit versions
|
||||||
make -C ../../tests/riscof/
|
make -C ../../tests/riscof/
|
||||||
# make -C ../../tests/riscof/ XLEN=32
|
|
||||||
# make -C ../../tests/riscof/ XLEN=32 build_rv32e
|
|
||||||
# make -C ../../tests/riscof/ XLEN=64
|
|
||||||
|
|
||||||
memfiles:
|
memfiles:
|
||||||
make -f makefile-memfile wally-sim-files --jobs
|
make -f makefile-memfile wally-sim-files --jobs
|
||||||
|
13
setup.sh
13
setup.sh
@ -11,6 +11,14 @@ WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
|
|||||||
export WALLY=$(cd "$WALLY" && pwd)
|
export WALLY=$(cd "$WALLY" && pwd)
|
||||||
echo \$WALLY set to ${WALLY}
|
echo \$WALLY set to ${WALLY}
|
||||||
|
|
||||||
|
# License servers and commercial CAD tool paths
|
||||||
|
# Must edit these based on your local environment. Ask your sysadmin.
|
||||||
|
export MGLS_LICENSE_FILE=1717@solidworks.eng.hmc.edu # Change this to your Siemens license server
|
||||||
|
export SNPSLMD_LICENSE_FILE=27020@134.173.38.184 # Change this to your Synopsys license server
|
||||||
|
export PATH=/cad/mentor/questa_sim-2021.2_1/questasim/bin:$PATH # Change this for your path to Questa
|
||||||
|
export PATH=/cad/synopsys/SYN/bin:$PATH # Change this for your path to Design Compiler
|
||||||
|
|
||||||
|
|
||||||
# Path to RISC-V Tools
|
# Path to RISC-V Tools
|
||||||
export RISCV=/opt/riscv # change this if you installed the tools in a different location
|
export RISCV=/opt/riscv # change this if you installed the tools in a different location
|
||||||
|
|
||||||
@ -27,11 +35,6 @@ export PATH=$WALLY/bin:$PATH
|
|||||||
export PATH=/usr/local/bin/verilator:$PATH # Change this for your path to Verilator
|
export PATH=/usr/local/bin/verilator:$PATH # Change this for your path to Verilator
|
||||||
# ModelSim/Questa (vsim)
|
# ModelSim/Questa (vsim)
|
||||||
# Note: 2022.1 complains on cache/sram1p1r1w about StoredData cannot be driven by multiple always_ff blocks. Ues 2021.2 for now
|
# Note: 2022.1 complains on cache/sram1p1r1w about StoredData cannot be driven by multiple always_ff blocks. Ues 2021.2 for now
|
||||||
export PATH=/cad/mentor/questa_sim-2022.1_1/questasim/bin:$PATH # Change this for your path to Modelsim
|
|
||||||
export PATH=/cad/mentor/questa_sim-2021.2_1/questasim/bin:$PATH # Change this for your path to Modelsim, or delete
|
|
||||||
export MGLS_LICENSE_FILE=1717@solidworks.eng.hmc.edu # Change this to your Siemens license server
|
|
||||||
export PATH=/cad/synopsys/SYN/bin:$PATH # Change this for your path to Design Compiler
|
|
||||||
export SNPSLMD_LICENSE_FILE=27020@134.173.38.184 # Change this to your license manager file
|
|
||||||
|
|
||||||
# Imperas; put this in if you are using it
|
# Imperas; put this in if you are using it
|
||||||
#export PATH=$RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64:$PATH
|
#export PATH=$RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64:$PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user