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 agosorry ,,, i found it
i should change DATA : std_logic_vector (0 to 6) ; ADDR : std_logic_vector (0 to 6)) to DATA : integer :=7 ; ADDR : integer :=7; but i ask you if i can enter data as in the table i mean word (asd,sdf,rto....etc) and is it right to use dual port ram thanks a lot