mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
int, long
This commit is contained in:
parent
3a92ce3039
commit
bfe2b8fa9d
@ -108,7 +108,7 @@ def _analyzeGens(top, genNames):
|
||||
s = inspect.getsource(f)
|
||||
s = s.lstrip()
|
||||
ast = compiler.parse(s)
|
||||
# print ast
|
||||
print ast
|
||||
ast.sourcefile = inspect.getsourcefile(f)
|
||||
ast.lineoffset = inspect.getsourcelines(f)[1]-1
|
||||
ast.symdict = f.f_globals.copy()
|
||||
|
@ -355,6 +355,8 @@ class _ConvertVisitor(_ToVerilogMixin):
|
||||
self.require(node, val is not None, "cannot calculate len")
|
||||
self.write(`val`)
|
||||
return
|
||||
elif f in (int, long):
|
||||
opening, closing = '', ''
|
||||
elif type(f) in (ClassType, type) and issubclass(f, Exception):
|
||||
self.write(f.__name__)
|
||||
elif f in (posedge, negedge):
|
||||
|
Loading…
x
Reference in New Issue
Block a user