UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
3,677 Views
Registered: ‎07-21-2017

vhdl component dependency graph

Is there a tool that can automatically parse VHDL files from a large project and make a dependency graph of files and components?

Frank

0 Kudos
9 Replies
Voyager
Voyager
3,671 Views
Registered: ‎06-24-2013

Re: vhdl component dependency graph

Hey @travellingwave,

 

Is there a tool that can automatically parse VHDL files from a large project and make a dependency graph of files and components?

Yes, there is! Check out VUnit.

 

Best,

Herbert

-------------- Yes, I do this for fun!
3,669 Views
Registered: ‎07-21-2017

Re: vhdl component dependency graph

Thanks! I'm trying it out. I am familiar with python, so I could check up the source.

Frank

0 Kudos
Voyager
Voyager
3,667 Views
Registered: ‎06-24-2013

Re: vhdl component dependency graph

You're welcome!

 

All the best,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
3,592 Views
Registered: ‎07-21-2017

Re: vhdl component dependency graph

Herbert,

I am having trouble to find the graph capability in

https://vunit.github.io/documentation.html

 

Vunit requires a simulator.https://vunit.github.io/cli.html#simulator-selection

the documentation talks about  activehdlrivieraproghdl, modelsim.

Is any with command line interface to a simulator already included in Vivado? When I installed GHDL and tried to run a vunit uart example, I get an error message saying ghdl can't find std library.

 

Thanks,

Frank

 

0 Kudos
Voyager
Voyager
3,586 Views
Registered: ‎06-24-2013

Re: vhdl component dependency graph

Hey @travellingwave,

 

I am having trouble to find the graph capability ...

Check out project.py and the create_dependency_graph() function.

 

I get an error message saying ghdl can't find std library.

GHDL should work fine (including the std library) what options are you using?

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
3,580 Views
Registered: ‎07-21-2017

Re: vhdl component dependency graph

Hello @hpoetzl

 

I found create_dependency_graph() in the Project class. I can't find information to use this class. Can you please post a short example script? 

 

My initial mistake is obvious. I ran python run.py without any options from the examples\vhdl\uart\ in the Windows command prompt.

 

Now, I try the examples\vhdl\user_guide\ mentioned in https://vunit.github.io/cli.html#example-session With python run.py -v lib.tb_example.all, I still get

 errorCapture.PNG

The python run.py -l did work correctly as shown on the github page.

Thanks,

Frank

 

0 Kudos
3,579 Views
Registered: ‎07-21-2017

Re: vhdl component dependency graph

I ran successfully the GHDL example in:

http://ghdl.readthedocs.io/en/latest/Starting_with_GHDL.html

I got the gtkwave waveforms too.

Frank

0 Kudos
Visitor lasplund
Visitor
3,443 Views
Registered: ‎08-25-2017

Re: vhdl component dependency graph

Please look at the VUnit documentation for both the get_compile_order and get_implementation_subset methods. Dependency means different things for compilation and elaboration

0 Kudos
Highlighted
Visitor lasplund
Visitor
3,439 Views
Registered: ‎08-25-2017

Re: vhdl component dependency graph

create_dependency_graph is not part of the public API and should be avoided. What is your for the dependency information? Can it be solved with the public get_compile_order or get_implementation_subset methods?

0 Kudos