skip to main | skip to sidebar

The DupyBlog

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)


Dupyshon.com Blogs

  • Dupyshon.com
  • Kylan's Blog
  • DupyCast
  • Six Weeks in Rwanda
  • DupySite
  • The Old DupyBlog
  • Jaron's Blog
  • National Republic of Columbia
  • Columbian Ministry of State
  • Columbian Ministry of Culture
  • Secretive Intelligence Agency

Search This Blog

Followers

Blog Archive

  • ▼  2008 (148)
    • ►  September (1)
    • ►  August (6)
    • ►  July (18)
    • ►  June (6)
    • ►  May (7)
    • ►  April (22)
    • ►  March (20)
    • ►  February (28)
    • ▼  January (40)
      • [Kylan's Blog] Classes Canceled, Mass Confusion
      • [Six Weeks in Rwanda] Truman Award Update
      • [Kylan's Blog] FAWM Banner
      • [Kylan's Blog] February: A Month of Music
      • [Kylan's Blog] Quicksilver and Mouseless Computing
      • [HiPerCoPS] A First Try at Multiplier Algorithms
      • [HiPerCoPS] System Diagram
      • [Kylan's Blog] RPM Challenge Enrollment
      • [Kylan's Blog] Water Torture
      • [Six Weeks in Rwanda] A Linux Distro for Rwanda? P...
      • [Kylan's Blog] Green Handkercheifs
      • [Six Weeks in Rwanda] WSU Rwanda Commercial
      • [Six Weeks in Rwanda] Paul Rusesabagina
      • [Kylan's Blog] Last.fm
      • [Six Weeks in Rwanda] Truman Award Application
      • [DupySite] DupyBook Update
      • [Kylan's Blog] Springtime for Switchfoot
      • [The Ministry of Culture] The Complete History of ...
      • [HiPerCoPS] Goals for 1/29
      • [Kylan's Blog] CSOTW
      • [Kylan's Blog] Senior Design Website
      • [HiPerCoPS] Research Website
      • [Kylan's Blog] DupyServer
      • [HiPerCoPS] Java It Is!
      • [HiPerCoPS] SRS Continues, Language Choice
      • [Jaron's Blog] Jazz Band Schedule
      • [Kylan's Blog] Winter EP Downloaded
      • [HiPerCoPS] SRS, Version 1.0
      • [HiPerCoPS] Software Engineering
      • [Kylan's Blog] Winter EP Out Tomorrow
      • [HiPerCoPS] Research Blog
      • [Jaron's Blog] Government Internships
      • [DupyWed] Karl and Vic's Site
      • [Kylan's Blog] A Bad Day in Sports
      • [Kylan's Blog] The Solution to Facebook Evolution
      • [Kylan's Blog] Insurance Rates
      • [Kylan's Blog] Lots of Snow
      • [Kylan's Blog] Schedule Changes
      • [Kylan's Blog] TV and Internet
      • [The Ministry of Culture] The Complete History of ...
  • ►  2007 (190)
    • ►  December (32)
    • ►  November (24)
    • ►  October (38)
    • ►  September (25)
    • ►  August (22)
    • ►  July (21)
    • ►  June (6)
    • ►  May (4)
    • ►  April (18)