is it possible to give a port to a handler/interface function on argument list?
Code: Select all
interface ia{ {unsigned} pop(out port ?debugpin);}; ...case i.pop(out port? debugpin) -> {unsigned res}: { debugpin<:1; res= doSomething(); debugpin<:0;}...debugpin<:0;result=a.pop(debugpin1);debugpin<:1;
I can't give the port from the function argument of the handler's main-loop, because in this case more than one par{} function will contains the same port. Yep. But the above example could touch the resource only sequentially because of the interface, I guess.
What is what I skipped? How can I do this similar way?