Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

import "DPI-C"

Altera_Forum
Honored Contributor II
2,105 Views

I have created a qsys design and generated the testbench system for the design. I am trying to simulate it using NCSIM (Incisive 15.20.018). When generating the HDL code(also present in the testbench code) for the design(using Quartus 16.1.2.203), I have a file mgc_common_axi.sv file which has the line import "DPI-C" . This file is a C/C++ file as per my research on net. But I wasn't able to locate the file. 

Now since I have generated my design using Quartus prime is this file generated by Quartus in any specific directory or should I generate it separately? 

If I have to generate this file, how do I define this for a particular design?  

When trying to simulate the design, I am getting the below error in ncsim and that is how I found out my issue. 

 

ncsim:*f,nolwsv: searching for import subroutine "axi_set_master_end_abstraction_level" in default library libdpi. unable to load the default library libdpi. osdlerror: ./libdpi.so:cannot open shared object file: no such file or directory or file is not valid elfclass32 library... 

 

 

 

 

 

 

 

 

 

0 Kudos
0 Replies
Reply