Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- hi kaz i need your help ,plz if you remember the design you made before that measure the distance between two samples d(s1,s2). if i have 4 samples such as [ s1,s2,s3,s4 ] and i want to get the distances between every two samples, then i would have d(s1,s2),d(s1,s3),d(s1,s4),d(s2,s3),d(s2,s4)and d(s3,s4). what should i do 1 or 2 1- should i repeat the module of test 6 times and i would have 6 component of that module connecting together to get the 6 distances between every sample and the other ...or 2- should i use the module of test one time and store the distance in register and reset the module then measure the distance between the next two samples and store the the result in another register again and so on.... what can i do ?? so really i need your advice thanks a lot and i hope you answer this time!!! --- Quote End --- option 2 looks better. once you have s1/s2, s2/s3,s3/s4 distances then you can just add up as required e.g s1/s3 = sum of first two , s1/s4 = sum of all three