Forum Discussion

AlexBeasley's avatar
AlexBeasley
Icon for Occasional Contributor rankOccasional Contributor
3 years ago
Solved

Linking fftw3 lib into SystemVerilog Simulation with DPI-C

Hi there, I am trying to run a simulation that makes use of the DPI-C interface so I can compare the FPGA output with the same function being performed in C. For this I need to compile in the...
  • AlexBeasley's avatar
    3 years ago

    Hi there,

    I worked it out; because the .lib files were in a directory that was not being searched automatically I had to add -L<lib_directory> into the -ldflags command. i.e.:

    vsim -c -ldflags "-L./ -llibfftw3-3 -llibfftw3f-3 -llibfftw3l-3" -64 work.fftw3_tb

    This now works.

    Cheers

    Alex