MHB Drawing circuits with NAND gates

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Circuits Drawing
AI Thread Summary
The discussion focuses on creating a low-cost circuit implementation using only NAND gates for the function f(w,x,y,z) = x*y + w*x + ¬y*¬z. Participants emphasize that while traditional logic gates like NOT can be used, the challenge is to exclusively utilize NAND gates. It is noted that NAND gates can be configured to function as inverters, which is crucial for the implementation. There is some confusion regarding the variables y and z, with participants clarifying their roles in the circuit. The conversation highlights the importance of understanding how to represent logical functions using a restricted set of gates, particularly in optimizing circuit design for cost efficiency.
shamieh
Messages
538
Reaction score
0
A cheap way to implement this circuit is to use only NAND gates. Draw the circuit diagram for the lowest cost implementation using these gates. (reminder: you can wire a NAND gate such that it acts like an inverter).

$f$(w,x,y,z) = $$x*y + w*x + \bar{y}*\bar{z}$$

My solution:
View attachment 1448 Will this work?
 

Attachments

  • photo(1).JPG
    photo(1).JPG
    22.4 KB · Views: 97
Technology news on Phys.org
shamieh said:
Will this work?
Close, but the problem statement says you can use only NAND gates, in particular, no NOT gates. However, NOT is easily expressible through NAND.

logic-gates1.png
 
Wow the fact that you got that your drew that diagram on here is awesome lol. But where is the y y and z z coming from? aren't those unnecesarry?
 
shamieh said:
But where is the y y and z z coming from? aren't those unnecesarry?
I don't understand the question, "Where are they coming from?". Do you know where x is coming from? What's the difference between x and y?
 
Nevermind, I see now.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
1
Views
3K
Replies
16
Views
2K
Replies
8
Views
3K
Replies
1
Views
3K
Replies
1
Views
2K
Replies
2
Views
2K
Back
Top