vongy
Newbie level 6
please help me how to cacl the number ''1' in the input data in only one clock cycle?
for example:
if input [31:0] = 32'hf then output data = 4;
if input [31:0] = 32'7f then output data = 7;
please not use too many adder !
please not use for loop!
thanks
for example:
if input [31:0] = 32'hf then output data = 4;
if input [31:0] = 32'7f then output data = 7;
please not use too many adder !
please not use for loop!
thanks