Skip to content

Greatest common divisor of two 32-bit numbers in verilog

Notifications You must be signed in to change notification settings

itachi72/GCD-FPGA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCD-FPGA

Greatest common divisor of two 32-bit numbers in verilog

The following code is written in Verilog and the simulation is done on Xilinx ISE.

The algorithm for finding the GCD of two integers is very simple and can be implemented in C/C++ in just 10 lines of code. When we try to do it on the hardware, the whole picture changes. We have to define everything from what a number is to how the clock will synchronize with the operation of the Control and Data path.

The control path will provide the control signals and the data path will contain all the logic for mathematical operation as subtraction.

About

Greatest common divisor of two 32-bit numbers in verilog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published