Make -f $RV_ROOT/tools/Makefile program.hex TEST= CONF_PARAMS - configuration parameter for nfig, ex: CONF_PARAMS=-unset=dccm_enable to build with no DCCM.- run and build executable model of custom CPU configuration, remember to provide snapshot argument for runs on custom configurations.TEST_DIR - alternative to test source directory testbench/asm.TEST - allows to run a C (.c) or assembly (.s) test, hello_world is run by default.- predefined CPU configurations default (by default), default_ahb, default_pd, high_perf.debug=1 - allows VCD generation for verilator, VCS and Riviera-PRO and SHM waves for irun option.- can be verilator (by default) irun - Cadence xrun, vcs - Synopsys VCS, vlog - Mentor Questa, riviera - Aldec Riviera-PRO if not provided, make cleans the work directory, builds a Verilator executable and runs a test.To run a simple Hello World program in Verilator, use: This is now the default option for target default_pd. Use -fpga_optimize=0 option in nfig to build a model that enables clock gating logic into the flop model so that the ASIC flows get a better power footprint. This is now the default option for targets other than default_pd.īuilding a Power optimized model (ASIC flows): Use -fpga_optimize=1 option in nfig to build a model that removes clock gating logic from flop model so that the FPGA builds can run at higher speeds. Without an explicit name, it will update/override the default snapshot)įor example if mybuild is the name for the snapshot: $RV_ROOT/configs/nfig -snapshot=mybuild (Name your snapshot to distinguish it from the default. Set the RV_ROOT environment variable to the root of the VeeR directory structure.Įxample for bash shell: export RV_ROOT=/path/to/veerĮxample for csh or its derivatives: setenv RV_ROOT /path/to/veer └── whisper.json # JSON file for veer-iss ├── pic_map_auto.h # PIC memory map based on configure size ├── perl_ # Perl %configs hash for scripting ├── pd_defines.vh # `defines for physical design ├── defines.h #defines for C/assembly headers ├── common_defines.vh # `defines for testbench or design This script derives the following consistent set of include files: There are four predefined target configurations: default, default_ahb, default_pd, high_perf that can be selected via To unset a parameter, add -unset=PARAM option to nfig.Īdd -snapshot=dccm64, for example, if you wish to name your build snapshot dccm64 and refer to it during the build. This will update the default snapshot in $PWD/snapshots/default/ with parameters for a 64K DCCM. % $RV_ROOT/configs/nfig -h for detailed help optionsįor example to build with a DCCM of size 64 Kb: VeeR can be configured by running the $RV_ROOT/configs/nfig script: Please see release notes for changes and bug fixes in this version of VeeR.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |