Skip to content

Commit

Permalink
Added workaround to make Riviera-PRO 2015.10 pass the com test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Dec 14, 2015
1 parent 39295b7 commit 1e13414
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def find_all_files(directory, endings=None):

setup(
name='vunit_hdl',
version='0.48.0',
version='0.48.1',
packages=['vunit',
'vunit.com',
'vunit.test',
Expand Down
6 changes: 4 additions & 2 deletions vunit/com/codec_vhdl_array_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ class ArrayStdCodecTemplate(DatatypeStdCodecTemplate, ArrayCodecTemplate):
return ret_val_descending;
end if;
end function ret_val_range;
variable ret_val : $array_type(ret_val_range(code)'range)$init_value;
constant array_of_correct_range : $array_type := ret_val_range(code);
variable ret_val : $array_type(array_of_correct_range'range)$init_value;
variable index : positive := code'left + 1 + 2 * range_length;
begin
for i in ret_val'range loop
Expand Down Expand Up @@ -398,7 +399,8 @@ class ArrayStdCodecTemplate(DatatypeStdCodecTemplate, ArrayCodecTemplate):
end if;
end function ret_val_range;
variable ret_val : $array_type(ret_val_range(code)'range(1), ret_val_range(code)'range(2));
constant array_of_correct_range : $array_type := ret_val_range(code);
variable ret_val : $array_type(array_of_correct_range'range(1), array_of_correct_range'range(2));
variable index : positive := code'left + 2 + 2 * range1_length + 2 * range2_length;
begin
for i in ret_val'range(1) loop
Expand Down

0 comments on commit 1e13414

Please sign in to comment.