Combinational circuit that multiplies two numbers together

Click For Summary

Discussion Overview

The discussion revolves around designing a combinational circuit to multiply two 2-bit numbers, focusing on creating a truth table, K-maps, and the corresponding logic circuits for the outputs. The scope includes homework-related tasks and technical explanations of circuit design.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant outlines the need for a truth table to represent the multiplication of two 2-bit numbers and questions how to start it.
  • Another participant suggests filling out the truth table with the 2x2-bit inputs and resulting 4-bit output, and emphasizes the need for clarity in the truth table structure.
  • A participant expresses confusion about forming expressions from the K-map and building the circuit from those expressions.
  • There is a request for help in understanding how to derive the outputs from the K-map and how to construct the logic circuits for each output bit.
  • Participants discuss the need to create separate circuits for each output bit (W, X, Y, Z) rather than combining them into one circuit.
  • One participant asks about implementing a more complex expression and inquires about the number of OR gates required in the expression.

Areas of Agreement / Disagreement

Participants generally agree on the process of creating separate circuits for each output bit and the use of K-maps for logic design. However, there are varying levels of understanding regarding the formation of truth tables and expressions from K-maps, indicating some unresolved confusion.

Contextual Notes

Some participants express uncertainty about the correct structure of the truth table and the logic needed to derive outputs from the K-map. There are also mentions of specific circuit design techniques, but not all participants seem to fully grasp these concepts.

Ramir
Messages
9
Reaction score
0

Homework Statement


Design a combinational circuit that multiplies two numbers together, and outputs the result.

Homework Equations


The biggest product will be 3 * 3 = 9.

Four bits to represent the product.

0: 00
1: 01
2: 10
3: 11

I need a 4 bit register for the outputs

The Attempt at a Solution

The biggest product will be 3 * 3 = 9.
Four bits to represent the product.
0: 00
1: 01
2: 10
3: 11

I need a 4 bit register for the outputs, right?

How do I start my truth table? like this?

A B C D | Output | AB | CD

How will I form the expressions from the truth table?
I know how to solve with a K-map, but I'm having a hard time visualizing and building it.
 
Physics news on Phys.org
Ramir said:
A B C D | Output | AB | CD

Welcome to the PF.

I don't think you need the last part of the above -- what is it meant to represent?

Just fill out the truth table with the 2x2-bit inputs and the resulting 4-bit output. Then do a K-map for each of the 4 output bits versus the 4 input bits. Can you show us that truth table?

Hint -- use the [ code ] and [ /code ] tags (without the spaces) around your truth table to enforce uniform spacing of the characters so the columns line up. :smile:
 
Okay I uploaded a picture. I put the 1's in the K-map after and now i need to form the expression. I build the circuit from the expression then?
 

Attachments

  • Capture.PNG
    Capture.PNG
    8.1 KB · Views: 2,216
That table doesn't make any sense to me.

The Truth Table for this 2-bit multiplier should have 4 columns of input bits and 4 columns of output bits. The output bits for each row are the binary result of multiplying the two 2-bit input binary numbers.

Try again? :smile:
 
I uploaded another.. I don't understand how to get the highs in the x,y,z outputs though, what am I looking at to form the logic?
 

Attachments

  • Capture.PNG
    Capture.PNG
    24.7 KB · Views: 1,335
Much better! :smile:

So now you design 4 logic circuits, one each for the W, X, Y and Z outputs. The 4 inputs (A, B, C, D) go into each of the combinatorial circuits.

Use 4 K-maps to design the 4 logic circuits. Can you show us your try at the 4 K-maps?
 
Here's a look at my K-Map and expressions. Now I take the expressions and build the circuit in a testing program?
 

Attachments

  • Capture321.PNG
    Capture321.PNG
    54.2 KB · Views: 1,665
Great! I checked the K-maps and they look right for W, X, Y and Z (from top to bottom -- they should be labeled).

And yes, now just write down the circuits that correspond to those minterms. Good work. :smile:
 
Thanks for your help, appreciated greatly! I never turned a big expression like B'CD + A'BD + BCD + ABD + DB into a circuit before. Do I take the expressions for w,x,y,z and put them altogether?
 
  • #10
Ramir said:
Do I take the expressions for w,x,y,z and put them altogether?

No, you will make 4 separate circuits; one each for the W, X, Y, and Z output bits for the multiplier. You make each circuit with inverters, AND gates and OR gates (that's one way to implement minterms anyway).
 
  • #11
Can you help me set one up, preferably a harder one?

AC'D+ AB'D + BCD' + A'BC
 
  • #12
Will I have three Or's in that expression?
 
  • #13
Ramir said:
Can you help me set one up, preferably a harder one?

AC'D+ AB'D + BCD' + A'BC

Ramir said:
Will I have three Or's in that expression?

Yes. Sorry for the delay in responding.

You implement that with inverters, AND gates, and OR gates. For the terms like C', use an inverter to make C' from the C input. For terms like AC'D, use a 3-input AND gate. And then use OR gates to implement the "+" operations.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
19K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 24 ·
Replies
24
Views
7K