在 systemverilog 中如何为关联数组字段等复杂字段提供命令行覆盖

In systemverilog how to provide commandline overrides for complex fields like associative array fields

假设我已经通过宏 `ovm_field_aa_string_string 宏向工厂添加了一个关联数组字符串、字符串字段。有没有办法像我们使用简单的 int 字段一样从命令行配置它,如下所示:

./simv ... +ovm_set_config_int=scope,name,value

有没有类似的

./simv ... +ovm_set_config_aa_string_string=scope,name,key=val,key2=val2

不可以,您只能从命令行设置整数和字符串。我强烈反对使用任何 `uvm_field 宏,因为它们无法处理复杂的时间,它们强加的模拟性能很差。

这似乎已经有人回答了 这是 link 到 post how to get array of values as plusargs in systemverilog?