masoud.malekzadeh
Member level 1
How can i define and use an integer type containing for example 1,3,5,7 ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You can't, integer ranges must be consecutive integers.How can i define and use an integer type containing for example 1,3,5,7 ?
one thing by declaring integer u donot mean actual register on hardware.
Here integer means nothing more than std_logic_vectors without sign.
Correct me if wrong... :roll:
A std_logic_vector in VHDL is NOT an integer, and should NOT be treated as an integer. If you want a binary number - use the signed or unsigned type (thats what they're there for).