1. A programmable interconnect network for an array of logic cells, comprising a plurality of switch boxes being connected in a tree structure and providing selection and connection for the logic cells, switch boxes located at the lowest level of the tree structure are connected to the logic cells; said plurality of switch boxes comprises peripheral switch boxes, at least one of the peripheral switch boxes is connected to an external logic.