Is there a way to detect if an error or warning occured during a simulation run in ModelSim scripting. I'm just trying something simple: what I'd like to do is have my test bench simulation set up script quit modelsim if there are no errors, or stop and leave modelsim running if an error occurs so I can look at the waveform trace (I'm launching modelsim automatically from Quartus).
Any thoughts on what I should be looking at to see if an error occured?
Thanks,
Chris