External Memory Interfaces Agilex™ 7 M-Series FPGA IP User Guide
- 4.1.2. s0_axi4_clock_out for Agilex 7 M-Series External Memory Interfaces (EMIF) IP - DDR4 Component
- 4.3.2. s0_axi4_clock_out for Agilex 7 M-Series External Memory Interfaces (EMIF) IP - DDR5 Component
5.1.5. Simulating with sim_lib2
All generated Agilex™ 7 M-Series EMIF IP design examples automatically select and use this library.
Designs created from scratch do not use the sim_lib2 library. If you want to simulate, after generating the simulator setup scripts, perform one of the following steps, appropriate for your simulator:
ModelSim and QuestaSim
Locate the generated ../mentor/ directory in your project folder structure, then open the run_msim_setup.tcl file in an editor and add the following lines before the line that sources the msim_setup.tcl script:
set QUARTUS_INSTALL_DIR “<Quartus installation directory>” set QUARTUS_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/eda/sim_lib2/" set DEVICES_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/../devices/sim_lib2/"
The resulting file should look like the following example:
if ![info exists QSYS_SIMDIR] { set QSYS_SIMDIR "./../" } set QUARTUS_INSTALL_DIR “<Quartus installation directory>” set QUARTUS_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/eda/sim_lib2/" set DEVICES_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/../devices/sim_lib2/" source $QSYS_SIMDIR/mentor/msim_setup.tcl ld run -all quit
VCS and VCSMX
Pass the variables DEVICES_SIM_LIB_DIR and QUARTUS_SIM_LIB_DIR as command-line arguments when sourcing the generated simulation script .../synopsys/vcs/vcs_setup.sh or .../synopsys/vcsmx/vcsmx_setup.sh:
sh vcs_setup.sh <current arguments> DEVICES_SIM_LIB_DIR=<QPDS Installation>/devices/sim_lib2 QUARTUS_SIM_LIB_DIR=<QPDS Installation>/quartus/eda/sim_lib2
Xcelium
Pass the variables DEVICES_SIM_LIB_DIR and QUARTUS_SIM_LIB_DIR as command-line arguments when sourcing Platform Designer generated simulation script .../xcelium/xcelium_setup.sh:
sh xcelium_setup.sh <current arguments> DEVICES_SIM_LIB_DIR=<QPDS Installation>/devices/sim_lib2 QUARTUS_SIM_LIB_DIR=<QPDS Installation>/quartus/eda/sim_lib2