SystemVerilog 中定义 struct 数据结构主要有两种方式:
1. 命名结构体 (Named struct)
语法:
struct 结构体名称 {
数据类型 成员变量名1;
数据类型 成员变量名2;
...
};
例子:
struct student {
string name;
int age;
SystemVerilog 中定义 struct 数据结构主要有两种方式:
1. 命名结构体 (Named struct)
语法:
struct 结构体名称 {
数据类型 成员变量名1;
数据类型 成员变量名2;
...
};
例子:
struct student {
string name;
int age;
3054
2834
615

被折叠的 条评论
为什么被折叠?