Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Issue when converting between multiple data types

$
0
0
Hello everybody I have an issue with this one line of code here:

Code:

output(to_integer(unsigned(msbd) + unsigned(lsb)) downto 0) <= bit_field(to_integer(unsigned(msbd) + unsigned(lsb)) downto to_integer(lsb));
bit_field and output are 32 bit std_logic_vector
msbd and lsb are 5 bit std_logic_vectors

Issue is when I convert the VHDL file to a symbol file I get this:

Code:

Error (10405): VHDL error at aluvhdl_entities.vhd(896): can't determine type of object at or near identifier "to_integer" -- found 0 possible types
Can some one tell me what the issue is?

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>