From dd4ae939429b44776338e544c02b7345f1b6a9cf Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 13 Sep 2022 13:34:28 +0200 Subject: [PATCH] Fix port direction for output port declaration lists with default value For output port lists with a default value for the first port declaration all subsequent port declarations are declared as inout ports. This is due to a small typo when setting the `port_declaration_context` port direction. Fix this to make sure all ports in the port declaration list are declared as output ports. Signed-off-by: Lars-Peter Clausen --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 1295aaa94..e155d6272 100644 --- a/parse.y +++ b/parse.y @@ -4524,7 +4524,7 @@ port_declaration } ptmp = pform_module_port_reference(@2, name); pform_module_define_port(@2, name, NetNet::POUTPUT, use_type, $4, $1); - port_declaration_context.port_type = NetNet::PINOUT; + port_declaration_context.port_type = NetNet::POUTPUT; port_declaration_context.port_net_type = use_type; port_declaration_context.data_type = $4;