2 N_MUX
= 1 # number of selection lines for the mux per io
9 # == capture the number of IO cells required == #
10 pinmapfile
= open('pinmap.txt', 'r')
14 for lineno
, line
in enumerate(pinmapfile
):
17 if(len(line1
) == 2): # dedicated
18 dedicated_cells
.append(line1
)
20 muxed_cells
.append(line1
)
21 # ============================================= #
23 # check if the user has not screwed up by ensuring that no pin is
24 # present in both muxed and dedicated pins
27 # =========================================== #
28 N_IO
= len(dedicated_cells
) + len(muxed_cells
)
29 print("Max number of IO: " + str(N_IO
))
30 print("Muxed IOs: " + str(len(muxed_cells
)))
31 print("Dedicated IOs: " + str(len(dedicated_cells
)))
32 # ============================================ #