Project

General

Profile

Actions

Task #6368

closed

Ranged assignment merge

Added by Mikhail Lebedev about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/26/2015
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:
0.2.1

Description

Multiple sequential ranged assignments are needed to be merged into a single assignment.
For example (b10 itc design):

v_out : out bit_vector(3 downto 0)
...
v_out(0) <= voto0 ;
v_out(1) <= voto1 ;
v_out(2) <= voto2 ;
v_out(3) <= voto3 ;

This can be converted into the concatenation of bits:
v_out <= voto3 & voto2 & voto1 & voto0;

Something like:
v_out(0) <= voto0 ;
v_out(3) <= voto3 ;
is converted into:
v_out <= voto3 & v_out(2 downto 1) & voto0;

etc.

Actions

Also available in: Atom PDF