Re: Condition to logic
Posted by ivant on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Condition-to-logic-tp4034355p4034370.html
Yes, that is correct. And for these smaller gates the course material includes full tests. So if the tests pass you know it's working correctly.
There are more "mechanical" ways to come up with implementation for this, in the sense that you just follow a few steps and you get the result. You can search for "from truth table to normal form" (DNF and CNF are the two normal forms so you may see this in the results) and for "Karnaugh map" (often abbreviated as K-Maps). Both are good to know, but they are impractical to use for bigger and more complex gates.