BartlebyScrivener
Member level 5
I have written a test bench for a SystemVerilog design that has multiple parameters. I know if I wanted to load this in another module I would call it something like this ...
But I don't want to call it in another module, I want to run 20 simulations for 20000ns, each simulation increasing the value of parameter C by one each time.
I am currently using ModelSim to simulate by manually changing the parameter values in the file, re-compiling and loading the simulation by typing 'vsim testBench', then typing 'run 20000ns', then repeating this procedure ad nauseum.
How can I automate this?
Code:
testBench #(parameterA, parameterB, parameterC)
But I don't want to call it in another module, I want to run 20 simulations for 20000ns, each simulation increasing the value of parameter C by one each time.
I am currently using ModelSim to simulate by manually changing the parameter values in the file, re-compiling and loading the simulation by typing 'vsim testBench', then typing 'run 20000ns', then repeating this procedure ad nauseum.
How can I automate this?