nettype可以用来在System Verilog中定义struct吗?

问题描述 投票:0回答:1

可以使用

nettype
来定义SystemVerilog语言中的struct吗?

我无法定义所以,有人可以告诉我吗?

system-verilog
1个回答
0
投票

A

nettype
不能用作
struct
的成员。只有其他数据类型可以用作结构成员。
nettype
是一种可以具有数据类型的信号,包括
struct
,但
nettype
本身不是数据类型。

© www.soinside.com 2019 - 2024. All rights reserved.