Algebrator by Softmath - the leading Mathematics Software Application on the Market today! Algebra Software Tutoring Program provides exceptional supplemental teaching and reduces homework time

Home
News
Why Algebrator?
Iron-clad Guarantee
Testimonials and Reviews
Compare to Others
Order
Who we are
FAQs
Algebra Resource Links
Privacy Policy
Free tutoring with purchase!

Click here for a demo of Algebrator by SoftMath--reduce your Algebra homework to no time at all!
 

Softmath
1150 N Loop 1604 W
Ste. 108-453
San Antonio, TX 78248
USA

Phone: (512) 788-5675
Fax:    
(512) 519-1805

 
BBB Reliability Program -- Algebrator by SoftMath: reduce your homework time today!

Read the review of Algebrator Software in the Family Review Center today!

Bookmark and Share
 
 

HOW TO CALCULATE GREATEST COMMON DIVISOR

  integer adding,subtracting,multiplying, dividing worksheet, easy addition and subtraction of algebraic expressions, square root simplify equations calculator ,   a help sheet explaining how to solve equations by balancing them ,   Solving simultaneous algebra equations , maths, algebra balancing linear equations , simplifying square roots with exponents , solve non homogeneous first order partial differential equation, writing linear equations powerpoint presentation ,   factoring a difference of squares lesson plan for algebra 2, convert decimal to radical fraction expression ,   Educational games solve a quadratic equation by completing the square, square root calculator using simplified radical, difference between evaluation & simplification of an expression,   simultaneous equation solver quadratic 3 unknowns, Solving Non linear differential equations ,   algebra 2, vertex form of a linear equation , calculator texas instruments convert decimals into fractions,   factor calculator for a quadratic equation, finding the least common denominator algebra , interactive games solve a quadratic equation by completing the square ,   solving second order non homogeneous differential equations, solving linear equation cheats, solved sample papers for class viii of chapter square and square roots, quadratic equations vertex and standard form online calculators,   simplifying radical expressions solver, factor polynomial college algebra two variable ax by,     exponent definition quadratic hyperbola parabola,   solve and graph non liner system of equations ,     ways to cheat on dividing a decimal by a whole number , symbolic method math formula solving , solving simultaneous nonlinear equations matlab
Thank you for visiting our site! You landed on this page because you entered a search term similar to this: how to calculate greatest common divisor. We have an extensive database of resources on how to calculate greatest common divisor. Below is one of them. If you need further help, please take a look at our software "Algebrator", a software program that can solve any algebra problem you enter!

FSM + D: Greatest Common Divisior


I. Introduction

The purpose of this lab is to implement a finite state machine in VHDL to calculate the Greatest Common Divisor(GCD) of 2 numbers.

The algorithim used to compute the GCD is as follows. Two numbers are compared ( x = y ?). If so the the GCD is found. If x > y, then x = x - y. The two numbers are then compared once again. If y > x, then y = y - x. The two numbers are then compared once again. Here is and example of our algorithim:

x = 10
y = 2

Is x = y? No, x > y therefore x = x - y
in our case, x = 10 - 2 = 8.

Is x = y? No, x > y therefore x = x - y
In our case, x = 8 - 2 = 6.

Is x = y? No, x > y there fore x = x - y
In our case, x = 6 - 2 = 4.

Is x = y? No, x > y therefore x = x - y
In our case, x = 4 - 2 = 2.

Is x = y? Yes, therefore the GCD of 10 and 2 is 2.

Note that 0 is not a valid input.

The design of the GCD calculator should be divided into 2 parts - a controller and a datapath. The controller is an FSM which issues commands to the datapath based on the current state and the external inputs. This can be a behavioral description. The datapath contains a netlist of functional units like multiplexors, registers, subtractors and a comparator, and hence this design is structural. The controller basically steps through the GCD algorithim shown above. If x = y, we have finished computing the GCD, and we go to the final state and assert the data output line. The Datapath does the actual GCD computation. It has the following components:

  • Mux: takes 2 4-bit inputs and one select line. Based on the select line, it outputs either the 1st 4-bit number or the 2nd 4-bit number.
  • Register: Takes a 4-bit input, a load signal, reset, and a clock signal. If the load signal is high and the clock is pulsed, it outputs the 4-bit number.
  • Comparator: Takes 2 4-bit numbers, and assets one of 3 signals depending on whether the 1st number is less than, greater than or equal to the 2nd number.
  • Subtractor: Takes 2 4-bit numbers, subtracts the smaller number from the larger.
  • Output Register: Holds the GCD value. When x = y the GCD has been found and can be outputted. Because it is a register entity it should also take a clock and reset signal.


Sample Structure of the Controller and Datapath

II. Procedure

implementation and simulation:

  1. For an idea of how the gcd calculator might look, refer to the above figure. However, you state machine can have a different number of states, archs, and loops.
  2. Create an FSM to reflect the GCD calculation process.
  3. Convert the FSM to an FSM +D
  4. Write the VHDL code to reflect the controller and data path.
  5. Write a test bench and verify the correctness of your design using Aldec Active-VHDL
downloading:
  1. Once you have verified your results using Aldec HDL, check out an XS40 board from the T.A.
  2. You will need to add the 7-segment decoder to the design.
  3. Create a .ucf file to reflect your connections and generate a bit file.
  4. Download your .bit file and verify your results.



You Type in Your Algebra Problem. Algebrator does the Rest!


 


Algebrator
Download (and optional CD)

Only $39.99

Click to Buy Now:



OR


Goods and services provided by Sofmath (TX, USA).
Sold by 2CheckOut.com Inc. (Ohio, USA).

Attention: We are currently running a special promotional offer for softmath.com visitors -- if you order Algebrator by midnight of November 20th you will pay only $39.99 instead of our regular price of $74.99 -- this is 35.00 in savings ! In order to take advantage of this offer, you need to order by clicking on one of the buttons on the left, not through our regular order page.

If you order now you will also receive 30 minutes of live math tutoring from tutor.com!

You Will Learn Algebra Better - Guaranteed!

Just take a look how incredibly simple Algebrator is:

Step 1 : Enter your homework problem in an easy WYSIWYG (What you see is what you get) algebra editor:

Step 2 : Let Algebrator solve it:

Step 3 : Ask for an explanation for the steps you don't understand:

Algebrator can solve problems in all the following areas:

  • simplification of algebraic expressions (operations with polynomials (simplifying, degree, synthetic division...), exponential expressions, fractions and roots (radicals), absolute values)
  • factoring and expanding expressions
  • finding LCM and GCF
  • operations with complex numbers (simplifying, rationalizing complex denominators...)
  • solving linear, quadratic and many other equations and inequalities (including basic logarithmic and exponential equations)
  • solving a system of two and three linear equations (including Cramer's rule)
  • graphing curves (lines, parabolas, hyperbolas, circles, ellipses, equation and inequality solutions)
  • graphing general functions
  • operations with functions (composition, inverse, range, domain...)
  • simplifying logarithms
  • operations with matrices (adding, subtracting, multiplying, inverse...)
  • basic geometry and trigonometry (similarity, calculating trig functions, right triangle...)
  • arithmetic and other pre-algebra topics (ratios, proportions, measurements...)


Algebrator
Download (and optional CD)

Only $39.99

Click to Buy Now:



OR


Goods and services provided by Sofmath (TX, USA).
Sold by 2CheckOut.com Inc. (Ohio, USA).

 
Order $58.99
 
 

 

 
 
Demo | Features | Guarantee | Reviews | Comparison | Order | About Us

©Copyright 1998 - 2009 Softmath All rights reserved.