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

Single Consolidated NetList

Altera_Forum
Honored Contributor II
1,251 Views

I have a number of verilog netlists (different files)(generally large in size >100MB), 

 

Now I have to generate a single consolidated netlist (a single file), after removing common modules. (i.e module having same names.). I mean the modules having same names should come only once. 

I tried to create a list of modules in each file. Then from them I created a final list after removing duplicates and also the list has information from which file the particular module has to be picked. 

 

Now I start processing each Input verilog netlist(file) and copy the module(line by line) if it is in my list into a new FILE. Similarly I process for all input files. 

 

This process gives me the correct output, however it is very slow and takes huge time in case netlist size reaches 500MB and around 10 such netlists are there.  

 

Is there any fast method for this. I have done this in PERL , and have use PERL::tie for reading the files. 

 

Please ask if I have been not clear.  

 

Thanks 

Rahul Gupta 

India
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
553 Views

 

--- Quote Start ---  

I have a number of verilog netlists (different files)(generally large in size >100MB), 

 

Now I have to generate a single consolidated netlist (a single file), after removing common modules. (i.e module having same names.). I mean the modules having same names should come only once. 

I tried to create a list of modules in each file. Then from them I created a final list after removing duplicates and also the list has information from which file the particular module has to be picked. 

 

Now I start processing each Input verilog netlist(file) and copy the module(line by line) if it is in my list into a new FILE. Similarly I process for all input files. 

 

This process gives me the correct output, however it is very slow and takes huge time in case netlist size reaches 500MB and around 10 such netlists are there.  

 

Is there any fast method for this. I have done this in PERL , and have use PERL::tie for reading the files. 

 

Please ask if I have been not clear.  

 

Thanks 

Rahul Gupta 

India 

--- Quote End ---  

 

 

Hi, 

 

I'm not sure that this will work in all cases. If we assume that your synthesis tool optimized over module boundaries, you can not be sure that e.g. the interface of the 

"common" modules are still the same in the different netlists. I would unify all modules in each netlist with e.g an extension .  

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
553 Views

The unification has already been done in case the interface is different for similar module names. 

 

My problem is to reduce run-time for copying large net lists in a single file.
0 Kudos
Reply