1.6. Simulating your Custom AFU
Standard Simulation Scripts
Custom Simulation Scripts
Intel recommends you to follow $OPAE_LOC/samples/dma_afu if you want to use custom simulation scripts.
Intel recommends to run the simulation using either setup_sim.sh, run_app.sh or regress.sh under $DCP_LOC/hw/common/scripts. If your AFU uses a custom simulation script, the standard simulation script will automatically find and invoke it. The custom simulation scripts must reside at <path to afu>/hw/sim, if you want the standard simulation script to automatically find and invoke them.
The sim_common.sh under $DCP_LOC/hw/common/scripts provides a handy collection of bash functions for ASE setup. For more information about ASE scripts, refer to Intel® Accelerator Functional Unit (AFU) Simulation Environment (ASE) User Guide. If the AFU consists of one or more Platform Designer systems, use the simulation scripts available under dma_afu as a reference.
+define+INCLUDE_DDR4
+define+DDR_ADDR_WIDTH=26
You can add these text macros in the ase_sources.mk file.
Example (VCS):
echo "SNPS_VLOGAN_OPT+= +define+INCLUDE_DDR4 +define+DDR_ADDR_WIDTH=26" >> ase_sources.mk
Example(Modelsim/Questa)
echo "MENT_VLOG_OPT += +define+INCLUDE_DDR4 +define+DDR_ADDR_WIDTH=26" >> ase_sources.mk
- 3485
- 3584
echo "MENT_VLOG_OPT += -suppress 3485,3584" >> ase_sources.mk
echo "MENT_VSIM_OPT += -suppress 3485,3584" >> ase_sources.mk
- To configure the ASE memory model to 16G configuration in VCS:
echo "SNPS_VLOGAN_OPT +define+DDR_ADDR_WIDTH=27" >> ase_sources.mk
- To configure the ASE memory model to 16G configuration in Modelsim/Questa:
echo "MENT_VLOG_OPT += +define+DDR_ADDR_WIDTH=27" >> ase_sources.mk