Junior
1
Hi
I have an interface :
interface bus_ifc (inout[2:0] bus);
....
and I want to assign to the bus variable in class
struct temp {a,b,c}
class a
temp t;
t.a = 1; t.b=0; t.c=0;
fork
begin
agent.bus_ifc.bus = t;
end
join_none
endclass : a
but this is don’t work, it does not enter the values into the bus…
can someone help me?
thanks a lot!
cgales
2
In reply to Junior:
Please use code tags. I have added them for you.
When you state “don’t work”, what do you mean? Do you get a compilation error? Runtime error? Are the results not what you expect?
It would be beneficial to provide a complete example demonstrating your problem.
One thing to check is that your types agree between ‘temp’ and ‘bus’.
Junior
3
In reply to cgales:
Hi,
Thanks for your changes,
and don’t work, I mean that the bus is 0 and the data I want that will enter didn’t
cgales
4
In reply to Junior:
You should provide complete example per the link in my previous response.