Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHow to measure distance between two data
really i have a problem for measure the distance between these data as the following.could i can make it in vhdl from enter this data to vhdl to measure distance between them. d(s1,s2)=(1+1+0+1+1)...
Altera_Forum
Honored Contributor
12 years agoi can't do this code in memory like register
i try but failed process(addr_a) begin for i in data_a'range loop for j in data_a'range loop if data_a(i) = data_b(j) then d <= addr_a - addr_b; end if ; distance <= d; end loop; end loop;