mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability)
This commit is contained in:
parent
01bce0c0b8
commit
e6e070f4e4
6
Makefile
6
Makefile
@ -51,9 +51,9 @@ funcovreg:
|
|||||||
|
|
||||||
# test_name=riscv_arithmetic_basic_test
|
# test_name=riscv_arithmetic_basic_test
|
||||||
riscvdv:
|
riscvdv:
|
||||||
python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gen,gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gen,gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
||||||
# python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
# ${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
||||||
# python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps iss_sim >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
# ${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps iss_sim >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
||||||
# run-elf.bash --seed ${SIM}/questa/seed0.txt --verbose --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
# run-elf.bash --seed ${SIM}/questa/seed0.txt --verbose --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
||||||
#run-elf-cov.bash --seed ${SIM}/questa/seed0.txt --verbose --coverdb ${SIM}/questa/riscv.ucdb --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
#run-elf-cov.bash --seed ${SIM}/questa/seed0.txt --verbose --coverdb ${SIM}/questa/riscv.ucdb --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
|
||||||
#cp ${SIM}/questa/riscv.ucdb ${SIM}/questa/functcov_ucdbs/${test_name}.ucdb
|
#cp ${SIM}/questa/riscv.ucdb ${SIM}/questa/functcov_ucdbs/${test_name}.ucdb
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python3
|
||||||
##################################################
|
##################################################
|
||||||
## coremark_sweep.py
|
## coremark_sweep.py
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# embench_arch_sweep.py
|
# embench_arch_sweep.py
|
||||||
# David_Harris@hmc.edu 16 November 2023
|
# David_Harris@hmc.edu 16 November 2023
|
||||||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# Daniel Torres 2022
|
# Daniel Torres 2022
|
||||||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
Python Regression Build Automation Script
|
Python Regression Build Automation Script
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
## Written: Rose Thompson ross1728@gmail.com
|
## Written: Rose Thompson ross1728@gmail.com
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
#
|
#
|
||||||
# regression-wally
|
# regression-wally
|
||||||
|
@ -17,5 +17,5 @@ source ./setup.sh
|
|||||||
cd $PYTHON_SCRIPT
|
cd $PYTHON_SCRIPT
|
||||||
pwd
|
pwd
|
||||||
echo "Running python file"
|
echo "Running python file"
|
||||||
python nightly_build.py
|
$RISCV/riscv-python/bin/python nightly_build.py
|
||||||
echo "Finished"
|
echo "Finished"
|
||||||
|
2
bin/wsim
2
bin/wsim
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# wsim
|
# wsim
|
||||||
# David_Harris@hmc.edu 5 April 2024
|
# David_Harris@hmc.edu 5 April 2024
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
###########################################
|
###########################################
|
||||||
## fpgaTop.sv
|
## fpgaTop.sv
|
||||||
##
|
##
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
###########################################
|
###########################################
|
||||||
## probe.sh
|
## probe.sh
|
||||||
##
|
##
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
###########################################
|
###########################################
|
||||||
## proberange.sh
|
## proberange.sh
|
||||||
##
|
##
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
###########################################
|
###########################################
|
||||||
## probe.sh
|
## probe.sh
|
||||||
##
|
##
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# disassembleBootTrace.py
|
# disassembleBootTrace.py
|
||||||
# David_Harris@hmc.edu 22 November 2023
|
# David_Harris@hmc.edu 22 November 2023
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, fileinput, re
|
import sys, fileinput, re
|
||||||
|
|
||||||
# Ross Thompson
|
# Ross Thompson
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import fileinput, sys
|
import fileinput, sys
|
||||||
|
|
||||||
parseState = "idle"
|
parseState = "idle"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
################
|
################
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
################
|
################
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
#
|
#
|
||||||
# regression-wally
|
# regression-wally
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, os, subprocess
|
import sys, os, subprocess
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import os,sys,subprocess
|
import os,sys,subprocess
|
||||||
from datetime import datetime, timezone, timedelta
|
from datetime import datetime, timezone, timedelta
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADD-SUB-SLT-SLTU-XOR-OR-AND.py
|
# testgen-ADD-SUB-SLT-SLTU-XOR-OR-AND.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADD-SUB.py
|
# testgen-ADD-SUB.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADDIW-SLLIW-SRLIW-SRAIW.py
|
# testgen-ADDIW-SLLIW-SRLIW-SRAIW.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADDW-SUBW-SLLW-SRLW-SRAW.py
|
# testgen-ADDW-SUBW-SLLW-SRLW-SRAW.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-branch.py
|
# testgen-branch.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADD-SUB.py
|
# testgen-ADD-SUB.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-JAL.py
|
# testgen-JAL.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-LOAD.py
|
# testgen-LOAD.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python3
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
# testgen-PIPELINE.py
|
# testgen-PIPELINE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-SLL-SRL-SRA.py
|
# testgen-SLL-SRL-SRA.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADD-SUB.py
|
# testgen-ADD-SUB.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-ADD-SUB.py
|
# testgen-ADD-SUB.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-STORE.py
|
# testgen-STORE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-VIRTUALMEMORY.py
|
# testgen-VIRTUALMEMORY.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022
|
# Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import re
|
import re
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Python regression test for DC
|
# Python regression test for DC
|
||||||
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22
|
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Python regression test for DC
|
# Python regression test for DC
|
||||||
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22
|
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
wrapperGen.py
|
wrapperGen.py
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# Madeleine Masser-Frye mmasserfrye@hmc.edu 1/2023
|
# Madeleine Masser-Frye mmasserfrye@hmc.edu 1/2023
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys, fileinput
|
import sys, fileinput
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# author: Alessandro Maiuolo, Kevin Kim
|
# author: Alessandro Maiuolo, Kevin Kim
|
||||||
# contact: amaiuolo@g.hmc.edu, kekim@hmc.edu
|
# contact: amaiuolo@g.hmc.edu, kekim@hmc.edu
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# extract sqrt and float div testfloat vectors
|
# extract sqrt and float div testfloat vectors
|
||||||
|
|
||||||
# author: Alessandro Maiuolo
|
# author: Alessandro Maiuolo
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from fp_dataset import *
|
from fp_dataset import *
|
||||||
#coverpoints=ibm_b1(128, 128, 'fadd.q', 2) #ibm_b1(flen, iflen, opcode, ops)
|
#coverpoints=ibm_b1(128, 128, 'fadd.q', 2) #ibm_b1(flen, iflen, opcode, ops)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# PIPELINE.py
|
# PIPELINE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# covergen.py
|
# covergen.py
|
||||||
#
|
#
|
||||||
|
@ -12,7 +12,7 @@ printf "\n\n#####\nStarting tests for $1\n#####\n\n"
|
|||||||
if [[ "$2" != "-simonly" ]]
|
if [[ "$2" != "-simonly" ]]
|
||||||
then
|
then
|
||||||
cd $WALLY/testgen/privileged
|
cd $WALLY/testgen/privileged
|
||||||
python3 "testgen-$1.py"
|
$RISCV/riscv-python/bin/python3 "testgen-$1.py"
|
||||||
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
|
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
|
||||||
|
|
||||||
if [[ "$2" == "-c" ]]
|
if [[ "$2" == "-c" ]]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CAUSE.py (new)
|
# testgen-CAUSE.py (new)
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CSR-PERMISSIONS.py
|
# testgen-CSR-PERMISSIONS.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CAUSE.py
|
# testgen-CAUSE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CAUSE.py
|
# testgen-CAUSE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-IE.py
|
# testgen-IE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-IE.py
|
# testgen-IE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CAUSE.py
|
# testgen-CAUSE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-CAUSE.py
|
# testgen-CAUSE.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-TVAL.py
|
# testgen-TVAL.py
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen-TVEC.py (new)
|
# testgen-TVEC.py (new)
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
##################################
|
##################################
|
||||||
# testgen.py
|
# testgen.py
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user