Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Metavalue detected in ModelSim

Altera_Forum
Honored Contributor II
1,626 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
816 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
816 Views

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
0 Kudos
Reply