Answers Database
FPGA Express: Use of predefined attributes with non-static alias range is not supported
Record #4335
Product Family: Software
Product Line: Synopsys
Product Part: FPGA Express
Product Version: 2.1.1
Problem Title:
FPGA Express: Use of predefined attributes with non-static alias range is not supported
Problem Description:
Urgency: Standard
General Description:
FPGA Express does not support the use of predefined attributes (e.g. 'LEFT,
'HIGH, 'RANGE, etc.) with aliases when the alias range is not locally static.
Use of such constructs may cause FPGA Express to crash without an error.
Solution 1:
Replace the pre-defined attribute with the corresponding components of the
alias' range. For example, for the following code:
procedure foo (B: inout STD_LOGIC_VECTOR) is
begin
constant b_left : integer := B'length-1;
alias b_alias : STD_LOGIC_VECTOR(b_left downto 0) of B;
...
for I in b_alias'RANGE loop
...
end loop;
...
end foo;
Replace the loop with:
for I in 0 to b_left loop
...
end loop;
End of Record #4335 - Last Modified: 08/13/98 10:02 |