title: How to measure distance between two data in vhdl
body: <p>Calculate the distance between the position of each element in a list1 and the position of the same element in list2 then find the normalized distance in vhdl
  First, we will make mem1 (consist of addresses for every data input) i.e address from 1,2,3,4.... to end of the mem1 data input,ok
  mem2 (consist of addresses for every data input ) i.e address from 1,2,3,4.... t0 end of the mem2 data input,ok
  Check if any of the data input from mem1 = any data input from mem2 .
  I.e. The position of each element in mem1 and the position of the same element in mem2
  So the address to the same element will be different in the two mem
  The address difference will be the distance measure.
  I.e searching for similarity, the compute the distance between list1 and list2
  How I can do this in vhdl code???
  Any help please???</p>