Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
266 Views

Is it possible to simulate with the ModelSim Altera Edition (free) the On-Chip Flash Intel FPGA IP? I am able to simulate with questa-sim at my work place, but I get an error (below) when trying to simulate at home with the free version.

I'm using Quartus Prime Lite Edition 18.1 with the On-Chip Flash Intel FPGA IP. When I use the Tools/Run Simulation Tool/RTL Simulation I get an error: "# ** Error: (vsim-3033) C:/DigitalAir/CCIOEXPDEVx/FPGA/Quartus/flash_ip/synthesis/submodules/altera_onchip_flash.v(309): Instantiation of 'altera_onchip_flash_block' failed. The design unit was not found."

Even though the design compiles successfully. I noticed that altera_onchip_flash_block.v seems to be encrypted rtl?

0 Kudos
12 Replies
Highlighted
45 Views

Hi Kermit,

 

Yes, files will be encrypted.

 

Regarding error

 

You must compile Altera simulation model files before simulating an Altera design.

You can use any of the following methods to compile Altera simulation models.

 

To compile all required libraries at once with EDA Simulation Library Compiler, follow these steps:

 

  1. On the Tools menu, click Launch EDA simulation library compiler.
  2. Under EDA simulation tool, in the Tool name box, select a simulation tool. The Executable location box displays the location of the simulation tool you specified. You must set this location before you can run the EDA Simulation Library Compiler.
  3. Under Library families, select one or more family names and move them to the Selected families list.
  4. Under Library language, select VHDLVerilog, or both.
  5. In the Output directory field, specify a location in which to store the compiled libraries.
  6. Click Start Compilation.

 

Let me know if this has helped resolve the issue you are facing or if you need any further assistance.

 

Regards

Anand

0 Kudos
Highlighted
Novice
45 Views

Anand,

 Thanks for getting back to me. I am using Quartus Prime Lite edition 18.1 with the Modelsim-Altera (free) simulator and I am not allowed to Launch EDA simulation Library compiler. I get the following message:

 

I have created a test fpga that shows the problem I am having. To keep the size smaller, you will have to

1. Unzip the file testfpga.zip to your c drive .

2. Use quartus prime lite 18.1 to open the project testfpga.qpf

3. Compile the project

4. Simulate with Tools/Run Simulation Tool/RTL Simulation and you should see the problem.

5. I am able to compile the individual IP OK, but vsim has the problem not being able to access fiftyfivenm_ver, etc

0 Kudos
Highlighted
45 Views

Hi,

 

I have followed steps. can't see any error.

Attached transcript & image.

If you still facing problem manually launch modelsim and load msim_setup.tcl.

 

Regards

Anand

flash.JPG

0 Kudos
Highlighted
Novice
45 Views

Yes, but are you using Modelsim-Altera (free) simulator? Kermit
0 Kudos
Highlighted
45 Views

Yes, You can check that in transcript.

modelsim_ase(Altera Starter Edition).

0 Kudos
Highlighted
Novice
45 Views

Okay, so I ran the msim_setup.tcl and I get the same failure. transcript is attached. Kermit.
0 Kudos
Highlighted
45 Views

Okay,

 

Please read msim_setup.tcl file. Your design testfpga is having two IP we have to use both msim_setup.tcl and create a simple script like below and use.

 

in msim_setup.tcl add under Elaborate session add => -L dual_boot_0 -L onchip_flash_0

Commands which i ran in modelsim

source C:/Users/anandr1x/Downloads/testfpga/dual_cfg_ip/simulation/mentor/msim_setup.tcl

source C:/Users/anandr1x/Downloads/testfpga/flash_ip/simulation/mentor/msim_setup.tcl

vlog C:/Users/anandr1x/Downloads/testfpga/testbench.v

vlog C:/Users/anandr1x/Downloads/testfpga/testfpga.v

set TOP_LEVEL_NAME testbench

com

elab

 

Regards

Anand

0 Kudos
Highlighted
Novice
45 Views

Hey Anand,   OK, I fixed the first problem.  For some reason, my Modelsim doesn't have fiftyfivenm_ver compiled in.  So I added the following to my simulation script. vlib testfpga_iputf_libs/fiftyfivenm_ver vmap fiftyfivenm_ver ./testfpga_iputf_libs/fiftyfivenm_ver vlog -vlog01compat -work fiftyfivenm_ver {c:/intelFPGA_lite/18.1/quartus/eda/sim_lib/fiftyfivenm_atoms.v} vlog -vlog01compat -work fiftyfivenm_ver {c:/intelFPGA_lite/18.1/quartus/eda/sim_lib/mentor/fiftyfivenm_atoms_ncrypt.v} That fixed that problem.  Now I'm back to the other problem: # ** Error: (vsim-3033) C:/testfpga/flash_ip/synthesis/submodules/altera_onchip_flash.v(309): Instantiation of 'altera_onchip_flash_block' failed. The design unit was not found." My transcript is attached.
0 Kudos
Highlighted
Novice
45 Views

Please send me your msim_setup.tcl file.  My testrun.do already has the -L dual_boot_0 and -L onchip_flash_0 in the vsim command.  But they are not found I don't understand why this is so complicated.  Why isn't my modelsim-Altera edition working like yours?  Why did I have to explicitly instantiate the fiftyfivenm_ver lib? This is very frustrating. Kermit
0 Kudos
Highlighted
45 Views

Hi,

 

steps & Compiling library is important.

PFA.

Now you extract the file and use the commands from above post copy and past and hit enter.Do change source to appropriate directory.

 

Regards

Anand

 

0 Kudos
Highlighted
Novice
45 Views

Thanks for your patience Anand. I unzipped the file and ran the commands exactly as you have indicated with the same result: "# ** Error: (vsim-3033) c:/testfpga/flash_ip/synthesis/submodules/altera_onchip_flash.v(309): Instantiation of 'altera_onchip_flash_block' failed. The design unit was not found.#   Time: 0 ps Iteration: 0 Instance: /testbench/testfpga/flash_ip/onchip_flash_0 File: c:/testfpga/flash_ip/synthesis/submodules/altera_onchip_flash.v"

It also couldn't find dual_cfg_ip. The transcript is attached.

0 Kudos
Highlighted
45 Views

Kindly redo the project and check.

0 Kudos