hardware multiplication

Go To Last Post
59 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

anyone knows what is the abbreviation of HW and SW

Hard Ware and Soft Ware

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ohhh, i thought that they are types of multiplier.

I am living to bring up new earth ,and not to eat and destroy earth.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HW = HARDWARE

 

SW = SOFTWARE

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, they are types of multiplier. A hardware multiplier implements the multiplication in hardware -- there's actual gates on the chip to do the thing. A software multiplier uses other operations to implement multiplication, and is much slower.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The world is not that simple.

 

No problems about the SW version, it makes a multiplication as you would do on paper (just in binary).

 

There are two main ways to look at a HW multiplier, either does the CPU just have multiply instructions, or does really need to have dedicated logic for the multiplication.

The AVR has the last, but the first chips with MUL instructions did it as the SW but whit a sequencer (like 8086 68000 etc.).  

 

And even a cortex M0 can be implemented without dedicated hardware (but all I know of do it in 1 clk)      

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the_real_seebs wrote:
A hardware multiplier implements the multiplication in hardware

Just like a Hardware UART implements its functionality in hardware, but a Software UART is all code that you write.

 

Or a Hardware Floating-Point Unit (FPU) performs floating-point calculations in dedicated hardware - as opposed to just using software libraries.

 

etc, etc, ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Also, the HW multiplier can either be part of the CPU, in which case it appears to the programmer as one or more assembly instructions, or it can be a separate peripheral, often able to execute it's own separate instruction stream.

For example, some chips from the Texas Instruments MSP430 family have a multiplier peripheral.

The AVR clone LGT8F328P from Logic Green has both a CPU multiplier similar to the ATMegas, and a more powerful multiplier/divider peripheral.

 

So there is lots of variety out there.

Pages