@@ -192,8 +192,16 @@ def showVersion():
192192 optparser = OptionParser ()
193193 optparser .add_option ("-v" ,"--version" ,action = "store_true" ,dest = "showversion" ,
194194 default = False ,help = "Show the version" )
195+ optparser .add_option ("-I" ,"--include" ,dest = "include" ,action = "append" ,
196+ default = [],help = "Include path" )
197+ optparser .add_option ("-D" ,dest = "define" ,action = "append" ,
198+ default = [],help = "Macro Definition" )
195199 optparser .add_option ("-t" ,"--top" ,dest = "topmodule" ,
196200 default = "TOP" ,help = "Top module, Default=TOP" )
201+ optparser .add_option ("--nobind" ,action = "store_true" ,dest = "nobind" ,
202+ default = False ,help = "No binding traversal, Default=False" )
203+ optparser .add_option ("--noreorder" ,action = "store_true" ,dest = "noreorder" ,
204+ default = False ,help = "No reordering of binding dataflow, Default=False" )
197205 optparser .add_option ("-s" ,"--search" ,dest = "searchtarget" ,action = "append" ,
198206 default = [],help = "Search Target Signal" )
199207 optparser .add_option ("-o" ,"--output" ,dest = "outputfile" ,
@@ -218,7 +226,11 @@ def showVersion():
218226 if len (filelist ) == 0 :
219227 showVersion ()
220228
221- analyzer = VerilogDataflowAnalyzer (filelist , options .topmodule )
229+ analyzer = VerilogDataflowAnalyzer (filelist , options .topmodule ,
230+ noreorder = options .noreorder ,
231+ nobind = options .nobind ,
232+ preprocess_include = options .include ,
233+ preprocess_define = options .define )
222234 analyzer .generate ()
223235
224236 directives = analyzer .get_directives ()
0 commit comments