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 ago --- Quote Start --- how can i make the match between the two rams. i search but not found any thing help me --- Quote End --- read address 0 of ram1, save it, then all addresses of ram2 till a match occurs then distance is address2 - 0 then read address 1 of ram1, then all addresses of ram2 until a match occurs then distance is address2 - 1 and so on. (assuming you don't copy contents to registers)