rafimiet
Member level 5
I have a std_logic_vector signal, namely A of 2048 bits, 2047 downto 0, I want to locate the positions (addresses) of '1' bits in the vector. These addresses need to be stored into an array B in ascending order i.e. address 0 should contain the address of first 1 encountered as we go 0 to 2047 of signal A. But this whole process should take me as minimum clock cycles as possible.