We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52242eb commit e8940d4Copy full SHA for e8940d4
pyverilog/vparser/parser.py
@@ -2058,6 +2058,15 @@ def p_function_nowidth(self, p):
2058
p[4], lineno=p.lineno(1))
2059
p.set_lineno(0, p.lineno(1))
2060
2061
+ def p_function_integer(self, p):
2062
+ 'function : FUNCTION INTEGER ID SEMICOLON function_statement ENDFUNCTION'
2063
+ p[0] = Function(p[3],
2064
+ Width(IntConst('31', lineno=p.lineno(1)),
2065
+ IntConst('0', lineno=p.lineno(1)),
2066
+ lineno=p.lineno(1)),
2067
+ p[5], lineno=p.lineno(1))
2068
+ p.set_lineno(0, p.lineno(1))
2069
+
2070
def p_function_statement(self, p):
2071
'function_statement : funcvardecls function_calc'
2072
p[0] = p[1] + (p[2],)
0 commit comments