Skip to content

Commit afc5df2

Browse files
committed
Workaround for ModelSim/Questa compilation bug.
1 parent c23790d commit afc5df2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vunit/vhdl/data_types/src/data_types_private_pkg.vhd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ end package;
2121

2222
package body data_types_private_pkg is
2323
impure function to_string(data_type : data_type_t) return string is
24+
variable split_data_type : lines_t;
2425
begin
25-
return split(data_type_t'image(data_type), "_", 1)(1).all;
26+
split_data_type := split(data_type_t'image(data_type), "_", 1);
27+
return split_data_type(1).all;
2628
end;
27-
end package body;
29+
end package body;

0 commit comments

Comments
 (0)