- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to simulate the altera_onchip_flash for the MAX10 (10M25DA) FPGA by using the Altera-Modelsim. I cannot simulate the module because I get this eror: ERROR: ./e_OnChipFlash/synthesis/submodules/altera_onchip_flash.v(305): Instantiation of 'altera_onchip_flash_block' failed. The design unit was not found. Is there any way to solve this problem ? Thanks in advance DanielLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Daniel,
I'm experiencing the same issue as well. It appears that Qsys delivers a file altera_onchip_flash_block.v in the following directory: /MAX10_FLASH/synthesis/submodules/rtl but it appears to be binary. If it was something that could be compiled, perhaps we could get past this issue. There doesn't appear to be a similar file in the /MAX10_FLASH/simulation sub-directory.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I successed to solve this issue. When you run the Modelsim Simulation Tool from the Quartus software, it automatically creates a compile files *.do with all the modules available into your design. For the altera_on_chip_flash, Quartus points to the following files: vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/synthesis/submodules/altera_onchip_flash_util.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/synthesis/submodules/altera_onchip_flash.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/synthesis/submodules/altera_onchip_flash_avmm_data_controller.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/synthesis/submodules/altera_onchip_flash_avmm_csr_controller.v} In order to have the simulation working, you have to replace the synthesis folder with the simulation in the following way vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/simulation/submodules/altera_onchip_flash_util.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/simulation/submodules/altera_onchip_flash.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/simulation/submodules/altera_onchip_flash_avmm_data_controller.v} vlog -vlog01compat -work e_OnChipFlash +incdir+./qsys/e_OnChipFlash/synthesis/submodules{./qsys/e_OnChipFlash/simulation/submodules/altera_onchip_flash_avmm_csr_controller.v} Best Regards, Daniel- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My problem occurred because I was not using Nativelink to generate the commands for Modelsim. I tried to create a *.do file by hand and probably missed some of the flags that Nativelink creates. Once I started using that, I had no issues and did not need to edit the *.do file created by Quartus to simulate my design.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page