A system on a chip, SoC, comprising: a first hardware logic block; a second hardware logic block; and a network on a chip, NoC, comprising: an ingress logic block connected to the first hardware logic block, an egress logic block connected to the second hardware logic block, and a plurality of interconnected switches connecting the ingress logic block to the egress logic block, wherein the ingress logic block comprises a first encoder configured to convert received data compatible with a first interface communication protocol into a first packet and a second encoder configured to convert received data compatible with a second interface communication protocol into a second packet, wherein the ingress logic block is configured to activate one of the first and second encoders and deactivate the other encoder in response to updating a first configuration register corresponding to the ingress logic, wherein the egress logic block comprises a first decoder configured to convert the first packet into data compatible with the first interface communication protocol and a second decoder configured to convert the second packet into data compatible with the second interface communication protocol, wherein the egress logic block is configured to activate one of the first and second decoders and deactivate the other decoder in response to updating a second configuration register corresponding to the egress logic. a first hardware logic block; a second hardware logic block; and a network on a chip, NoC, comprising: an ingress logic block connected to the first hardware logic block, an egress logic block connected to the second hardware logic block, and a plurality of interconnected switches connecting the ingress logic block to the egress logic block, wherein the ingress logic block comprises a first encoder configured to convert received data compatible with a first interface communication protocol into a first packet and a second encoder configured to convert received data compatible with a second interface communication protocol into a second packet, wherein the ingress logic block is configured to activate one of the first and second encoders and deactivate the other encoder in response to updating a first configuration register corresponding to the ingress logic, wherein the egress logic block comprises a first decoder configured to convert the first packet into data compatible with the first interface communication protocol and a second decoder configured to convert the second packet into data compatible with the second interface communication protocol, wherein the egress logic block is configured to activate one of the first and second decoders and deactivate the other decoder in response to updating a second configuration register corresponding to the egress logic. an ingress logic block connected to the first hardware logic block, an egress logic block connected to the second hardware logic block, and a plurality of interconnected switches connecting the ingress logic block to the egress logic block, wherein the ingress logic block comprises a first encoder configured to convert received data compatible with a first interface communication protocol into a first packet and a second encoder configured to convert received data compatible with a second interface communication protocol into a second packet, wherein the ingress logic block is configured to activate one of the first and second encoders and deactivate the other encoder in response to updating a first configuration register corresponding to the ingress logic, wherein the egress logic block comprises a first decoder configured to convert the first packet into data compatible with the first interface communication protocol and a second decoder configured to convert the second packet into data compatible with the second interface communication protocol, wherein the egress logic block is configured to activate one of the first and second decoders and deactivate the other decoder in response to updating a second configuration register corresponding to the egress logic.