From 454b2294df5c4ada83c511f334694b929c286059 Mon Sep 17 00:00:00 2001 From: jand Date: Wed, 12 Dec 2007 15:16:29 +0000 Subject: [PATCH] inout ports --- myhdl/conversion/_toVHDL.py | 4 +++- myhdl/test/toVHDL/test_fsm.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/myhdl/conversion/_toVHDL.py b/myhdl/conversion/_toVHDL.py index d73c589b..2a2964f7 100644 --- a/myhdl/conversion/_toVHDL.py +++ b/myhdl/conversion/_toVHDL.py @@ -195,7 +195,9 @@ def _writeModuleHeader(f, intf): warnings.warn("%s: %s" % (_error.OutputPortRead, portname), category=ToVHDLWarning ) - f.write("\n %s: out %s%s" % (portname, p, r)) + 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: warnings.warn("%s: %s" % (_error.UnusedPort, portname), diff --git a/myhdl/test/toVHDL/test_fsm.py b/myhdl/test/toVHDL/test_fsm.py index 8ff5fecb..0c01978f 100644 --- a/myhdl/test/toVHDL/test_fsm.py +++ b/myhdl/test/toVHDL/test_fsm.py @@ -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):