How to extract the hierarchy of the cells from the VCD file

  • Thread starter bipin.duggal@gmail.com
  • Start date
B

bipin.duggal@gmail.com

Guest
Hi All,

I want to extract the hierarchy of the cells (basically memory ) from
the VCD file.

For example If I have following modules top1, top2 , top3 , top4 and in
top4 I have my memory instantiated mem such that:
top1.top2.top3.top4.mem is the exact hierarchy of the memory.

I want to extract this hierarchy from the VCD file . I have dumped the
VCD file using following :
$vcddumpvars(0,"top1");

So I mean I have all the hierarchies and signals of all the modules
which are instantiated below the top1.

Please guide me as to how to extract the hierarchy of this module mem.

Looking forward to replies.

Thanks and Regards
Bipin
 
Hi Bipin,
You'll have to read the VCD file format. You'll then have to write a
perl script? to extract the information out and use it.
I have heared about perl parsers/scripts for VCD file. You could try
googling and find one if you're lucky!
I'll be happy to help you. Send me personal message in NARENKN AT
GMAIL DOT COM.
Regards,
Naren.

bipin.duggal@gmail.com wrote:
Hi All,

I want to extract the hierarchy of the cells (basically memory ) from
the VCD file.

For example If I have following modules top1, top2 , top3 , top4 and in
top4 I have my memory instantiated mem such that:
top1.top2.top3.top4.mem is the exact hierarchy of the memory.

I want to extract this hierarchy from the VCD file . I have dumped the
VCD file using following :
$vcddumpvars(0,"top1");

So I mean I have all the hierarchies and signals of all the modules
which are instantiated below the top1.

Please guide me as to how to extract the hierarchy of this module mem.

Looking forward to replies.

Thanks and Regards
Bipin
 
"bipin.duggal@gmail.com" <bipin.duggal@gmail.com> writes:

Please guide me as to how to extract the hierarchy of this module
mem.
If you just want to do it once you can inspect the VCD file with a
text editor.

You will see statements like this
$scope module sample $end

which takes you down the hierarchy and
$upscope $end

which takes you up in the hierarchy. Simply grep'ing for scope in the
VCD file should give you the information you want. However, it can be
tedious so you might write/get a program/script to do it like Naren
suggested.

Petter

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
Hi Bipin,
What I will do is just $dumpvars(0,top1.top2.top3.top4.mem); to dump
out the vcd. I don't know what is $vcddumpvars but I guess you are
refering to the same VCD format instead of extended vcd.


Best regards,
ABC

bipin.duggal@gmail.com wrote:
Hi All,

I want to extract the hierarchy of the cells (basically memory ) from
the VCD file.

For example If I have following modules top1, top2 , top3 , top4 and in
top4 I have my memory instantiated mem such that:
top1.top2.top3.top4.mem is the exact hierarchy of the memory.

I want to extract this hierarchy from the VCD file . I have dumped the
VCD file using following :
$vcddumpvars(0,"top1");

So I mean I have all the hierarchies and signals of all the modules
which are instantiated below the top1.

Please guide me as to how to extract the hierarchy of this module mem.

Looking forward to replies.

Thanks and Regards
Bipin
 
bipin.duggal@gmail.com wrote:
Hi All,

I want to extract the hierarchy of the cells (basically memory ) from
the VCD file.

For example If I have following modules top1, top2 , top3 , top4 and in
top4 I have my memory instantiated mem such that:
top1.top2.top3.top4.mem is the exact hierarchy of the memory.

I want to extract this hierarchy from the VCD file . ...
Why bother extracting from VCD file. Use the %m print format that
prints the hierarchical name of the current instance.

initial $display("memory hierarchy: %m"); in the module that is your
memory model would print the hierarchical name of each instance of your
memory model when you simulate your design.
 

Welcome to EDABoard.com

Sponsor

Back
Top