skip to main | skip to sidebar

HiPerCoPS

Tuesday, January 29, 2008

[HiPerCoPS] A First Try at Multiplier Algorithms

Unsigned Multipliers

Create a square array of cells:

a[n/m][n/m]

Assign functions to each cell:

for(i = 0, i < n/m, i++)
 
for(j = 0, j < n/m, j++)
    a
[i][j] = A                       //all cells are of type A
 
end
end

Two's Complement Multipliers

Create a square array of cells:

a[n/m][n/m]

Assign functions to each cell:

  • configure the first row-
  •   a[0][0] = B                        //upper left cell is of type B
     
    for(i = 1, i < n/m, i++)
        a
    [0][i] = A                      //the rest of the row is of type A
      end
  • configure the inner rows-
  •   for(i = 1, i < n/m - 1, i++)       //iterate through the inner rows
        a
    [i][0] = D                      //the first cell of each inner row is of type D
       
    for(j = 1, j < n/m, j++)
         
    if(j = i)
            a
    [i][j] = C                  //the diagonal positions are of type C
         
    else
            a
    [i][j] = A                  //all others are of type A
         
    end
       
    end
      end
  • configure the last row-
  •   a[n/m - 1][0] = H                  //the lower left corner is of type H
      a
    [n/m - 1][n/m - 1] = E            //the lower right corner is of type E
     
    for(i = 1, i < n/m - 1, i++)
        a
    [n/m][i] = F                    //all of the others are of type F
      end
Posted by Kylan at 1:01 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (19)
    • ►  April (3)
    • ►  March (1)
    • ►  February (6)
    • ▼  January (9)
      • [HiPerCoPS] A First Try at Multiplier Algorithms
      • [HiPerCoPS] System Diagram
      • [HiPerCoPS] Goals for 1/29
      • [HiPerCoPS] Research Website
      • [HiPerCoPS] Java It Is!
      • [HiPerCoPS] SRS Continues, Language Choice
      • [HiPerCoPS] SRS, Version 1.0
      • [HiPerCoPS] Software Engineering
      • [HiPerCoPS] Research Blog