I am working in 8 bit pixel values..for ease of coding i want to use conv_integer to convert this 8 bit std_logic_vector.is it cause any synthesise problem?is it reduce the speed of hardware…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, integers synthesise just fine. Don’t use conv_integer though – that’s from an old non-standard library.
You want to
use ieee.numeric_std;and thento_integer(unsigned(some_vector));If you still want to access the bits, and treat the vector as a number, then use the signed or unsigned type – they define vectors of bits (which can still have
-,Zetc.) which behave as numbers, so you can writeunsigned_vector <= unsigned_vector + 1.