小编Rog*_*rer的帖子

如何在系统verilog中返回关联数组

你好想知道关联数组如何作为返回值传递

代码:

function abc()
begin
int value[string][string];
value = def();
end

function int def()
begin
int new_value[string][string];
//logic to populate the array
return new_value;
end
Run Code Online (Sandbox Code Playgroud)

我看到以下错误:目标的类型是 int。而source的类型是int$[string][string]。

如何处理这个问题并无缝地传递关联数组?

verification verilog system-verilog

1
推荐指数
1
解决办法
1919
查看次数

标签 统计

system-verilog ×1

verification ×1

verilog ×1