Forum Discussion
Altera_Forum
Honored Contributor
10 years agoModelsim error
Hii i am using Modelsim student edition for the simulation of my edge detection code. I am getting the following error.... ** Error: fixed_pkg Unbounded number passed, was a literal used?** ...
Altera_Forum
Honored Contributor
10 years agoThank you so much for your reply.I tried the line suggested by you .It is showing the following error.
no feasible entries for subprogram "to_unsigned".So I changed the mod _d to (9 downto 0).
mod_d <= unsigned(to_ufixed(resize((abs(dx)+abs(dy)),9,0)));
This is giving correct mod and division values with respect to different dx and dy values. Now the error is same.if I am changinf the simulation setting to (Simulation-Run time option-message severity-error),it is showing following error. # ** error: fixed_pkg unbounded number passed, was a literal used? # time: 783 us iteration: 0 process: /camera/uut/angle1 file: c:/users/embedded/desktop/new/fixed_pkg.vhdl # break in subprogram mine at c:/users/embedded/desktop/new/fixed_pkg.vhdl line 2061.
So is it mean thet error is in process angle1.As i read in some sites that this error caused if we use negative indexing,which I have not used through out the code.Please help me with this .I am not getting what to do.I am attaching the new file with some modifications in it.