I've created an (enum) called (color), and included it in a packed
(struct) called (triple), and then created a ten-element array called
(group) in the following code:
1 | module EnStAr ();
|
2 |
|
3 | typedef enum { RED, ORANGE, YELLOW, GREEN, BLUE, VIOLET } color;
|
4 | typedef struct packed
|
5 | { color clr;
|
6 | integer xCoo;
|
7 | integer yCoo;
|
8 | } triple;
|
9 |
|
10 | triple [ 9:0] group;
|
11 |
|
12 | endmodule
|
When I execute the following command I get the following single error
message:
1 | D:\Hf\Verilog\Common>\Icarus\bin\iverilog -g2009 -o EnStAr.out EnStAr.sv
|
2 | EnStAr.sv:10: Compound type is not PACKED in this context.
|
3 |
|
4 | D:\Hf\Verilog\Common>
|
Line 10 is where I declare my array. Is this saying my array is not
packed? If so, how do I fix this so that my array is packed? I guess the
bottom line is, how do I change this file so that Icarus' simulator will
compile it without error messages?