+ ###### check each cell if "peripheral input/inout" then assign its wire ########
+ ## Here we check the direction of each signal in the dictionary.
+ ## We choose to keep the dictionary within the code and not user-input
+ ## since the interfaces are always standard and cannot change from user-to-user
+ ## plus reduces human-error as well :)
+ for i in range(0,len(line1)-1):
+ temp=line1[i+1].translate(None,digits)
+ x=dictionary.get(temp);
+ if(x==None):
+ print "Error: The signal : "+str(line1[i+1])+" in lineno: "+str(lineno)+"of pinmap.txt is not present in the current dictionary.\nSoln: Either update the dictionary or fix typo."
+ exit(1)
+ if(x=="input"):
+ pinmux=pinmux+input_wire.format(line1[0],i,line1[i+1])+"\n"
+ ################################################################################
+###########################################