Simulation Help with modelsimSE and quartus II and large pro

Guest
I have a large project that I am trying to simulate either directly in
modelsim or through quartus to modelsim. I have never done it before
in quartus but when trying to do it in modelsim directly I get errors
that it can't find Altera_mf or altera_mf_components. I have run
modelsim before with smaller projects one two files. but that was with
the altera version and also it didn't have any sort of rar altsyncram
in it.

I am trying to run a behavioral, but not sure how to set it up. Does
anybody have a link to a guide or can give me somewhat detailed steps
to setup modelsim to run a behavioral simulation like what/where
libraries to add, and ordering of compilation.

I thought If it were possible to run it through quartus like you can
with ise because then it would set up all the libraries and everything
for me. Thanks for your responses in advance.
 
Kamachi923@gmail.com wrote:
I have a large project that I am trying to simulate either directly in
modelsim
That's the way to do it.

or through quartus to modelsim.
no. Quartus is the last step, not the first.

I am trying to run a behavioral, but not sure how to set it up.
As a tutorial, compile the reference design and testbench here:
http://home.comcast.net/~mike_treseler/

and run vsim as described in the testbench comments.
Good luck.

-- Mike Treseler
 
Thank you for your response, but I'm not sure I understand how your
tutorial helps me. I can run basic vhd files in modelsim standalone.
What I am having trouble with is this new project that I did not right
has altsyncram and other memory for the code megafunctions, etc. as
well as it is trying to run on a cylcone device. I don't think the
device matter since I am trying to run behavioral but I get errors
asking about altera_mf files missing or no library that I don't
understand. I found a file with this name but tried adding it or
placing it where I thought it should go but it still doesn't recognize
that its there. So my basic question is how do I run an project created
in quartus that is supposed to run on a altera device, that has
megafunctions and/or altsyncram in functional mode. thanks agian for
trying to help.
 
Kamachi923@gmail.com wrote:
I get errors
asking about altera_mf files missing or no library that I don't
understand.
Maybe you forgot to compile or vmap the libraries.
Altera has the app notes.
http://groups.google.com/groups?q=vmap+altera_mf+lpm+work

-- Mike Treseler
 
Well I got a little farther, on a later compiled I get an error. I have
three files tbl.vhd tbl_inst.vhd, and the toplevel of those files. i
didn't create the bottom two quartus did. the agctbl.vhd was the one
asking for the altera_mf file that I added and now it compiles, the
tbl_inst.vhd has this error:

expecting: ARCHITECTURE CONFIGURATION ENTITY LIBRARY PACKAGE USE

and the top level has this error:

** Error: top.vhd(176): Actual (prefix expression) for formal "clock"
is not a globally static expression.
** Error: top.vhd(921): VHDL Compiler exiting

I believe I get the second set of errors because of the first error on
the tbl.vhd file. and I beleive i get the error on the first file
because there are no libraries specified in the file. but I didn't make
this file quartus did so how would i go about fixing this without
changing the files. thanks.
 
Kamachi923@gmail.com wrote:

but I didn't make
this file quartus did so how would i go about fixing this without
changing the files. thanks.
I would skip the megawizards and
write my own vhdl description.
Quartus synthesis will infer
these things and wire them up for you
with much less trouble. No components, complexity
or Altera copyright on your source code.
Use the Quartus rtl viewer for an
automatically generated schematic
view of your vhdl description.


See
http://www.altera.com/literature/hb/qts/qts_qii51007.pdf
or my previous code examples.

-- Mike Treseler
 

Welcome to EDABoard.com

Sponsor

Back
Top