Preview

Square Root Using Sequential Cordic

Satisfactory Essays
Open Document
Open Document
322 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Square Root Using Sequential Cordic
Square root using Sequential Cordic

Assignment-2
Submitted to: Dr. Sumam David Dept. of Electronics & Communication Engineering NITK Surathkal

Submitted by:

Rakshith Sharma 10EC87

Vikas Majjagi 10EC107

Mullapudi Srinivas 10EC99

Algorithm:
This is implemented for a range of input values < 0.75 since Xin should be less than 1 for the bit notation we used.Here we use the vectoring Mode of CORIC and its Hyperbolic subcase to calculate Xout=sqrt(xin2 -yin2 ) And yout= 0 Bit notation: [MSB(sign bit)] . [(bit 1 to 15 for +ve fraction)]

If we use xin=M+ ¼ and yin=M -1/4 we can compute xout=sqrt(M). The other equations of the cordic remain the same ie, X(i+1)=x(i)+d(i)*y(i)*2-i Y(i+1)=y(i)+d(i)*x(i)*2-i Z(i+1)= z(i) – d(i)*a(i) where a(i)=tan-1 (2-i) In this case we use 16bit fixed point notation with one sign bit and 15 bits in Q15 notation. A total of 12 iterations are used to reach the result where y(i) is sufficiently close to 0 and x(i) is approximately equal to sqrt(M). In case of hyperbolic, it is necessary to repeat shift iteration number for 4 th and 7th iterations in order to make the series to converge. The final obtained x(i) is to be multiplied by 1.207534056 to get the result. The flow chart for the algorithm implement in the VHDL code is as shown in the following page. d(i)=1 if x(i)*y(i)0

Y(i) has gone to 0(apprx)

input M=0.63998413

output X(i)=0.80035533

Y=0?&sh ift>12
Yes No Yes

X(i)=sqrt(M)

Yes

Check iteration number

Shift=4 or 7?

Shiftrep= 0?

No

No

Shiftrep+1

Shift+1

d(i)=-1

