@@ -266,7 +266,7 @@ def _createAlwaysinfo(self, node, scope):
266266 for l in node .sens_list .list :
267267 if l .sig is None :
268268 continue
269- if isinstance (l .sig , pyverilog . vparser . ast . Pointer ):
269+ if isinstance (l .sig , Pointer ):
270270 signame = self ._get_signal_name (l .sig .var )
271271 bit = int (l .sig .ptr .value )
272272 else :
@@ -1561,24 +1561,24 @@ def _walk_in_first_ifbranch(self, node):
15611561 elif isinstance (node , IfStatement ):
15621562 self ._walk_in_first_ifbranch (node .true_statement )
15631563 elif isinstance (node , NonblockingSubstitution ):
1564- self .load_const_dict [node .left ] = self .is_const (node .right )
1564+ self .load_const_dict [node .left ] = self ._is_const (node .right )
15651565 else :
15661566 raise Exception ('Pyverilog unknown error' )
15671567
1568- def is_const (self , node ):
1568+ def _is_const (self , node ):
15691569 if isinstance (node , Identifier ):
15701570 node_chain = self .get_scopechain (node )
15711571 if node_chain in self .dataflow .terms .keys ():
15721572 #Parameter is regard as constant.
15731573 return 'Parameter' in self .dataflow .terms [node_chain ].termtype
15741574 elif hasattr (node , 'children' ):
15751575 for child in node .children ():
1576- if not self .is_const (child ):
1576+ if not self ._is_const (child ):
15771577 return False
15781578 else :
15791579 return True
15801580 elif isinstance (node , Rvalue ):
1581- self .is_const (node .var )
1581+ self ._is_const (node .var )
15821582 elif hasattr (node , 'value' ):
15831583 return True
15841584 else :
@@ -1645,7 +1645,7 @@ def _make_rst_info(self, node):
16451645 elif hasattr (node .ptr , 'value' ):
16461646 self .rst_bit = int (node .ptr .value )
16471647 self ._make_rst_info (node .var )
1648- elif isinstance (node , pyverilog . vparser . ast . Identifier ):
1648+ elif isinstance (node , Identifier ):
16491649 self .rst_name = str (node )
16501650
16511651 def _has_if_branch (self , node ):
0 commit comments