1. A method of connecting communication paths of a plurality of peripherals to a plurality of input/output (I/O) pins by a plurality of muxes, wherein each of said plurality of muxes comprises a plurality of mux options, said method comprising: receiving data indicating the mux options of different muxes at which the communication paths of each of said plurality of peripherals are connected; selecting a first connection path to a first mux, wherein said first connection path is between a first peripheral and a first mux option on said first mux; generating an index based on an identifier of said first peripheral and said first mux option; determining a location in a data structure in a memory based on said index; checking whether information for a connection is already present at said location; storing said identifier of said first mux at said location if said information is not present at said location; and adding said identifier of said first mux to a list of muxes previously stored associated with said index if said information is present at said location.