Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

how to solve ModelSim exit Code 9 problem

hello,

i am writing a 1024 point FFT code in system verilog using Modelsim Altera starter edition. the compilation of the code was a success but when i try to simulate the test code, all the modules gets properly loaded but then the software closes with exit code 9 warning. it says memory allocation failure even though i have a huge ram. furthermore when searching for the solution i came across one saying to add a clk but it wasn't of any help as i already had one:confused:

this is a really important part of my project:oops:. any kind of help is xxtremly appreciated.. plss reply asap:(

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, do you use "extra" functions (other than those which can be "synthesized") ? Like "write..."

    Do you constraint all signals and variables (I don't know system verilog) ?

    Can you watch available memory while this fatal exit happens ? Open Task Manager (or similar "process explorer") for that.

    Which Modelsim version, Which Windows ?

    No virtual machine or sandbox (by antivirus or firewall) ?

    ...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hey, thanks for the response.. i just checked the memory usage plot using task manager while i try running the test program, and yeah it does show the usage of almost the entire RAM. :| Is there any way i can make this program run? :|

    I am using ModelSim Altera 6.5b starter edition and windows 7...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Moidelsim is limited to 2GB of ram because it is a 32 bit program. You will have to get the 64bit version to allow it access extra RAM (and you need a SE licence for that).

    It sounds like you have a lot of large arrays or similar.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    true about large arrays.. i do have lots of them.. any clue how to get the SE license? is there a trial version of the 64-bit version?

    thanks a lot for the response :)