01-28-2020 04:16 PM
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?
01-29-2020 02:57 AM
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.
01-30-2020 06:12 AM - edited 01-30-2020 06:13 AM
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