perm_net changed int used for casting to an appropiate range for synthesis