0

In EDA-Playground, I know that we use +ntb_random_seed_automatic to randomize the seed number. However, I'm not sure how I'd go about doing that in Modelsim so that I have a random seed number.

I was wondering if Modelsim has the similar automatic seed number option.

Thanks!

1 Answers1

0

If SystemVerilog, use the flag: -sv_seed random along with vsim command for ModelSim and QuestaSim.

dave_59
  • 7,557
  • 1
  • 14
  • 26
Mitu Raj
  • 10,843
  • 6
  • 23
  • 46
  • Thank you very much, Is it possible to make the **Modelsim** automatically add `-sv_seed random` with `vsim/restart` commands? – Taher Anaya Nov 19 '21 at 20:22
  • We have to manually set the flag. Use transcript or do or tcl file for simulation instead of GUI. I don't think there's any option in the tool to make it automatic. @Taher – Mitu Raj Nov 19 '21 at 20:38
  • Note that `restart` command doesn't support vsim flags as per tool manual. – Mitu Raj Nov 19 '21 at 21:13