cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ipunished
Observer
Observer
6,313 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
drjohnsmith
Teacher
Teacher
6,304 Views
Registered: ‎07-09-2009

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 ?

 

<== If this was helpful, please feel free to give Kudos, and close if it answers your question ==>
Tags (1)
0 Kudos
ipunished
Observer
Observer
6,289 Views
Registered: ‎03-15-2011

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
rcingham
Teacher
Teacher
6,285 Views
Registered: ‎09-09-2010

What exactly do you mean by "double array"?

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


@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