As Steve said, in SystemVerilog you can pass events as module ports.
But hold on - do you want simple events or some "status/data"
associated with that event (not always perhaps, but some times?) - this
is where VMM Notification (See:
www.vmm-sv.org) fits the bill perfectly
for TBs. If you use VCS, I suggest you look at it right away, even
otherwise I'm sure other vendors promote methodologies quite similar,
so talk to them.
HTH
Ajeetha, CVC
www.noveldv.com
Robert Au wrote:
> I am trying to use named event to emulate the request and
> acknowledgement.
> I think I can detect the event by hierarchical naming convention in
> module connection trees.
> However, I think by doing so, the testbench code is not quite scalable
> since I cannot see the event from the module top.
>
> I would like to ask can I have named event port in module definition?
>
> Thanks