A simulation script file is provided in the eval directory for functional RTL simulation. The script file <modelsim_macro_name>.do uses pre-compiled models provided with this package. The pre-compiled library of models are located in the directory <download_name>\<device>\<version>\lib\modelsim\work.
NOTE: This procedure is applicable ONLY when using ModelSim SE for simulation. The Lattice Edition of ModelSim that comes with the ispLEVER software does not support the pre-compiled models necessary for functional simulation.
To run functional simulation using ModelSim:
Open ModelSim.
Choose File > Change Directory and go to the <download_name>\<device>\<version>\eval\simulation directory.
Run the ModelSim DO (macro) file:
If you are running version 5.5e or earlier, choose Macro > Execute Macro and select the file: scripts\<modelsim_macro_name>.do.
If you are running version 5.6a or later, choose Tools > Execute Macro and select the file: scripts\<modelsim_macro_name>.do.
The ModelSim macro executes an evaluation test bench designed to show some example transactions or functions associated with the core. Using the precompiled libraries, you can build your own test benches.
View the waveform results in the Wave window.