@@ -281,27 +281,8 @@ def get_ope(self):
281
281
if len (ref_cnt ) != 1 :
282
282
raise Exception ('Found redundunt condition description @' + term_name )
283
283
ref_cnt = tuple (ref_cnt )[0 ]
284
- if ref_cnt .mother_node .operator in self .compare_ope :
285
- root_ope_info_dict [ref_cnt , value ] = root_ope_info (ref_cnt .mother_node , 0 , [1 ,], branch )
286
- elif ref_cnt .mother_node .operator == 'Ulnot' and ref_cnt .mother_node .children ()[0 ].operator in self .compare_ope :
287
- root_ope_info_dict [ref_cnt , value ] = root_ope_info (ref_cnt .mother_node .children ()[0 ], 0 , [1 ,], branch )
288
- elif isinstance (ref_cnt .mother_node , pyverilog .dataflow .dataflow .DFPartselect ):
289
- if ref_cnt .mother_node .mother_node .operator in self .compare_ope :
290
- root_ope = ref_cnt .mother_node .mother_node
291
- cond_lsb = ref_cnt .mother_node .lsb
292
- inverted = False
293
- elif ref_cnt .mother_node .mother_node .operator == 'Ulnot' and \
294
- ref_cnt .mother_node .mother_node .children ()[0 ].operator in self .compare_ope :
295
- root_ope = ref_cnt .mother_node .mother_node .children ()[0 ]
296
- cond_lsb = ref_cnt .mother_node .children ()[0 ].lsb
297
- inverted = True
298
- else :
299
- continue
300
- if ref_cnt .mother_node .msb == self .msb :
301
- diff_list = [1 ,]
302
- else :
303
- diff_list = [i for i in range (1 ,self .msb - ref_cnt .mother_node .msb )]
304
- root_ope_info_dict [ref_cnt , value ] = root_ope_info (root_ope , cond_lsb , diff_list , branch )
284
+ root_ope = ref_cnt .mother_node
285
+ root_ope_info_dict [ref_cnt , value ] = root_ope_info (root_ope , 0 , [1 ,], branch )
305
286
306
287
for ref_cnt , value in root_ope_info_dict .keys ():
307
288
root_info = root_ope_info_dict [ref_cnt , value ]
@@ -361,6 +342,6 @@ def calc_cnt_period(self):
361
342
return 2 ** (self .msb + 1 ) - 1
362
343
363
344
if __name__ == '__main__' :
364
- cnt_analyzer = CntAnalyzer ("../testcode/norm_cnt2 .v" )
345
+ cnt_analyzer = CntAnalyzer ("../testcode/norm_cnt3 .v" )
365
346
cnt_analyzer .show ()
366
347
0 commit comments