In my analog testbench, I have a Verilog-A block which is using an integer parameter. This parameter is set in the testbench via a variable in my Maestro view. Now I want to sweep over this variable, when doing DC simulations, i.e a linear sweep with step size 1. However, I can see that this parameter is not updated in the simulations. Instead it always uses the first value of the DC sweep, which seems to be read in by the @inital_step event.
Is there a way to create an event in Verilog-A, when a parameter changes, so that the Verilog-A reacts to this change?
Due to different constraints, it is unfortunately not an option for me to do independent DC simulations with different variable settings, instead of sweeping the variable inside the DC simulations.