EB
Size: a a a
EB
K
PI
EB
BB
AK
LA
AS
typedef enum {
FlashStateIdle = 0,
FlashStateCmd,
FlashStateWait
} FlashState;42: reg FlashState state;
43: reg FlashState next_state;
Error (10170): Verilog HDL syntax error at spi_flash.sv(42) near text: "state"; expecting ";".
Error (10149): Verilog HDL Declaration error at spi_flash.sv(43): identifier "FlashState" is already declared in the present scope
MI
typedef enum {
FlashStateIdle = 0,
FlashStateCmd,
FlashStateWait
} FlashState;42: reg FlashState state;
43: reg FlashState next_state;
Error (10170): Verilog HDL syntax error at spi_flash.sv(42) near text: "state"; expecting ";".
Error (10149): Verilog HDL Declaration error at spi_flash.sv(43): identifier "FlashState" is already declared in the present scope
reg before Flashstate?AS
reg before Flashstate?[3:0] for example. I'll try without regDH
DH
typedef logic [7:0] uint8_tGK
typedef enum {
FlashStateIdle = 0,
FlashStateCmd,
FlashStateWait
} FlashState;42: reg FlashState state;
43: reg FlashState next_state;
Error (10170): Verilog HDL syntax error at spi_flash.sv(42) near text: "state"; expecting ";".
Error (10149): Verilog HDL Declaration error at spi_flash.sv(43): identifier "FlashState" is already declared in the present scope
DH
AS
K
K
CM
CM

EB