Skip to content

Commit 305bff6

Browse files
author
Lars Asplund
committed
Fix Riviera-PRO compilation issues.
1 parent 0b6de74 commit 305bff6

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

vunit/vhdl/data_types/src/integer_vector_ptr_pkg-body-200x.vhd

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ package body integer_vector_ptr_pkg is
141141
end;
142142

143143
impure function to_integer_vector_ptr (
144-
value : integer
144+
value : val_t
145145
) return ptr_t is begin
146146
-- @TODO maybe assert that the ref is valid
147147
return (ref => value);

vunit/vhdl/data_types/src/integer_vector_ptr_pkg-body-93.vhd

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ package body integer_vector_ptr_pkg is
9696
end;
9797

9898
impure function to_integer_vector_ptr (
99-
value : integer
99+
value : val_t
100100
) return ptr_t is begin
101101
-- @TODO maybe assert that the ref is valid
102102
return (ref => value);

vunit/vhdl/data_types/src/string_ptr_pkg.vhd

+19-19
Original file line numberDiff line numberDiff line change
@@ -28,76 +28,76 @@ package string_ptr_pkg is
2828
alias vava_t is string_access_vector_access_t;
2929

3030
function to_integer (
31-
value : string_ptr_t
31+
value : ptr_t
3232
) return integer;
3333

3434
impure function to_string_ptr (
3535
value : integer
36-
) return string_ptr_t;
36+
) return ptr_t;
3737

3838
impure function new_string_ptr (
3939
length : natural := 0
40-
) return string_ptr_t;
40+
) return ptr_t;
4141

4242
impure function new_string_ptr (
4343
value : string
44-
) return string_ptr_t;
44+
) return ptr_t;
4545

4646
procedure deallocate (
47-
ptr : string_ptr_t
47+
ptr : ptr_t
4848
);
4949

5050
impure function length (
51-
ptr : string_ptr_t
51+
ptr : ptr_t
5252
) return integer;
5353

5454
procedure set (
55-
ptr : string_ptr_t;
55+
ptr : ptr_t;
5656
index : natural;
57-
value : character
57+
value : val_t
5858
);
5959

6060
impure function get (
61-
ptr : string_ptr_t;
61+
ptr : ptr_t;
6262
index : natural
63-
) return character;
63+
) return val_t;
6464

6565
procedure reallocate (
66-
ptr : string_ptr_t;
66+
ptr : ptr_t;
6767
length : natural
6868
);
6969

7070
procedure reallocate (
71-
ptr : string_ptr_t;
71+
ptr : ptr_t;
7272
value : string
7373
);
7474

7575
procedure resize (
76-
ptr : string_ptr_t;
76+
ptr : ptr_t;
7777
length : natural;
7878
drop : natural := 0
7979
);
8080

8181
impure function to_string (
82-
ptr : string_ptr_t
82+
ptr : ptr_t
8383
) return string;
8484

8585
function encode (
86-
data : string_ptr_t
86+
data : ptr_t
8787
) return string;
8888

8989
function decode (
9090
code : string
91-
) return string_ptr_t;
91+
) return ptr_t;
9292

9393
procedure decode (
9494
constant code : string;
9595
variable index : inout positive;
96-
variable result : out string_ptr_t
96+
variable result : out ptr_t
9797
);
9898

99-
alias encode_string_ptr_t is encode[string_ptr_t return string];
100-
alias decode_string_ptr_t is decode[string return string_ptr_t];
99+
alias encode_ptr_t is encode[ptr_t return string];
100+
alias decode_ptr_t is decode[string return ptr_t];
101101

102102
constant string_ptr_t_code_length : positive := integer_code_length;
103103

0 commit comments

Comments
 (0)