|
From: Cary R. <cy...@ya...> - 2013-12-05 17:50:17
|
To dump an array word Icarus needs to escape the name so it is compatible with the VCD dump format. That's what \data[0][31:0] is. It is the zeroth 32-bit word of the data array. Because an escaped name and an array name could now conflict Icarus produces the warning. It would be best if it could check for an escaped identifier conflict and only print a message when there is a problem, but as I remember this was not possible. We chose to use escaped identifiers so that all the dumpers could handle array words. The other common choice is to only support them using a special dump command that only works with certain dump formats. I agree it would be nice if we could make the warning more accurate, but we are usually busy working on other things so minor annoyances that appear to be complicated to fix do not often get fixed. As I remember, and it has been a number of years, the issue is if you search for the escaped identifier it find the array element and there is no way in the VPI to search for the next occurrence. It's possible that finding the array element in the Icarus search by name implementation is a bug. Cary On Thursday, December 5, 2013 9:00 AM, Victor Lyuboslavsky <vi...@vi...> wrote: Yes, the warning seems worrisome. However, everything seems to be working fine: http://www.edaplayground.com/s/4/520 On Thu, Dec 5, 2013 at 8:12 AM, gon1332 <g1a...@ya...> wrote: Hi! > >I try to dump an array (reg [31:0] data [31:0]) but I can't do it >successfully. >I've tried the way that is in the wiki: > >for (idx = 0; idx < 32; idx = idx + 1) $dumpvars(0, >cpu_tb.cpu0.cpu_dp.cpu_regs.data[idx]); > >It works, but 2 things happen. >1] A warning shows up: VCD warning: array word >cpu_tb.cpu0.cpu_dp.cpu_regs.data[0] will conflict with an escaped >identifier. >2] In GTKWave I have something like this in SST window: \data[0][31:0] > >Is there any solution about that? > >Thanks in advance and sorry for my English. > >------------------------------------------------------------------------------ >Sponsored by Intel(R) XDK >Develop, test and display web and hybrid apps with a single code base. >Download it for free now! >http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >_______________________________________________ >Iverilog-devel mailing list >Ive...@li... >https://lists.sourceforge.net/lists/listinfo/iverilog-devel > > ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Iverilog-devel mailing list Ive...@li... https://lists.sourceforge.net/lists/listinfo/iverilog-devel |