|
楼主 |
发表于 2009-12-20 16:59:29
|
显示全部楼层
The VMM channel has several advantages over the SystemVerilog mailbox:
• Unlike mailboxes, channels are strongly typed which helps prevent coding errors.
• Channels allow flow control, so the put() method will block if the channel is full.
• A channel can have both high-water and low water marks to fine tune the interactions
between the producer and consumer. The get() method removes the transaction from
the end of the channel, while peek() give you a handle to it without removal. Both
block if the channel is empty.
• The output of a channel can be replicated using the tee() method |
|