Y
Yann Sarrazin
Guest
Hi all
I want to declare a string as variable in my testbench
----------------------------------------------------
constant t1:="once upon a time";
constant t2:="the end"
variable toto:string(......); --I need to define a range for toto
--and now in my process , I declare:
if A=0 then
toto: = t1;
else
toto:=t2;
end if;
-----------------------------------------------------
My question is : What is the correct range for toto if t1 and t2 are
not the same length ,is there any tricks to set toto with a correct range.
May be its not possible !
Thanks yann
I want to declare a string as variable in my testbench
----------------------------------------------------
constant t1:="once upon a time";
constant t2:="the end"
variable toto:string(......); --I need to define a range for toto
--and now in my process , I declare:
if A=0 then
toto: = t1;
else
toto:=t2;
end if;
-----------------------------------------------------
My question is : What is the correct range for toto if t1 and t2 are
not the same length ,is there any tricks to set toto with a correct range.
May be its not possible !
Thanks yann