Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 15th October 2007, 03:19 AM   (permalink)
Default Digital Multiplier

Hello all,

Does anyone know how to construct a multiplier circuit using just logic gates?? Say an 4x4 bit or an 8x8 bit multiplier?

Thanks
jack23 is offline  
Old 15th October 2007, 04:45 AM   (permalink)
Default

What kind of speed do you need? I imagine it would be pretty complex to do using discrete logic gates, it might make more sense to use a micro controller
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 15th October 2007, 02:17 PM   (permalink)
Default

I agree, using a controller would be alot easier, but that is not an option in my case. The speed is not of great concern, any decent speed would suffice.

Thanks.
jack23 is offline  
Old 15th October 2007, 03:16 PM   (permalink)
Default

Well, think about how you would do multiplication on paper. I've been trying for about 20 minutes to explain this with words but I just can't, so perhaps an example will suffice:

Code:
   1010
x  0101
   1010
  0000
 1010
0000    
0110010
So then to implement this in an unclocked design, you'd want to do all of the AND-ing simultaneously and feed it all into a big adder.

If you've got a clock and want to save some parts (or you want to add one just to save some parts) then you can do that sequentially with n AND gates (for an nxn multiplier), an n-bit adder, a 2n-bit shift register to store one of the operands and the result, and an n-bit shift register to store the other operand. The clocked circuit also requires some control logic, which (obviously) varies based on the number of bits involved.

I don't have anything I can draw something with right now, but I'll try to get back to this thread tonight (assuming I can get my computer running) to explain better or draw something.
Darth Bagel is offline  
Old 15th October 2007, 04:58 PM   (permalink)
Default

In normal way,You must construct a truth table,An 4*4 bit multiplier need eight-bit outputs,Construct equations for each out bit,Simplify the equations.Then you can build the circuit only with logic gates.
There is an easy way to build the circuit,An 4*4 bit multiplier has two four-bit inputs and eight-bit outputs,You can use a 256*8 bit ROM to do this,high four-bit of address and low four-bit address are inputs,DATA of the ROM is outputs of the multiplier.
johnnitwenty is offline  
Old 17th October 2007, 01:17 AM   (permalink)
Default

Sounds like school work to me. If it's not, provide some freegin details.
When someone asks you what kind of speed you need and you respond with 'decent speed' you've provided ZERO information. If you just need a 'decent speed' use a 'decent micro controller' or explain why your design isn't able to incorporate them because no real world application would have that pre-requisite.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 17th October 2007, 01:28 AM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
Sounds like school work to me. If it's not, provide some freegin details.
When someone asks you what kind of speed you need and you respond with 'decent speed' you've provided ZERO information. If you just need a 'decent speed' use a 'decent micro controller' or explain why your design isn't able to incorporate them because no real world application would have that pre-requisite.

Of course it is school work!!! The majority of the posts on this site are from students requesting information regarding school projects, homework, lectures etc.

And yes, a real world application WOULD have that pre-requisite, its called VLSI design!!
jack23 is offline  
Old 17th October 2007, 06:38 AM   (permalink)
Default

Try googling "Wallace Trees"
Papabravo is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
The Oscilloscope ElectroMaster Electronic Theory 12 3rd February 2008 02:45 PM
Digital Weight Scale Design Ideas Johnson777717 Electronic Projects Design/Ideas/Reviews 12 18th August 2007 05:40 PM
I hate Digital Electronics Frosty_47 General Electronics Chat 23 11th August 2007 06:19 PM
Digital control of a LM350/333 dwurmfeld Electronic Projects Design/Ideas/Reviews 2 8th September 2006 04:13 PM
Digital Troubleshooting and testing walters General Electronics Chat 38 24th August 2005 09:21 AM



All times are GMT. The time now is 08:49 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker