O
Ozzyboom
Guest
Hi All,
I am hitting the wall with PLI 1.0 to obtain a value of a variable in a vector, and i have to do this for digital engines of VCS, XL and NC, but I think VCS and NC would be priority.
This is my problem:
integer[0:1] var;
initial begin
var[0] = 100;
var[1] = 101;
end
What I am trying to do with PLI, is to get the value of var[0]. Is there an access function for this?
I can do this for a scalar variable, by using acc_handle_by_name and then using acc_fetch_value. However it seems like vector variables needs to treated differently.
Does anyone know the solution for this problem?
Any help would be appreciated.
Thanks
I am hitting the wall with PLI 1.0 to obtain a value of a variable in a vector, and i have to do this for digital engines of VCS, XL and NC, but I think VCS and NC would be priority.
This is my problem:
integer[0:1] var;
initial begin
var[0] = 100;
var[1] = 101;
end
What I am trying to do with PLI, is to get the value of var[0]. Is there an access function for this?
I can do this for a scalar variable, by using acc_handle_by_name and then using acc_fetch_value. However it seems like vector variables needs to treated differently.
Does anyone know the solution for this problem?
Any help would be appreciated.
Thanks