Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 Discussions

Export partition netlist with blackbox

Altera_Forum
Honored Contributor II
1,579 Views

Hello, 

 

I need to export post-synthesis netlist of entity A (all written in VHDL) as *.qxp 

Deep in hierarchy of entity A there is instance entity B (written in Verilog). 

 

The entity B should be defined when netlist of component A is used, so that component B could be defined later. 

 

Now I have VHDL component of entity B defined in file where entity B is instantiated, but Quartus Analysis & Synthesis complaints 

that I have no architecture defined for entity B (unless I actualy provide Verilog code) but I don't want to define it, I want to have blackbox there instead. 

 

I have tried approach that I would define entity & empty architecture instead of component, but then all signals to this entity are optimized out and I don't really know how to replace it then with actual Verilog component when it is already defined as empty architecture... 

 

Is there any way to export post-synthesis netlist with blackbox inside? 

Also I need to do it automatically with TCL script, not in GUI. 

 

Now I do this, but it does not go through the first command  

execute_flow -analysis_and_elaboration create_partition -partition A -contents A export_partition -partition A -post_fit off -post_synth on -routing off -qxp A.qxp  

 

Thank you
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
841 Views

I have found somewhere here in forums that I can do placeholder empty architecture, then partition design and set that component B to netlist type Empty. 

 

The problem is that I need to set multiple instances of B thorough hierarchy of component A, it is fine with GUI, but I need to automatize it with TCL. 

 

I have found that there are create_partition and set_partition commands in ::quartus::incremental_compilation TCL package, this is great, it allows me to do precisely what I described earlier... 

BUT I need something that will allow me to search in hierarchy of A to find all instances of B and set netlist to Empty, because component A can be parametrized which changes number of B instances (and their names) in it so it needs to be generic... 

Is there something to do it? 

 

And the second question is, does this approach really do what I want to accomplish? 

 

Thank you
0 Kudos
Reply