mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Merge pull request #115 from cfelton/verilog_inout
Added inout pot declaration to Verilog conversion for TristateSignals
This commit is contained in:
commit
c7d92c471c
@ -258,7 +258,10 @@ def _writeModuleHeader(f, intf, doc):
|
||||
warnings.warn("%s: %s" % (_error.OutputPortRead, portname),
|
||||
category=ToVerilogWarning
|
||||
)
|
||||
print("output %s%s%s;" % (p, r, portname), file=f)
|
||||
if isinstance(s, _TristateSignal):
|
||||
print("inout %s%s%s;" % (p, r, portname), file=f)
|
||||
else:
|
||||
print("output %s%s%s;" % (p, r, portname), file=f)
|
||||
if s._driven == 'reg':
|
||||
print("reg %s%s%s;" % (p, r, portname), file=f)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user