Solving CMOS Sum of Products: 30 vs 28 Transistors

In summary: I was just trying to make sure I wasn't doing anything wrong.In summary, the conversation discusses deriving the simplest sum of products for an expression from a truth table using Boolean algebra. The solution includes using 2 3-input CMOS AND gates, 4 CMOS inverters, and 1 2-input CMOS OR gate, resulting in a total of 26 transistors. There is a discrepancy between the calculated number of transistors and the answer given in the book, but it is determined that the given solution is more efficient.
  • #1
╔(σ_σ)╝
839
2
I'm doing some reading about CMOS circuits and the likes. In the book I'm using it tells me to derive the simplest sum of products for an expression from a truth table.

The canonical sum of product is as follows:
*- AND
!- NOT
+ - OR

(!x1*!x2* !x3*!x4) + ( !x1*x2*!x3*!x4) +(x1*!x2*!x3*!x4) = f


Using Boolean algebra I was able to simplify to

(!x2*!x3*!x4) + (!x1*!x3*!x4)= f which is the simplest sum of products.

Then the book then asks how many transistors are needed to implement the sum of products circuit using CMOS AND,OR,and NOT gates.


My solution was as follows:

We need :

2 -3input CMOS AND gates => 2(4*2) transistors = 16 transistors
4- CMOS inverters => (4*2) transistors = 8 transistors
1- 2 input CMOS OR gate => 1(3*2) transistors =6 transistors

16+8+6 = 30 transistors

But the answer is 28 transistors I'm not sure what I'm doing wrong.

I realize that 8 transistors are used to implement CMOS 3input AND gate, 2 transistors are needed for CMOS 1input inverter and 6 transistors for 2input OR gate.



What I'm I doing wrong ?
 
Physics news on Phys.org
  • #2
Does anyone know what I'm doing wrong ?
 
  • #3
Simplify your AND and OR gates to NAND and NOR gates - those 2 extra transistors are probably accounted for by eliminating a NOT gate somewhere.
 
  • #4
But the question specifically says to use AND, OR and NOT gates no NAND and NOR gates.
 
  • #5
╔(σ_σ)╝ said:
But the question specifically says to use AND, OR and NOT gates no NAND and NOR gates.

It's fairly standard practice to simplify boolean logic to a sum of products form but then to implement it in a "Nand-Nand" form. Note that by Demorgans Law "And-Or" is directly equivalent to "Nand-Nand".

I'm not really sure if that's what your question wanted but just pointing it out.
 
  • #6
ok the above was a "generic" response made without looking in detail at the logic function involved. I just took a more detailed and yeah you can do it with 28 transistors and using only "and" "or" and "not" gates.

For a straight forward two level implementation I got the following.

SOP with AND/OR implementation : 30 transistors (same as OP).
SOP with NAND/NAND implementation : 26 transistors.
POS with NOR/NOR implementation : 10 transistors (this is a pretty efficient implementation).

Here's a hint. The above is for a "two level" implementation. Do some simple boolean algebra (factorization) on the minimized SOP form and you can cut it down to a 28 transistor AND/OR implementation.
 
  • #7
(!x2*!x3*!x4) + (!x1*!x3*!x4)

I tried factoring and I got

(!x3*!x4)(!x2+ !x1)=f

Which means I need
2- 2 input AND gates
4- inverters
1- 2 input or gate

Which gives me 26 transistors not 28.

Can you be more clear cause I'm not sure how you can get 28. I keep getting 26 or 30 with AND,OR and NOT gates (all three).
 
  • #8
╔(σ_σ)╝ said:
(!x2*!x3*!x4) + (!x1*!x3*!x4)

I tried factoring and I got

(!x3*!x4)(!x2+ !x1)=f

Which means I need
2- 2 input AND gates
4- inverters
1- 2 input or gate

Which gives me 26 transistors not 28.

Can you be more clear cause I'm not sure how you can get 28. I keep getting 26 or 30 with AND,OR and NOT gates (all three).

Whoops yeah you're right it's only 26. (I was just figuring the whole thing out in my head when I got 28 :blushing:).

Anyway there's nothing wrong with that working, if you can do it in 26 then that's a better solution than the books. I'm not sure if the author had another solution in mind or if it's a simple error on their part. Maybe they're like me and just can't add up. :wink:
 
  • #9
Okay thanks mate.

I guess it wasn't an error on my part.
 

1. What is the purpose of solving CMOS Sum of Products?

The purpose of solving CMOS Sum of Products is to optimize the design and functionality of CMOS (Complementary Metal-Oxide-Semiconductor) circuits. By reducing the number of transistors used in a Sum of Products implementation, it can lead to lower power consumption, smaller chip size, and improved performance.

2. What is the difference between using 30 and 28 transistors in CMOS Sum of Products?

The difference between using 30 and 28 transistors in CMOS Sum of Products is the number of transistors used to implement the logic function. Using 28 transistors instead of 30 can result in a more efficient design, as it requires fewer resources and can lead to better overall performance.

3. How do you determine whether to use 30 or 28 transistors in CMOS Sum of Products?

The decision to use 30 or 28 transistors in CMOS Sum of Products depends on factors such as the complexity of the logic function, the target performance and power consumption requirements, and the available resources. Typically, a trade-off analysis is done to determine the best approach for a specific design.

4. Can using 28 transistors in CMOS Sum of Products lead to any limitations?

Using 28 transistors in CMOS Sum of Products may lead to some limitations, such as reduced flexibility in terms of design changes and potentially slower performance compared to a design with 30 transistors. However, these limitations can be mitigated through careful design and optimization techniques.

5. Are there any other ways to optimize CMOS Sum of Products besides reducing the number of transistors?

Yes, besides reducing the number of transistors, other techniques can be used to optimize CMOS Sum of Products, such as using advanced fabrication processes, implementing parallel logic structures, and utilizing specialized circuit elements. Each design may require a unique approach to achieve the desired optimization goals.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
13
Views
3K
  • Precalculus Mathematics Homework Help
Replies
6
Views
9K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
5K
  • Advanced Physics Homework Help
Replies
1
Views
2K
Back
Top