Jump to content


problem about simulation


  • You cannot reply to this topic
1 reply to this topic

#1 ureyhu

    Member

  • Members
  • PipPip
  • 8 posts

Posted 09 May 2010 - 12:06 AM

Dear Administrator:
I don't have the lisence to generate the testbench by CoValidator. So I ' m have to do it by hand .
In the example Fir51 , when I finished synthsis in QuartusII9.1 (OK), I tried to simulate the file created by ImpulseC.
Some errors occurred when compile in Modelsim. As it showed below.
"
# -- Compiling package external_components
# ** Error: (vcom-25) Invalid ModelSim library "C:\Modeltech_6.2b\win32/../impulse". No _info file found.
# No such file or directory. (errno = ENOENT)
# ** Error: E:/altera/91/quartus/sqrt_c2h/Fir51_comp.vhd(24): Library impulse not found.
# ** Error: E:/altera/91/quartus/sqrt_c2h/Fir51_comp.vhd(25): (vcom-1136) Unknown identifier "impulse".
# ** Error: E:/altera/91/quartus/sqrt_c2h/Fir51_comp.vhd(27): VHDL Compiler exiting
# ** Error: C:/Modeltech_6.2b/win32/vcom failed.
"
It seems the that the impulse lib is missing while simulate in modelsim. But I had already added all the essential parts into the project ,such as "cregister.vhd stream.vhd ... " .
I'm using CoDeveloper 3.50.b.3.

--------------------------------------------------------------------------------------------------------------------------------


When I decide to simulate the file without QuartusII , I set up a project including all the file. I have not built a impulse library . I change the sentences "library impulse ; using impulse.all " to "library work ; using work.all " . But it doesn't work either. The errors I met is listed below.
"
** Error: C:/Modeltech_6.2b/examples/fir51_c2h/Fir51_comp.vhd(2587): (vcom-1136) Unknown identifier "eq".
** Error: C:/Modeltech_6.2b/examples/fir51_c2h/Fir51_comp.vhd(2587): Type error resolving infix expression "&" as type ieee.std_logic_1164.std_ulogic_vector.
** Error: C:/Modeltech_6.2b/examples/fir51_c2h/Fir51_comp.vhd(2597): (vcom-1136) Unknown identifier "mul2_s".
** Error: C:/Modeltech_6.2b/examples/fir51_c2h/Fir51_comp.vhd(2599): (vcom-1136) Unknown identifier "add".
** Error: C:/Modeltech_6.2b/examples/fir51_c2h/Fir51_comp.vhd(2749): (vcom-1136) Unknown identifier "mul2_s".
"
Is there a smart way to simulate ? Any suggestion is welcome.
Thank you very very much for your patience.


#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 09 May 2010 - 06:08 PM

Hi,
To do thing s manually, you will have to create the library 'impulse' in ModelSim and then add all the files to the library: Usually the HDL generation (not export) directory is used for simulation and in it the files in the 'hw' top directory go to library 'work' and everything under 'hw/lib' goes into the 'impulse' library. You can tell when you have done this correctly by verifying that the files and modules show up correctly when expanding 'work' and 'impulse' in the "libraries" pane in ModelSim.

Best Regards,
Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users