mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	| .. | ||
| Makefile | ||
| README.md | ||
| sim-wally-batch | ||
| wrapper.c | ||
Simulation with Verilator
Different executables will be built for different architecture configurations, e.g., rv64gc, rv32i. A executable can run all the test suites that it can run with +TEST=<testsuite>.
Demand:
- Avoid unnecessary compilation by sharing the same executable for a specific configuration
- executables are stored in obj_dir_non_profilingandobj_dir_profilingcorrespondingly
 
- executables are stored in 
- Wsim should support -s verilatoroption and run simulation with Verilator.
Folder Structure
This folder contains the following files that help the simulation of Wally with Verilator:
- Makefile: simplify the usage with Verialtor
- executables
- obj_dir_non_profiling: non-profiling executables for different configurations
- obj_dir_profiling: profiling executables for different configurations
 
- logs in logsandlogs_profilingcorrespondingly
- [NOT WORKING] logs: contains all the logs
Examples
# non-profiling mode
make WALLYCONF=rv64gc TEST=arch64i run
# profiling mode
make WALLYCONF=rv64gc TEST=arch64i profile
# remove all the temporary files, including executables and logs
make clean