Forum Discussion

JOHI's avatar
JOHI
Icon for Contributor rankContributor
7 years ago

How to change a library refence in modelsim?

Hello

I am trying to calculate a natural logarithm in VHDL.

Compilation for my board works properly, simulation does not:

** Error: (vsim-3732) C:/FpgaProjects/Q17/DE10_STD_PSD_CALC_VHDL/FloatLn.vhd(5924): No default binding for component instance 'squarer'.

# The following component port is not on the entity:

# sclr

# Time: 0 ps Iteration: 0 Instance:

The component declaration can be found in altera_mf_components. vhd. This file has multiple versions on my sytem.

The component declaration of version 2 contains a declaration of the component with an SCRL port, the others do not.

First i tried to remove the sclr port from the component interface declaration in altera_mf_components.vhd. I saved the file and recompiled my application => The error remained?

(sclr is not used in the implementation of the component)

Q1: do I need to recompile the library as well ? And if so how ? Compiling the libary itself (right click + recompile) => "Error: Please check the error log for more details". I have not idea where the error log can be found. Modelsim does not provide a file name and the error log is not in the source file directory of altera_mf? Double click on the red messages in the output window give no link to the error file. I also tried library / update on the function I need => Error "data_width has not been given a value".

Q2: I found a link to an identical problem with the altera altsquare mega function. There a solution was presented in the fact that i need to refer to the source codes in directory version 3. So my question is, how to do this?

The way to go seems Library/Edit library mapping. However the path referenced to is "$MODEL_TECH/../altera/vhdl/altera_mf" What excatly do i have to do to make the proper changes? If I change the reference of altera_mf to directory 3, I get "altera_mf (unavailable)" in the library list, so no solution this way.

Help would be appreciated.

Johi.

12 Replies