MikeStrom Posted December 2, 2015 Report Share Posted December 2, 2015 Hi, I'm new to SystemC, but have worked with Verilator/C++ for quite a while. We are now moving to Verilator/SystemC and have problems creating hierarchical vcd dumps from SystemC native vcd generation. The only hint i got from the documentation is to use dots to separate hierarchical levels, but it does not create a hierarchy in the vcd files. I attached two screen dumps from gtkwave. The first one is a vcd generated from Verilator, the second is a vcd generated from SystemC. Any suggestions are most welcome. Regards, Mike Quote Link to comment Share on other sites More sharing options...
Hans64 Posted December 5, 2015 Report Share Posted December 5, 2015 Hi Mike,The dot notation should work, I would suggest you have a look at your vcd file to see if the hierarchy is recorded, you should see something like:sc_trace(fp,top.u1.signalx,"signalx"); $scope module top $end $scope module u1 $end $var wire 1 ^ signalx $end $upscope $end$upscope $endgood luck, Hans. Quote Link to comment Share on other sites More sharing options...
MikeStrom Posted December 14, 2015 Author Report Share Posted December 14, 2015 Hi Mike, The dot notation should work, I would suggest you have a look at your vcd file to see if the hierarchy is recorded, you should see something like: sc_trace(fp,top.u1.signalx,"signalx"); $scope module top $end $scope module u1 $end $var wire 1 ^ signalx $end $upscope $end $upscope $end good luck, Hans. Thanks Hans, I noticed that no hierarchy is created by SystemC in the vcd files. However, i found this utility that adds proper hierarchy to the vcd. It works, except that some incompatibility prevents optimization of the vcd by gtkwave. Am i having this problem because I'm doing something wrong? Chers, Mike Quote Link to comment Share on other sites More sharing options...
Hans64 Posted December 14, 2015 Report Share Posted December 14, 2015 Hi Mike,You are correct (I was wrong) for some reason OSCI puts everything under the same (SystemC) scope.You can use your utility or patch OSCI (have not tried it myself):https://github.com/yTakatsukasa/misc/tree/master/systemc-2.3_vcd_hierRegards,Hans. Quote Link to comment Share on other sites More sharing options...
MikeStrom Posted December 14, 2015 Author Report Share Posted December 14, 2015 Hi Hans, thanks a lot for the patch. Will try it out! Cheers, Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.