cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Observer
Observer
510 Views
Registered: ‎06-27-2019

mailbox is not declared -- SystemVerilog

Hi,

 

I am trying to create systemverilog testbench in Vivado 2019.2 where I want to use Mailbox for a class based testbench. As part of dynamic constucts supported document, Xilinx have clearly mentioned that mailbox, semaphore and queues are supported as part of Vivado 2019.2 version.  Why does it not work as expected? I am seeing the issue for queue as well. 

Can someone please help on this? Is systemverilog compatible with Vivado or not?

 

 

0 Kudos
Reply
2 Replies
Moderator
Moderator
465 Views
Registered: ‎05-31-2017

Hi @choksiv ,

What issues are you facing ? Please kindly elaborate more with snippets along with a test case regarding the functional issues what you are facing.

0 Kudos
Reply
Moderator
Moderator
419 Views
Registered: ‎04-24-2013

Hi @choksiv  ,

Mailbox is supported in Simulation as per Table 40 in User Guide 900

I have run the attached test bench on both Windows and Linux and the mailbox is working as expected

launch_simulation: Time (s): cpu = 00:00:04 ; elapsed = 00:00:14 . Memory (MB): peak = 1018.926 ; gain = 0.000
run 10 us
[1000] Thread0: Put item #0, size=1
[2000] Thread1: Got item #0, size=0
[2000] Thread0: Put item #1, size=1
[3000] Thread0: Put item #2, size=2
[4000] Thread1: Got item #1, size=1
[4000] Thread0: Put item #3, size=2
[6000] Thread1: Got item #2, size=1
[6000] Thread0: Put item #4, size=2
[8000] Thread1: Got item #3, size=1
[10000] Thread1: Got item #4, size=0

Best Regards
Aidan

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------