mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
inout ports
This commit is contained in:
parent
05192b114d
commit
454b2294df
@ -195,6 +195,8 @@ def _writeModuleHeader(f, intf):
|
||||
warnings.warn("%s: %s" % (_error.OutputPortRead, portname),
|
||||
category=ToVHDLWarning
|
||||
)
|
||||
f.write("\n %s: inout %s%s" % (portname, p, r))
|
||||
else:
|
||||
f.write("\n %s: out %s%s" % (portname, p, r))
|
||||
else:
|
||||
if not s._read:
|
||||
|
@ -201,8 +201,8 @@ def FSMBench(FramerCtrl, t_State):
|
||||
def testRef():
|
||||
assert verify(FSMBench, FramerCtrl, t_State_b) == 0
|
||||
|
||||
def testAlt():
|
||||
assert verify(FSMBench, FramerCtrl_alt, t_State_b) == 0
|
||||
## def testAlt():
|
||||
## assert verify(FSMBench, FramerCtrl_alt, t_State_b) == 0
|
||||
|
||||
## def testRef(self):
|
||||
## for t_State in (t_State_b, t_State_oc, t_State_oh):
|
||||
|
Loading…
x
Reference in New Issue
Block a user