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.
2 parents 2878481 + e8940d4 commit 82d0a1dCopy full SHA for 82d0a1d
pyverilog/vparser/parser.py
@@ -2063,6 +2063,15 @@ def p_function_nowidth(self, p):
2063
p[4], lineno=p.lineno(1))
2064
p.set_lineno(0, p.lineno(1))
2065
2066
+ def p_function_integer(self, p):
2067
+ 'function : FUNCTION INTEGER ID SEMICOLON function_statement ENDFUNCTION'
2068
+ p[0] = Function(p[3],
2069
+ Width(IntConst('31', lineno=p.lineno(1)),
2070
+ IntConst('0', lineno=p.lineno(1)),
2071
+ lineno=p.lineno(1)),
2072
+ p[5], lineno=p.lineno(1))
2073
+ p.set_lineno(0, p.lineno(1))
2074
+
2075
def p_function_statement(self, p):
2076
'function_statement : funcvardecls function_calc'
2077
p[0] = p[1] + (p[2],)
0 commit comments