Hi,
I'm quite new to VHDL programming for FPGAs. I'm using HDL Designer for writing my VHDL code and compiling it. An example of a constant declaration I make:
constant compCount2 : integer range 256 downto 0 := 150;
whereby I get the following error message when compiling:
Non-standard IEEE type "integer", used for constant "compCount2". Use IEEE types only. Subtypes must be based on IEEE standard types.
When simulating, everything works as intended. However, as being fairly new to VHDL programming, I want to adapt to a good programming style. I was therefore wondering, how should I declare integers to avoid such error messages? (I assume the software included that error message for a reason).
Thanks!
I'm quite new to VHDL programming for FPGAs. I'm using HDL Designer for writing my VHDL code and compiling it. An example of a constant declaration I make:
constant compCount2 : integer range 256 downto 0 := 150;
whereby I get the following error message when compiling:
Non-standard IEEE type "integer", used for constant "compCount2". Use IEEE types only. Subtypes must be based on IEEE standard types.
When simulating, everything works as intended. However, as being fairly new to VHDL programming, I want to adapt to a good programming style. I was therefore wondering, how should I declare integers to avoid such error messages? (I assume the software included that error message for a reason).
Thanks!