Are you looking for specific syntax or methods of testing?
If a is defined as an integer range, then you can test for this with an "if" statement (as you have indicated, although for clarity, I'd add an extra set of parenthesis).
Depending on the synthesis tool, this may or may not work with std_logic_vector.
I generally don't do a lot from the simulation side of things, but this may work with a floating point number as well - but not in synthesis.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.