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 agouse two single port rams one for s1 and one for s2 then address subtraction applies.
If you also want to write inputs to the rams then use two dual port rams again one for s1 rd/wr and one for s2 rd/wr. It really depends how you are going to get your inputs s1/s2 in the first place which you haven't told us yet.