Search code examples
specman

How to initialize list of uint in Specman?


I need to initialize list of uint. I read that one can initialize each item in list, but I need efficient way, i.e. as in systemverilog where you can initialize with {1,2,3...}


Solution

  • very similar syntax, just with ; instead of ,

    var l : list of uint = {1;2;3;4};