mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
No need for type conversion on constants
--HG-- branch : 0.8-dev
This commit is contained in:
parent
2fac1b8bde
commit
5b4afee538
@ -849,7 +849,8 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
|
||||
if isinstance(lhs.value, ast.Name):
|
||||
sig = self.tree.symdict[lhs.value.id]
|
||||
if not sig._numeric:
|
||||
convOpen, convClose = "std_logic_vector(", ")"
|
||||
if not isinstance(rhs, ast.Num):
|
||||
convOpen, convClose = "std_logic_vector(", ")"
|
||||
self.write(' <= ')
|
||||
self.SigAss = False
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user