Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to increse the range of integer

Status
Not open for further replies.

srsamit

Technical User
May 29, 2003
3
IN
Hi,
Can anybody tell me which construct to use to increses the range of the integer.
 
In VHDL, if a signal is of integer data type, it is, by default, in the range -2**31 to 2**31, i.e., the signal will become a 32-bit wide bus.

If you want to specify a range, for example, you have a 4-bit positive counter, then you just have to define it as,

signal temp: integer range 0 to 15;

This assignment will assign a 40bit bus to the signal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top