F
fl
Guest
Hello,
I am still new to VHDL. Now two questions pop up from an example code snippet.
See below please.
The first question is about 'new' allocator. It looks like Xilinx Vivado does
not support it (it has an error of the line headed with 'string_v...'
My second question is about '.all'. I know string_v is an access type. I
don't find the answer of '.all'.
Could you help me on the two questions?
Thanks,
/////////////////////////////
procedure verify is
type string_p is access string;
variable string_v : string_p;
begin
string_v := new string'(integer'image(to_integer(expect_v)));
report "___Step " & integer'image(step_v);
.........
ck : if match_v then
boring : if verbose_g then
report "____________ saw " & string_v.all & " as expected";
end if boring;
I am still new to VHDL. Now two questions pop up from an example code snippet.
See below please.
The first question is about 'new' allocator. It looks like Xilinx Vivado does
not support it (it has an error of the line headed with 'string_v...'
My second question is about '.all'. I know string_v is an access type. I
don't find the answer of '.all'.
Could you help me on the two questions?
Thanks,
/////////////////////////////
procedure verify is
type string_p is access string;
variable string_v : string_p;
begin
string_v := new string'(integer'image(to_integer(expect_v)));
report "___Step " & integer'image(step_v);
.........
ck : if match_v then
boring : if verbose_g then
report "____________ saw " & string_v.all & " as expected";
end if boring;