Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Metavalue detected in ModelSim

Hi,

Anyone please help me, I have run a simulation on a convolution 3x3 project in ModelSim. The input is read from .bin file in which this file is actually a pixel values of an image. The problem is the output give 0 value and ModelSim give a warning:

# ** Warning: NUMERIC_STD.TO_INTEGER: metavalue detected, returning 0# Time: 0 ps Iteration: 0 Instance: /ro_filt_3x3_tb/UUT/window_3x3x/fifob# ** Warning: NUMERIC_STD.TO_INTEGER: metavalue detected, returning 0# Time: 0 ps Iteration: 0 Instance: /ro_filt_3x3_tb/UUT/window_3x3x/fifoa

I try to debug the codes,but unsuccessful:(. Please advises me,thank you. I attach the project file also

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It means the input is a non numerical number, like "UUUU" or "XXXX" or something. This is often the case with inputs that havent been initialised - the proble occurs right at the beginning of simulatuion.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Tricky,

    Actually the image is converted into their pixel values in Matlab and save in .bin file. Then, I use the .bin file as an input to my testbench in ModelSim. I check the input values in ModelSim, it shows unsigned values (35,32,etc.). If the problem occurs at the beginning, how this value can be inserted? How to initialised the inputs? Need advise and thanks for reponse