Skip to content

Commit cbea5b3

Browse files
committed
revert renaming 'value' to 'val'
1 parent 409ed50 commit cbea5b3

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package body string_ptr_pkg is
99
impure function new_vector (
1010
length : natural := 0;
1111
id : integer := 0;
12-
val : val_t := val_t'low
12+
value : val_t := val_t'low
1313
) return natural;
1414

1515
impure function is_external (
@@ -44,7 +44,7 @@ package body string_ptr_pkg is
4444
ref : natural;
4545
length : natural;
4646
drop : natural := 0;
47-
val : val_t := val_t'low
47+
value : val_t := val_t'low
4848
);
4949

5050
impure function to_string (
@@ -122,14 +122,14 @@ package body string_ptr_pkg is
122122
impure function new_vector (
123123
length : natural := 0;
124124
id : integer := 0;
125-
val : val_t := val_t'low
125+
value : val_t := val_t'low
126126
) return natural is begin
127127
reallocate_ids(st.ids, st.id);
128128
if id = 0 then
129129
st.ids(st.id) := (id => st.ptr, length => 0);
130130

131131
reallocate_ptrs(st.ptrs, st.ptr);
132-
st.ptrs(st.ptr) := new vec_t'(1 to length => val);
132+
st.ptrs(st.ptr) := new vec_t'(1 to length => value);
133133
st.ptr := st.ptr + 1;
134134
else
135135
assert length>0 report "Length of external memory cannot be 0" severity error;
@@ -246,7 +246,7 @@ package body string_ptr_pkg is
246246
ref : natural;
247247
length : natural;
248248
drop : natural := 0;
249-
val : val_t := val_t'low
249+
value : val_t := val_t'low
250250
) is
251251
variable oldp, newp : string_access_t;
252252
variable min_len : natural := length;
@@ -256,7 +256,7 @@ package body string_ptr_pkg is
256256
-- @TODO Implement resize for external models
257257
check_external(ref, "resize");
258258
else
259-
newp := new vec_t'(1 to length => val);
259+
newp := new vec_t'(1 to length => value);
260260
oldp := st.ptrs(s.id);
261261
if min_len > oldp'length - drop then
262262
min_len := oldp'length - drop;
@@ -302,24 +302,24 @@ package body string_ptr_pkg is
302302
impure function new_string_ptr (
303303
length : natural := 0;
304304
id : integer := 0;
305-
val : val_t := val_t'low
305+
value : val_t := val_t'low
306306
) return ptr_t is begin
307307
return (ref => vec_ptr_storage.new_vector(
308308
length => length,
309-
val => val,
309+
value => value,
310310
id => id
311311
));
312312
end;
313313

314314
impure function new_string_ptr (
315315
length : natural := 0;
316316
id : integer := 0;
317-
val : natural
317+
value : natural
318318
) return ptr_t is begin
319319
return (ref => vec_ptr_storage.new_vector(
320320
length => length,
321-
val => character'val(val),
322-
id => id
321+
value => character'val(value),
322+
id => id
323323
));
324324
end;
325325

@@ -394,9 +394,9 @@ package body string_ptr_pkg is
394394
procedure reallocate (
395395
ptr : ptr_t;
396396
length : natural;
397-
val : val_t := val_t'low
397+
value : val_t := val_t'low
398398
) is
399-
variable n_value : string(1 to length) := (1 to length => val);
399+
variable n_value : string(1 to length) := (1 to length => value);
400400
begin
401401
vec_ptr_storage.reallocate(ptr.ref, n_value);
402402
end;
@@ -413,18 +413,18 @@ package body string_ptr_pkg is
413413
ptr : ptr_t;
414414
length : natural;
415415
drop : natural := 0;
416-
val : val_t := val_t'low
416+
value : val_t := val_t'low
417417
) is begin
418-
vec_ptr_storage.resize(ptr.ref, length, drop, val);
418+
vec_ptr_storage.resize(ptr.ref, length, drop, value);
419419
end;
420420

