Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > using multiple ranges

Thread Tools

using multiple ranges

paulk paulk is offline
Junior Member
Join Date: Oct 2009
Posts: 1

I am trying to find an elegant method of concatenating multiple ranges.

Basically I have a signal

signal a is std_logic_vector(35 downto 00)
signal b is std_logic_vector(31 downto 00);

and I am doing the following remap:

b <= a(34 downto 27) & a(25 downto 1 & a(16 downto 9) & a(7 downto 0);

but for readability I would like to replace this statement with something like

b <= a(BYTE_MAP);

Does anyone know how to do this? It seems as though I need to define a subtype with multiple ranges.. is this possible?


SUBTYPE BYTE_MAP is range (34 downto 27) & range (25 downto 1 & range....


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple discontinued ranges xoff Python 11 11-11-2010 10:37 AM
DHCP multiple ip ranges Maarten MCTS 4 05-27-2008 10:10 PM
extract multiple ranges from a list Python 3 03-08-2008 10:27 PM
Multiple ISPs and Multiple IP Ranges from Each ISP Chennak Cisco 10 06-08-2005 09:29 PM
PIX-501 with multiple outside IP ranges Mike Ruskai Cisco 3 02-14-2005 11:43 PM