Here's my situation. I'm reading in values over I2C and trying to set some switches in a top level process to configure a device.
To do so, I'm reading in values over I2C and storing them in a std_logic_vector array. Then when I've read in the complete signal I throw a flag and trigger a process in my top_level file. This all seems to work, but when I attempt to compare this read-in value to some integer constants to then set my configuration I keep getting lots of errors, such as:
Type error near setting ; current type integer; expected type std_logic_vector
When looking up my issue on the internet, the functions TO_INTEGER(UNSIGNED( ... )) keeps popping up as a solution but it just won't pass the compiler. I get the following errors:
ERROR:HDLCompiler:432 - Line 982: Formal <arg> has no actual or default value.
ERROR:HDLCompiler:541 - Line 982: Type integer is not an array type and cannot be indexed.
ERROR:HDLCompiler:1690 - Line 982: This construct is only supported in VHDL 1076-2008
Does anyone know what I can do to solve this? I'm completely stumped.