Simulation Help with modelsimSE and quartus II and large project

Discussion in 'VHDL' started by Kamachi923@gmail.com, Feb 9, 2006.

  1. 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.
     
    , Feb 9, 2006
    #1
    1. Advertising

  2. 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
     
    Mike Treseler, Feb 9, 2006
    #2
    1. Advertising

  3. Guest

    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.
     
    , Feb 9, 2006
    #3
  4. Mike Treseler, Feb 9, 2006
    #4
  5. Guest

    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.
     
    , Feb 9, 2006
    #5
  6. 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
     
    Mike Treseler, Feb 10, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hongtu
    Replies:
    3
    Views:
    1,065
    Hongtu
    Oct 8, 2004
  2. Guido
    Replies:
    3
    Views:
    3,302
    Mike Treseler
    Jan 30, 2006
  3. Replies:
    1
    Views:
    555
  4. jasperng
    Replies:
    0
    Views:
    1,354
    jasperng
    Nov 27, 2008
  5. feiman

    Quartus II LPM simulation

    feiman, Feb 12, 2009, in forum: VHDL
    Replies:
    0
    Views:
    665
    feiman
    Feb 12, 2009
Loading...

Share This Page