// ************************************************
// Dump the contents of the memory to a file called
// dwmm_sram.dump in Verilog format
// ************************************************
low_addr = 'h0000;
high_addr = 'h7fff;
mem_dump(1, low_addr, high_addr, "dwmm_sram.dump", 1, status);
Hi,
Not sure how you usually dump, here is one way:
vcs -debug -f flist
./simv -ucli -do dump.tcl
-- dump.tcl ----
dump -aggregates -add /
run
exit
-----
dve -vpd vcdplus.vpd &
Of-course there are few other ways (interactive, $vcdplus calls etc.) - read their documentation or elaborate on how you do it and seek for assistance.
// ************************************************
// Dump the contents of the memory to a file called
// dwmm_sram.dump in Verilog format
// ************************************************
low_addr = 'h0000;
high_addr = 'h7fff;
mem_dump(1, low_addr, high_addr, "dwmm_sram.dump", 1, status);
AFAIK, NTB variables can't be dumped *today* in released versions (I've NDA that prevents me from telling more), however your design is still dumped - so no big deal. BTW, we (Ben Cohen, myself and Srinivasan) are working on a VMM paper for SNUG06 and found a nice work-around for this limitation - just add a debug SV-if (or Vera port/interface), update all your NTB var to IF signals - and there you go!
To be honest, I have sent solvnet questions regarding this, but their response is much slower than this forum, and their answer doesn't hit to the point.
Their answer was: "dumped the variable, and use vcs -gui to view it", which doesnt help anything.
I want to ask another question. when i want to display MDA (multi-dimensional array), i have to dump it at first. Can I just do it without dumping the result? Which means, I use DVE to open my testbench, and I can view the MDA from the waveform. I do not have to create VPD.
I have noticed that, after I dumped the file using the UCLI command, a new type of signal called MDA is shown. But if I didn't run the UCLI command, this type of signal doesn't appear.
Hi,
Let me know your VCS version to assist better.
More replies below..
yuenkit said:
To be honest, I have sent solvnet questions regarding this, but their response is much slower than this forum, and their answer doesn't hit to the point.
I have not used Solvnet but vcs_support@syn.. is quite useful as I found.
I want to ask another question. when i want to display MDA (multi-dimensional array), i have to dump it at first. Can I just do it without dumping the result? Which means, I use DVE to open my testbench, and I can view the MDA from the waveform. I do not have to create VPD.
I think what you are looking for is an INTERACTIVE Mode debug - try this flow:
1. vcs -debug -f flist
2. simv -gui
3. Select Hier of interest, right click, Select "Add Dump", check "Aggregates" dialog box
4. Run sim, go to hier of interest and Data pane should show the MDAs in design.
5. You can drang-n-drop etc. to Waveform/list/mem view etc.
Let me know if this is what you needed.
I have noticed that, after I dumped the file using the UCLI command, a new type of signal called MDA is shown. But if I didn't run the UCLI command, this type of signal doesn't appear.
I manage to get it! I jst realized that i missed one step: after add Dump, I have to click on the menu: Simulator > Start. Then only the data pane will be updated.
previously aft i add dump, i type: "run 10" to check. run the simulation in this way won't update the data pane.