I'm running ams simulations under ncsim and every time I reinvoke the simulator the ahdlcmi module libraries are recompiled.
Is there a way to prevent this to happen? In other words, can we use pre-compiled ahdlcmi module libraries, instead?
Try to the the environment varialbe
CDS_AHDLCMI_ENABLE to NO
Although when using APS, you can't disable the compilation (it would be rather odd to request fast simulation algorithms only to purposefully slow down part of the simulation!).
I have seen an issue at one customer where /usr/bin/mpstat was not installed - this allows it to recognize there are multiple CPUs and do the compilation in parallel if there are multiple things needing compiling - and if missing it can only do them sequentially.
Another possibility to solve your problem is to use CDS_AHDLCMI_SIMDB_DIR to point to a common directory. See "spectre -h veriloga" for info on this variable.
There is a CCR to address the issue with AMS - so you might want to contact customer support.