Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:22:19+00:00 2026-06-05T06:22:19+00:00

constant MAX : unsigned(18 downto 0) := 100 & x0000; constant MIN : unsigned(18

  • 0
 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:22:21+00:00Added an answer on June 5, 2026 at 6:22 am
    • The & operator concatenates the two bit vectors "100" and x"0000" (e.g. "00" & "11" would be equivalent to "0011").
    • The 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" or X"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 unsigned type from the numeric_std package. From the header of that package

    This package defines numeric types and arithmetic functions
    for use with synthesis tools. Two numeric types are defined:
    -- > UNSIGNED: represents UNSIGNED number in vector form
    -- > SIGNED: represents a SIGNED number in vector form
    The base element type is type STD_LOGIC.
    The leftmost bit is treated as the most significant bit.
    Signed vectors are represented in two's complement form.
    

    So your MAX is set to 2^18 and your MIN to 2^16.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider this class diagram: Car has a constant max speed of 200 kph, and
In java, there is a constant for the max value of Long. Such as:
The following code: var constant = Expression.Constant(find me, typeof(string)); // memberExpression evaluates to a
Is there a way to make enum type to be unsigned? The following code
I'm getting the following error: `.' cannot appear in a constant-expression for this function
$c = new Criteria(); $c->addSelectColumn('MAX('.Moto::matricula.')'); But i get this error: Fatal error: Undefined class
Why this doesn't work? enum : long {MaxValue = std::numeric_limits<long int>::max()}; I'm getting error
My code so far: // The q constant of the Glicko system. var q
I have this histogram which counts the array d in equally log-spaced bins. max_val=np.log10(max(d))
I'm trying to write a branchless function to return the MAX or MIN of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.