EPWave: Multidimensional Signals / packed / unpacked arrays

198 views
Skip to first unread message

Abarajithan Gnaneswaran

unread,
Aug 14, 2022, 1:29:52 AM8/14/22
to EDA Playground
Hi,

I would like to view and debug signals like these:
  • logic [7:0] unpacked_array [3:0]
  • logic [3:0][7:0] packed_array
and their multidimensional counterparts. But
  • $dumpvars(0,  unpacked_array [i]) in a loop gives an error: Automatic variable may not be used in non-procedural context.
  • $dumpvars(0,  packed_array]) shows it as a flat 8x4=32 bit vector. Unreadable
  • $dumpvars avoids multidimensional arrays
Any solutions?

I'm developing some open source teaching materials to introduce systemverilog to more people.

Thank you,
Aba

Stefano Devecchi

unread,
Aug 14, 2022, 5:50:23 AM8/14/22
to Abarajithan Gnaneswaran, EDA Playground
Hi Abarajithan, 
Please share your code. I am doing the following: https://www.edaplayground.com/x/rVsk
and I see this from the waveforms: 

image.png

And it looks pretty good to me. 
Cheers,
Stefano 


--
You received this message because you are subscribed to the Google Groups "EDA Playground" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eda-playgroun...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eda-playground/e5a0e8b6-09cc-406a-bc2b-5d5146854cbcn%40googlegroups.com.

Abarajithan Gnaneswaran

unread,
Aug 14, 2022, 8:10:00 AM8/14/22
to EDA Playground
Great. It seems Xcelium dumps unpacked arrays as well. I was using VCS
Reply all
Reply to author
Forward
0 new messages