MDCT manual conversion, module instantiation and flatting the port arrays