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 <lars@metafoo.de>
This commit is contained in:
parent
f881baeef1
commit
dd4ae93942
2
parse.y
2
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue