UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 63958

2015.1 Vivado Simulator - print format %p does not work on associative array

Description

When %p is used as the printing format for dynamic array, Vivado Simulator does not print the output.

For Example:
 
module top();

typedef struct packed {
                       logic [1:0] a;
                       struct packed {
                                      logic [1:0] a;
                                     } x;
                      } myt;
      

integer mystring[myt];

initial
begin
 mystring[1] = 1;
 mystring[2] = 2;
 $display("str=%x",mystring[1]);
 $display("str=%x",mystring[2]);
 $display("str=%p",mystring);
end
endmodule

Output:
 
str=00000001
str=00000002
str='{


Solution

Currently Vivado Simulator does not support the use of the '%p' for the print format on associative array. 

This will be updated in a future release, so that a warning will be issued for %p on associative array and it will print blank as {} . 

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
58881 Xilinx Simulation Solution Center - Design Assistant - Language Support N/A N/A
AR# 63958
Date Created 03/19/2015
Last Updated 04/30/2015
Status Active
Type Known Issues
Tools
  • Vivado Design Suite - 2015.1