mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge pull request #330 from openhwgroup/revert-328-main
Revert "Update for new layout of ImperasDV files"
This commit is contained in:
		
						commit
						90bc0bc6d8
					
				| @ -1,8 +1,7 @@ | ||||
| #--mpdconsole | ||||
| #--gdbconsole | ||||
| #--showoverrides | ||||
| #--showcommands | ||||
| #--showcommands | ||||
| --showoverrides | ||||
| --showcommands | ||||
| 
 | ||||
| # Core settings | ||||
| --override cpu/priv_version=1.12  | ||||
|  | ||||
| @ -3,8 +3,8 @@ | ||||
| #export RISCV=/scratch/moore/RISCV | ||||
| 
 | ||||
| export IMPERAS_TOOLS=$(pwd)/imperas.ic | ||||
| #export OTHERFLAGS="+IDV_TRACE2LOG=1" | ||||
| #export OTHERFLAGS="+IDV_TRACE2LOG=1  +IDV_TRACE2LOG_AFTER=10500000" | ||||
| export OTHERFLAGS="+TRACE2LOG_ENABLE=1" | ||||
| #export OTHERFLAGS="+TRACE2LOG_ENABLE=1  +TRACE2LOG_AFTER=10500000" | ||||
| export OTHERFLAGS="" | ||||
| 
 | ||||
| vsim -c -do "do wally-linux-imperas.do buildroot buildroot-no-trace $::env(RISCV) 0 0 0" | ||||
|  | ||||
| @ -8,7 +8,7 @@ mkdir -p results | ||||
| ALL=$(find ${WALLY}/external/ImperasDV-HMC/tests/riscof/work/riscv-arch-test/rv64i_m -name "ref" -type d) | ||||
| 
 | ||||
| export IMPERAS_TOOLS=$(pwd)/imperas.ic | ||||
| export OTHERFLAGS="+IDV_TRACE2LOG=1 VERBOSE=1" | ||||
| export OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" | ||||
| 
 | ||||
| for t in $ALL; do | ||||
|     export TESTDIR=$(dirname ${t}) | ||||
|  | ||||
| @ -27,6 +27,6 @@ | ||||
| ## and limitations under the License. | ||||
| ################################################################################################ | ||||
| IMPERAS_TOOLS=$(pwd)/imperas.ic \ | ||||
| OTHERFLAGS="+IDV_TRACE2LOG=1 VERBOSE=1" \ | ||||
| OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \ | ||||
| TESTDIR=${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/privilege/src/Lee.S/  \ | ||||
| vsim  -do "do wally-imperas.do rv64gc" | ||||
|  | ||||
| @ -30,13 +30,13 @@ vlog +incdir+../config/$1 \ | ||||
|      +define+USE_IMPERAS_DV \ | ||||
|      +incdir+$env(IMPERAS_HOME)/ImpPublic/include/host \ | ||||
|      +incdir+$env(IMPERAS_HOME)/ImpProprietary/include/host \ | ||||
|      $env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviApiPkg.sv    \ | ||||
|      $env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviTrace.sv      \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvPkg.sv   \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvApiPkg.sv \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2api.sv  \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2log.sv  \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2cov.sv  \ | ||||
|      $env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvvi-api-pkg.sv    \ | ||||
|      $env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvvi-trace.sv      \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/rvvi/rvvi-pkg.sv   \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/rvvi/imperasDV-api-pkg.sv \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/rvvi/trace2api.sv  \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/rvvi/trace2log.sv  \ | ||||
|      $env(IMPERAS_HOME)/ImpProprietary/source/host/rvvi/trace2cov.sv  \ | ||||
|      ../src/wally/cvw.sv \ | ||||
|      ../testbench/testbench_imperas.sv \ | ||||
|      ../testbench/common/*.sv   \ | ||||
|  | ||||
| @ -30,7 +30,7 @@ | ||||
| // `define USE_IMPERAS_DV
 | ||||
| 
 | ||||
| `ifdef USE_IMPERAS_DV | ||||
|     `include "idv/idv.svh" | ||||
|   `include "rvvi/imperasDV.svh" | ||||
| `endif | ||||
| 
 | ||||
| `define DEBUG_TRACE 0 | ||||
| @ -302,7 +302,7 @@ module testbench; | ||||
|       initial begin | ||||
|         int iter; | ||||
|         #1; | ||||
|         IDV_MAX_ERRS = 3; | ||||
|         MAX_ERRS = 3; | ||||
| 
 | ||||
|         // Initialize REF (do this before initializing the DUT)
 | ||||
|         if (!rvviVersionCheck(RVVI_API_VERSION)) begin | ||||
|  | ||||
| @ -31,16 +31,16 @@ | ||||
| // `define USE_IMPERAS_DV
 | ||||
| 
 | ||||
| `ifdef USE_IMPERAS_DV | ||||
|   `include "idv/idv.svh" | ||||
|   `include "rvvi/imperasDV.svh" | ||||
| `endif | ||||
| 
 | ||||
| module testbench; | ||||
|   parameter DEBUG=0; | ||||
| 
 | ||||
| `ifdef USE_IMPERAS_DV | ||||
|   import rvviPkg::*; | ||||
|   import rvviApiPkg::*; | ||||
|   import idvApiPkg::*; | ||||
|   import idvPkg::*; | ||||
| `endif | ||||
| 
 | ||||
|   logic        clk; | ||||
| @ -140,7 +140,7 @@ module testbench; | ||||
| 
 | ||||
|     initial begin  | ||||
|        | ||||
|       IDV_MAX_ERRS = 3; | ||||
|       MAX_ERRS = 3; | ||||
| 
 | ||||
|       // Initialize REF (do this before initializing the DUT)
 | ||||
|       if (!rvviVersionCheck(RVVI_API_VERSION)) begin | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user