constant MAX : unsigned(18 downto 0) := "100" & x"0000";
constant MIN : unsigned(18 downto 0) := "001" & x"0000";
What is this VHDL code setting max and min to? An explanation of fixed point representation would be helpful.
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.
&operator concatenates the two bit vectors"100"andx"0000"(e.g."00" & "11"would be equivalent to"0011").X"012345689ABCDEF"syntax means that the following vector should be interpreted as a hex number (e.g.X"0"actually is"0000",X"F"would be"1111"orX"0F"would be"00001111"). This allows you to write a bit vector in a more compact way.For the interpretation of a bit vector check e.g. http://en.wikipedia.org/wiki/Binary_numeral_system
For representation of hexdecimal numbers check e.g. http://en.wikipedia.org/wiki/Hexadecimal
Edit for clarification: I assume you are using the
unsignedtype from thenumeric_stdpackage. From the header of that packageSo your
MAXis set to 2^18 and yourMINto 2^16.