I want to design a combinatorial circuit for an fpga which will count the position of ones in a 16 bit vector.
eg1 if vector is 16'b0000_0000_0011_0101 then output should be
64'h0000_0000_0000_5420
eg2 if vector is 16'b0000_1010_0000_1010 then output should be
64'h0000_0000_0000_b931.
Please help.
Thanks in advance....
eg1 if vector is 16'b0000_0000_0011_0101 then output should be
64'h0000_0000_0000_5420
eg2 if vector is 16'b0000_1010_0000_1010 then output should be
64'h0000_0000_0000_b931.
Please help.
Thanks in advance....