一个结构体可以包含不同数据类型的元素,这些元素可以通过其名称作为整体或单独引用。这与元素具有相同数据类型的数组非常不同。
// Normal arrays -> a collection of variables of same data type
int array [10]; // all elements are of int type
bit [7:0] mem [256]; // all elements are of bit type
// Structures -> a collection of var