Jun 2, 2003 #1 srsamit Technical User May 29, 2003 3 IN Hi, Can anybody tell me which construct to use to increses the range of the integer.
Jun 2, 2003 #2 RVSachin Technical User Nov 12, 2001 77 IN 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. Upvote 0 Downvote
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.
Jun 2, 2003 #3 RVSachin Technical User Nov 12, 2001 77 IN Errata: Read '40bit bus' as '4-bit bus' Upvote 0 Downvote