421421
procedure resize (
422422
ptr : ptr_t;
423423
length : natural;
424424
drop : natural := 0;
425-
val : natural
425+
value : natural
426426
) is begin
427-
vec_ptr_storage.resize(ptr.ref, length, drop, character'val(val));
427+
vec_ptr_storage.resize(ptr.ref, length, drop, character'val(value));
428428
end;
429429

430430
impure function to_string (

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ package body string_ptr_pkg is
7474
impure function new_string_ptr (
7575
length : natural := 0;
7676
id : integer := 0;
77-
val : val_t := val_t'low
77+
value : val_t := val_t'low
7878
) return ptr_t is begin
7979
reallocate_ids(st.ids, st.id);
8080
if id = 0 then
8181
st.ids(st.id) := (id => st.ptr, length => 0);
8282

8383
reallocate_ptrs(st.ptrs, st.ptr);
84-
st.ptrs(st.ptr) := new vec_t'(1 to length => val);
84+
st.ptrs(st.ptr) := new vec_t'(1 to length => value);
8585
st.ptr := st.ptr + 1;
8686
else
8787
assert length>0 report "Length of external memory cannot be 0" severity error;
@@ -102,11 +102,11 @@ package body string_ptr_pkg is
102102
impure function new_string_ptr (
103103
length : natural := 0;
104104
id : integer := 0;
105-
val : natural
105+
value : natural
106106
) return ptr_t is begin
107107
return new_string_ptr(
108108
length => length,
109-
val => character'val(val),
109+
value => character'val(value),
110110
id => id
111111
);
112112
end;
@@ -237,9 +237,9 @@ package body string_ptr_pkg is
237237
procedure reallocate (
238238
ptr : ptr_t;
239239
length : natural;
240-
val : val_t := val_t'low
240+
value : val_t := val_t'low
241241
) is
242-
variable n_value : string(1 to length) := (1 to length => val);
242+
variable n_value : string(1 to length) := (1 to length => value);
243243
begin
244244
reallocate(ptr, n_value);
245245
end;
@@ -256,7 +256,7 @@ package body string_ptr_pkg is
256256
ptr : ptr_t;
257257
length : natural;
258258
drop : natural := 0;
259-
val : val_t := val_t'low
259+
value : val_t := val_t'low
260260
) is
261261
variable oldp, newp : string_access_t;
262262
variable min_len : natural := length;
@@ -266,7 +266,7 @@ package body string_ptr_pkg is
266266
-- @TODO Implement resize for external models
267267
check_external(ptr, "resize");
268268
else
269-
newp := new vec_t'(1 to length => val);
269+
newp := new vec_t'(1 to length => value);
270270
oldp := st.ptrs(s.id);
271271
if min_len > oldp'length - drop then
272272
min_len := oldp'length - drop;
@@ -283,9 +283,9 @@ package body string_ptr_pkg is
283283
ptr : ptr_t;
284284
length : natural;
285285
drop : natural := 0;
286-
val : natural
286+
value : natural
287287
) is begin
288-
resize(ptr, length, drop, character'val(val));
288+
resize(ptr, length, drop, character'val(value));
289289
end;
290290

291291
impure function to_string (

vunit/vhdl/data_types/src/string_ptr_pkg.vhd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ package string_ptr_pkg is
4444
impure function new_string_ptr (
4545
length : natural := 0;
4646
id : integer := 0;
47-
val : val_t := val_t'low
47+
value : val_t := val_t'low
4848
) return ptr_t;
4949

5050
impure function new_string_ptr (
5151
length : natural := 0;
5252
id : integer := 0;
53-
val : natural
53+
value : natural
5454
) return ptr_t;
5555

5656
impure function new_string_ptr (
@@ -100,7 +100,7 @@ package string_ptr_pkg is
100100
procedure reallocate (
101101
ptr : ptr_t;
102102
length : natural;
103-
val : val_t := val_t'low
103+
value : val_t := val_t'low
104104
);
105105

106106
procedure reallocate (
@@ -113,14 +113,14 @@ package string_ptr_pkg is
113113
ptr : ptr_t;
114114
length : natural;
115115
drop : natural := 0;
116-
val : val_t := val_t'low
116+
value : val_t := val_t'low
117117
);
118118

119119
procedure resize (
120120
ptr : ptr_t;
121121
length : natural;
122122
drop : natural := 0;
123-
val : natural
123+
value : natural
124124
);
125125

126126
impure function to_string (

0 commit comments

Comments
 (0)