Want to stop simulation when i get a Error/warning

In reply to dave_59:

Hi, Dave.

Thank you for the answer.
Unfortunately, that’s not extending, it’s just copying modelsim.ini localy or renaming modelsim.ini and then editing it in the same way: manually.

My keyword is automation. I’ll give more details about what i want to achive:

  1. There are a lot of settings available only from modelsim.ini (there is no vsim argument that does the same)
    E.g.
    SolveFailSeverity under vsim
    RunLength under vsim
    GenerateLoopIterationMax under vopt
    etc.

  2. I use a GUI to launch compilation (vlib,vlog) and simulation (vsim). The GUI gives me the flexibility of choosing arguments for compilation/simulation.
    E.g. : choose seed, testname, severity of certain messages, choose to fail on ranodomization errors, change the GenerateLoopIterationMax stop on first uvm error, change the RunLength etc.

  3. Sometimes i want to have SolveFailSeverity set, sometimes i don’t want. Sometimes i want to change GenerateLoopIterationMax to another value, sometimes i don’t.

  4. How do i change the value of SolveFailSeverity automaticaly (NOT by manually editing modelsim.ini)? I assume i need a super-smart script that finds exactly the place where SolveFailSeverity is placed in modelsim.ini, uncomment that line and change it’s value. That’s too complicated in my oppinion.

  5. I’ve tried to append to the end of modelsim.ini the SolveFailSeverity=1 but it does not work, because it seems it needs to be defined in the FIRST [vsim] area, somewhere in the middle of modelsim.ini. So, having a second [vsim] area inside modelsim.ini has no effect!

  6. My GUI script automatically deletes the old simulation directory and recreates a brand new one where it copies the modelsim.ini. But as i said i don’t want to open modelsim.ini and modify it manually. I want my GUI script to get my arguments and send them to vlog/vopt/vsim and even start the simulation automatically. So there should be no human intervention in between GUI script launching and vsim running and finishining with succes or error.

Having that said, i’m still positive that there might be a simple way to automatically change modelsim.ini and not manually edit it.

Is there, any?

I appreciate your time spent on reading the above.
Thanks.
Aurelian