Quartus ModelSim Memory allocation failure
Windows 10 with 25GB available RAM and plenty of swap space.
My design is SIGNIFICANTLY smaller than the 10K executable code line limit for the Intel-FPGA ModelSim Starter edition unless some ALTCLKCTRL and ALTPLL IP modules involve 1000s of "executable lines".
Using Verilog.
My individual modules and even small subsets of modules work fine but when I go over some magic number the ModelSim simulator crashes after many 100s (718 to be exact) of Memory allocation failure messages.
The messages are of the form:
# ** Fatal: (vsim-4) ****** Memory allocation failure. *****
# Attempting to allocate XXXXXX bytes
# Please check your system for available memory and swap space.
where "XXXXXX" are values between 131072 and 1040. The number of bytes requested in the allocations requests don't really follow any easilt discernible pattern ... some are powers of 2 and others are not also.
In the end I get a different message:
# ** Fatal: (SIGSEGV) Bad handle or reference.
# Time: 0 ps Iteration: 0 Process:
/<testbench_entity>/<DUT_Instance>/#ALWAYS#563 File:
<DUT_file_Including path>
There is no message saying I have exceeded the executable line limit.
There is no popup indicating an error.
I found the error messages in the transcript file.
Does anyone have any idea what I am doing wrong ... or how I can work around this issue?
Thanks.