AR# 63958

|

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

描述

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='{


解决方案

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 {} . 
AR# 63958
日期 04/30/2015
状态 Active
Type 已知问题
Tools
People Also Viewed