Euclidean Distance Calculation VHDL Example

Euclidean Distance Definition

The Euclidean Distance between two points, \((x_1,y_1)\) and \((x_2,y_2)\), is \(\sqrt{(x_1-x_2)^2 + (y_1-y_2)^2}\). This classic equation extends to¬†3-dimensions as well, \(\sqrt{(x_1-x_2)^2 + (y_1-y_2)^2+(z_1-z_2)^2}\). There are many applications for the Euclidean distance equation. Anything from collision detection in video games to space travel, to even machine learning algorithms (see blog post K-Means Clustering Post). (more…)

Continue Reading Euclidean Distance Calculation VHDL Example

VHDL Example : Small ALU

An Arithmetic Logic Unit (ALU) is at the heart of any processor. The ALU is a machine, much like a washing machine, but instead of clothes or towels, soap, and water. The ALU tastes two operands, an operation code (op-code) and a clock. Just like a washing machine the ALU takes a certain amount of time to operate and the faster it works the more laundry (or calculations) get completed in a set amount of time. Here we will design a small ALU. (more…)

Continue Reading VHDL Example : Small ALU