tbl0=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],0],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl0,{a,b,c,d,e,f,g,h}],"CNF"]

tbl1=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],1],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl1,{a,b,c,d,e,f,g,h}],"CNF"]

tbl2=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],2],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl2,{a,b,c,d,e,f,g,h}],"CNF"]

tbl3=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],3],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl3,{a,b,c,d,e,f,g,h}],"CNF"]

tbl4=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],4],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl4,{a,b,c,d,e,f,g,h}],"CNF"]

tbl5=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],5],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl5,{a,b,c,d,e,f,g,h}],"CNF"]

tbl6=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],6],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl6,{a,b,c,d,e,f,g,h}],"CNF"]

tbl7=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],7],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl7,{a,b,c,d,e,f,g,h}],"CNF"]

tbl8=Table[PadLeft[IntegerDigits[i,2],8] ->If[Equal[DigitCount[i,2][[1]],8],1,0],{i,0,255}]

BooleanConvert[BooleanFunction[tbl8,{a,b,c,d,e,f,g,h}],"CNF"]