+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 2
    Points: 2,429, Level: 11
    Achievements:
    7 years registered

    Join Date
    May 2007
    Location
    Germany
    Posts
    42
    Helped
    3 / 3
    Points
    2,429
    Level
    11

    Writing ModelSim do files

    I am working on an ASIC design project in ModelSim environment. After designing, it's now verification phase.

    For that I need to write do files.

    There are two problems.

    1) I don't know how to write do files or testcases(I used to verify designs using testbenches)
    2) How to execute them(the do files)

    overall I am totally illiterate on this topic. :(

    So please help me that where to start from? and any good tutorials on that will be highly appreciated.

    Specially a tutorial that takes a simple design and verifies it using do file will be awesome.
    Last edited by tahirsengine; 18th April 2019 at 08:01.

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 4
    Points: 8,202, Level: 21
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    1,221
    Helped
    267 / 267
    Points
    8,202
    Level
    21
    Blog Entries
    1

    Re: Writing ModelSim do files

    Open ModelSim, go to Help menu then open the "PDF Bookcase".
    That will open up a pdf, the ModelSim XY Bookcase. From there open the ModelSim XY Tutorial and READ Chapter 12 - Automating Simulation.
    FPGA enthusiast!


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Member level 2
    Points: 2,429, Level: 11
    Achievements:
    7 years registered

    Join Date
    May 2007
    Location
    Germany
    Posts
    42
    Helped
    3 / 3
    Points
    2,429
    Level
    11

    Re: Writing ModelSim do files

    Quote Originally Posted by dpaul View Post
    Open ModelSim, go to Help menu then open the "PDF Bookcase".
    That will open up a pdf, the ModelSim XY Bookcase. From there open the ModelSim XY Tutorial and READ Chapter 12 - Automating Simulation.
    Actually I am using 2019 ModelSim. I saw that document. But its very very basic. Is there any other resource that I may refer for learning that?
    Another question is : What script that we type on ModelSim command line is called? Is it standard TCL?



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 3
    Points: 6,382, Level: 19
    Achievements:
    Created Blog entry 7 years registered

    Join Date
    Dec 2011
    Location
    Fremont, CA, USA
    Posts
    774
    Helped
    354 / 354
    Points
    6,382
    Level
    19
    Blog Entries
    4

    Re: Writing ModelSim do files

    ModelSim uses standard TCL.

    But, DO NOT write your stimulus that way. Use the same language you wrote your design with. And you are not restricted to synthesizable coding rules.
    Dave Rich
    Senior Verification Consultant
    Mentor Graphics Corporation


    1 members found this post helpful.

--[[ ]]--