mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #
 | |
| # Written 1 Mar 2021 by Domenico Ottolia (dottolia@hmc.edu)
 | |
| #
 | |
| # See README.md in this directory for more info
 | |
| #
 | |
| 
 | |
| clear
 | |
| printf "\n\n#####\nStarting tests for $1\n#####\n\n"
 | |
| 
 | |
| if [[ "$2" != "-simonly" ]]
 | |
| then
 | |
| 	cd ~/riscv-wally/wally-pipelined/testgen/privileged
 | |
| 	python3 "testgen-$1.py"
 | |
| 	printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
 | |
| 
 | |
| 	if [[ "$2" == "-c" ]]
 | |
| 	then
 | |
| 		cd ~/riscv-wally/imperas-riscv-tests/riscv-test-suite/rv64p/src
 | |
| 		riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
 | |
| 		cd ~/riscv-wally/imperas-riscv-tests/work/rv64p
 | |
| 		riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
 | |
|  
 | |
| 	elif [[ "$2" != "-nosim" ]]
 | |
| 	then
 | |
| 		cd ~/riscv-wally/imperas-riscv-tests
 | |
| 		make privileged
 | |
| 	fi
 | |
| fi
 | |
| 
 | |
| if [[ "$2" == "-simonly" ]]
 | |
| then
 | |
| 	cd ~/riscv-wally/imperas-riscv-tests/riscv-test-suite/rv64p/src
 | |
| 	riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
 | |
| 	cd ~/riscv-wally/imperas-riscv-tests/work/rv64p
 | |
| 	riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
 | |
| fi
 | |
| 
 | |
| if [[ "$2" == "-sim" || "$2" == "-simonly" ]]
 | |
| then
 | |
| 	printf "\n\n\n#####\nSimulating!\n#####\n\n"
 | |
| 	cd ~/riscv-wally/wally-pipelined/regression
 | |
| 	vsim -do wally-privileged.do -c
 | |
| fi
 | |
| 
 | |
| cd ~/riscv-wally/wally-pipelined
 | |
| printf "\n\n\n#####\nDone!\n#####\n\n" |