port_decl
[sv2nmigen.git] / parse_sv.py
index 3df4571b0d97e040d9b39a2b00dbfb3c6a4959cb..bd760f5e506ebaa059ad1d679ee147ba63906e2d 100644 (file)
@@ -109,7 +109,7 @@ class DataType:
         self.typ = typ
         self.signed = signed
 
-def port_decl(comment, dt, name):
+def port_decl_do_not_use(comment, dt, name):
     if dt is None or dt.dims is None:
         width = '' # width: 1
     else:
@@ -4758,9 +4758,8 @@ def p_list_of_port_declarations_5(p):
 def p_port_declaration_1(p):
     '''port_declaration : attribute_list_opt K_input net_type_opt data_type_or_implicit IDENTIFIER dimensions_opt '''
     if(parse_debug): print('port_declaration_1 FIXME', list(p))
-    # XXX TODO: python AST
     comment, dt, name = p[2], p[4], p[5]
-    p[0] = port_decl(comment, dt, name)
+    p[0] = absyn.port_decl(comment, dt, name)
     # { Module::port_t*ptmp;
     #  perm_string name = lex_strings.make(p[5]);
     #  data_type_t*use_type = p[4];
@@ -4831,9 +4830,8 @@ def p_port_declaration_4(p):
 def p_port_declaration_5(p):
     '''port_declaration : attribute_list_opt K_output net_type_opt data_type_or_implicit IDENTIFIER dimensions_opt '''
     if(parse_debug): print('port_declaration_5 FIXME', list(p))
-    # XXX TODO: python AST
     comment, dt, name = p[2], p[4], p[5]
-    p[0] = port_decl(comment, dt, name)
+    p[0] = absyn.port_decl(comment, dt, name)
     # { Module::port_t*ptmp;
     #  perm_string name = lex_strings.make(p[5]);
     #  data_type_t*use_dtype = p[4];