mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
merged with 0.9-dev
--HG-- branch : mep107
This commit is contained in:
commit
efde61be87
@ -40,7 +40,7 @@ bin -- returns a binary string representation.
|
||||
concat -- function to concat ints, bitstrings, bools, intbvs, Signals
|
||||
-- returns an intbv
|
||||
instances -- function that returns all instances defined in a function
|
||||
always --
|
||||
always --
|
||||
always_comb -- decorator that returns an input-sensitive generator
|
||||
always_seq --
|
||||
ResetSignal --
|
||||
@ -168,7 +168,7 @@ __all__ = ["bin",
|
||||
"toVerilog",
|
||||
"toVHDL",
|
||||
"conversion",
|
||||
"Tristate"
|
||||
"Tristate"
|
||||
]
|
||||
|
||||
|
||||
|
@ -40,6 +40,10 @@ class _AttrRefTransformer(ast.NodeTransformer):
|
||||
def visit_Attribute(self, node):
|
||||
self.generic_visit(node)
|
||||
|
||||
reserved = ('next', 'posedge', 'negedge', 'max', 'min', 'val', 'signed')
|
||||
if node.attr in reserved:
|
||||
return node
|
||||
|
||||
#Don't handle subscripts for now.
|
||||
if not isinstance(node.value, ast.Name):
|
||||
return node
|
||||
|
Loading…
x
Reference in New Issue
Block a user