UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer ipunished
Observer
5,847 Views
Registered: ‎03-15-2011

euclidean distance?

Is euclidean distance calculation possible in verilog (since just now I found out that verilog does not handle double arrays very well)

 

and can it be used in spaartan 3e board? any library file for it?

 

Thank you

0 Kudos
4 Replies
Highlighted
Scholar drjohnsmith
Scholar
5,838 Views
Registered: ‎07-09-2009

Re: euclidean distance?

Hi

 

why do you say verilog does not handle double arrays very well ?

 

could it be that your looking at this as a programing problme as opposed to a hardware design ?

 

Tags (1)
0 Kudos
Observer ipunished
Observer
5,823 Views
Registered: ‎03-15-2011

Re: euclidean distance?

coz any book on verilog I read, tells me the same that verilog does not handle double arrays very well. Also I have to perform euclidean distance between two double arrays, and since for can only be used in simmulation and not in implementation then i dont know how to write the code for it..

 

would it have to be in an always block?

 

also can you please tell me what you mean by:



could it be that your looking at this as a programing problme as opposed to a hardware design ?

 




0 Kudos
Teacher rcingham
Teacher
5,819 Views
Registered: ‎09-09-2010

Re: euclidean distance?

What exactly do you mean by "double array"?

------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos
Historian
Historian
5,817 Views
Registered: ‎02-25-2008

Re: euclidean distance?


@ipunished wrote:

coz any book on verilog I read, tells me the same that verilog does not handle double arrays very well. Also I have to perform euclidean distance between two double arrays, and since for can only be used in simmulation and not in implementation then i dont know how to write the code for it..


 

 

Do you mean two-dimensional arrays, or arrays of double-precision floating-point numbers?

 

 


would it have to be in an always block?


 

Depends on whether the code is synchronous or combinatorial.

 

 

----------------------------Yes, I do this for a living.
0 Kudos