Skip to content

Commit 555ce33

Browse files
committed
Update python generator when it generates the 2 simple ports for a compound port.
1 parent cd01138 commit 555ce33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocks/mrc_port.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ export const pythonFromBlock = function (
149149
break;
150150
}
151151
code += `CompoundPort(port_type = port.PortType.${block.portType_},`;
152-
code += `\\ \n${generator.INDENT}port1 = port.Port(port_type = port.PortType.${port1Type}, location = ${ports[0]}), `;
153-
code += `\\ \n${generator.INDENT}port2 = port.Port(port_type = port.PortType.${port2Type}, location = ${ports[1]}))`;
152+
code += `\\ \n${generator.INDENT}port1 = port.SimplePort(port_type = port.PortType.${port1Type}, location = ${ports[0]}), `;
153+
code += `\\ \n${generator.INDENT}port2 = port.SimplePort(port_type = port.PortType.${port2Type}, location = ${ports[1]}))`;
154154
}
155155

156156
return [code, Order.ATOMIC];

0 commit comments

Comments
 (0)