No

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1210 Week 1 Labs 1

    • 3680 Words
    • 20 Pages

    Using the example in Figure 1- 5 and the steps that followed, create a binary conversion for the decimal value 255.…

    • 3680 Words
    • 20 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This file MAT 222 Week 3 Assignment Real World Radical Formulas contains solutions to the following tasks: 1.103. Sailboat stability. To be considered safe for ocean sailing, the capsize screening value C should be less than 2 (www.sailing.com). For a boat with a beam (or width) b in feet and displacement d in pounds, C is determined by the function. a).Find the capsize screening value for the Tartan 4100, which has a displacement of 23,245 pounds and a beam of 13.5 feet. b). Solve the equation for d. 2.104. Sailboat speed. The sail area-displacement ratio S provides a measure of the sail power available to drive a boat. For a boat with a displacement of d pounds and a sail area of A square feet S is determined by the function a)Find S to the nearest tenth for the Tartan 4100, which has a sail area of 810 square feet and a displacement of 23,245 pounds. b) Write d in terms of A and S.…

    • 548 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    CODE FOR THE ABOVE FRAGMENT addi $t6, $zero, 101 # the loop termination value add $t0, $zero, $zero # i = 0 addi $t2, $a0, 0 # ptr to current A[i] addi $t3, $a1, 0 # ptr to current B[i] loop: lw $t4, 0($t3) # load B[i] add $t4, $t4, $s0 # B[i] + c sw $t4, 0($t2) # store in A[i] addi $t0, $t0, 1 # i++ addi $t2, $t2, 4 # ptr to next A[i] addi $t3, $t3, 4 # ptr to next B[i] bne $t0, $t6, loop # if i < 101, goto loop IF ANY QUERIES REGARDING CODE…

    • 107 Words
    • 1 Page
    Powerful Essays
  • Satisfactory Essays

    Lab 1 1

    • 814 Words
    • 9 Pages

    Using the example in Figure 1-5 and the steps that followed, create a binary conversion for the decimal value 255.…

    • 814 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 1

    • 1660 Words
    • 7 Pages

    Using the example in figure 1-5 and the steps that followed, create a binary conversion for the decimal value 255.…

    • 1660 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mr james cox

    • 1220 Words
    • 5 Pages

    Starting at the point ð1, 3Þ, use a step-by-step method with a step length of 0.1 to…

    • 1220 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Microcomputer

    • 532 Words
    • 3 Pages

    From 2-var mux we design 4-bit expandable by use 4 components of 2-var mux. We base on tables follow to design them:…

    • 532 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Pythagorean Quadratic

    • 504 Words
    • 3 Pages

    Kids in Danger website is value because it keeps parents as well as caregivers much needed information on recalls of certain things that are not safe for younger children. Kids in Danger website does have information on other website you can go to get more information about the product as well as numbers you can call. This website gave me a lot of information on crib bumpers pads and why they were recall. Due to an incident that happen in 2009 where 6-month-old Aiden died because of a crib bumper pad he rolled into and couldn’t get out. His grandmother who got kids in danger involved on the importance of crib safety and the danger of bumper pads told this story.…

    • 504 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Radical Recontruction

    • 586 Words
    • 3 Pages

    The Radical Reconstruction had a large amount of impacts on the emancipated blacks and the south. The blacks were freed but were still subjected to racism, hate, and inequality. The radical republicans tried their best to fight for the rights of the freedmen, but at the end of the Reconstruction, the freedmen were still treated unfairly. An advantage of the Reconstruction is that it restored the United states into one union. Therefore, there were both advantages and disadvantages to the Reconstruction.…

    • 586 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Pythagorean Quadratic

    • 644 Words
    • 3 Pages

    〖x 〗^2+( 〖4x 〗^2)/( 〖-4x 〗^2 )+ 16x + 16 = 〖4x〗^2/〖-4x 〗^2 + 24x + 36…

    • 644 Words
    • 3 Pages
    Good Essays
  • Good Essays

    One way of converting a decimal fraction to binary fraction is to first multiply it by a power of 2 so that it becomes an integral number, then convert to binary and then divide by the same power of 2 (which now just means displacing the binary point to the left).…

    • 593 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Iteration Method

    • 10513 Words
    • 43 Pages

    Throughout in this text V will be a vector space of finite dimension n over a field K and T : V → V will be a linear transformation.…

    • 10513 Words
    • 43 Pages
    Better Essays
  • Powerful Essays

    [13] A.C. McBride and F.H. Kerr. On Namias’s fractional Fourier transforms. IMA J. Appl. Math., 39:159–175, 1987. [14] V. Namias. The fractional order Fourier transform and its application in quantum mechanics. J. Inst. Math. Appl., 25:241–265, 1980. [15] J. O’Neill. DiscreteTFDs:a collection of matlab files for time-frequency analysis, 1999. ftp.mathworks.com/pub/contrib/v5/signal/DiscreteTFDs/. [16] H.M. Ozaktas, M.A. Kutay, and G. Bozda˘i. Digital computation of the fractional Fourier transform. g IEEE Trans. Sig. Proc., 44:2141–2150, 1996. [17] H.M. Ozaktas, Z. Zalevsky, and M.A. Kutay. The fractional Fourier transform. Wiley, Chichester, 2001. [18] S.-C. Pei, M.-H. Yeh, and C.-C. Tseng. Discrete fractional Fourier-transform based on orthogonal projections. IEEE Trans. Sig. Proc., 47(5):1335–1348, 1999. [19] S.C. Pei and M.H. Yeh. Improved discrete fractional Fourier transform. Optics Letters, 22:1047–1049, 1997. [20] S.C. Pei and M.H. Yeh. The discrete fractional cosine and sine transforms. IEEE Trans. Sig. Proc., 49:1198–1207, 2001. [21] M.S. Richman, T.W. Parks, and R.G. Shenoy. Understanding discrete rotations. In Proc. IEEE Int. Conf. Acoust. Speech, Signal Process., 1997. [22] B. Santhanam and J.H. McClellan. The discrete rotational Fourier transform. IEEE Trans. Sig. Proc., 44:994–998, 1996. [23] N. Wiener. Hermitian polynomials and Fourier analysis. J. Math. Phys., 8:70–73, 1929. [24] M.H. Yeh and S.C. Pei. A method for the discrete fractional Fourier transform computation. IEEE Trans. Sig. Proc., 51(3):889–891, 2003.…

    • 9669 Words
    • 39 Pages
    Powerful Essays
  • Good Essays

    y(i)=0.5*y(i-1)-0.4*y(i-2)+0.2*u(i-2)+0.3*u(i-3)+0.3*(noise(i)-0.5*noise(i1)+0.4*noise(i-2)); % generate real output data end; for i=(max(nu,ny)+1):N for j=1:ny Phi(i,j)=y(i-j); end; % update Phi matrix for j=(ny+1):m Phi(i,j)=u(i-(j-ny)); % For this line, max of (j-ny) is nu, to have (i-(jny)) positive, i should be i>nu. % Therefore, i should be defined as i=(max(nu,ny)+1):N. end; % Each row of Phi is made of 2 steps of past value of y and 2 steps of past value of u. % It is assumed here that the guesses on % numbers of entries in the numerator and % denominator are both successful.…

    • 832 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Panju

    • 4874 Words
    • 20 Pages

    Abstract: We examine some numerical iterative methods for computing the eigenvalues and eigenvectors of real matrices. The five methods examined here range from the simple power iteration method to the more complicated QR iteration method. The derivations, procedure, and advantages of each method are briefly discussed.…

    • 4874 Words
    • 20 Pages
    Powerful Essays