I know how to generate it with verilog-XL simulator. But I want to use script but not GUI to do this. I hate click click and click again.
Can you help me?
The way to do this (from batch) is to create a run directory once (with the GUI), and then you'll have a run directory containing the si.env file (and .vlogifrc file). You can then do:
si -batch -command netlist runDir
from the UNIX prompt.
In the run directory that you specified in the si command. There's not a single netlist by default - but there is a file listing all the input files that need to be passed to the simulator.
There is a variable you can set to tell it to concatenate everything (at least to concatenate all the modules netlisted from schematics etc - the modules which came from textual views are not merged into this single file). This could go in various places, including your .simrc file:
Search on for this variable for more details.