Silicon Tutor: learn digital logic by trying it
Type a Boolean expression and see its truth table, simplified form and Verilog. Then read how gates, Boolean algebra and Karnaugh maps explain what you just saw.
Operators: ~ ! NOT a' · & * AND NAND · ^ XOR ~^ XNOR · | + OR NOR · && ||. Names start with a letter. Up to 8 inputs.
Inputs: click to toggle
Output y
0
- Inputs
- 3
- Rows where y = 1
- 4 of 8
| # | a | b | cin | y |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 2 | 0 | 1 | 0 | 0 |
| 3 | 0 | 1 | 1 | 1 |
| 4 | 1 | 0 | 0 | 0 |
| 5 | 1 | 0 | 1 | 1 |
| 6 | 1 | 1 | 0 | 1 |
| 7 | 1 | 1 | 1 | 1 |
The simulator
Everything a combinational circuit can tell you
One expression in, four views out. Each one is computed from the same truth table, in your browser.
Truth tables
Every input combination, up to 8 inputs and 256 rows, with the row you are testing highlighted.
SOP and POS
Canonical sum of minterms, product of maxterms, and a simplified sum of products.
Verilog out
A ready-to-paste combinational module with an assign statement for your expression.
Equivalence check
Compare two expressions on every input and get a counterexample when they differ.
Learn
Four lessons, from a single gate to Verilog
Short and exact. Every law, table and example on these pages is checked by the same engine the simulator uses.
- Lesson 1Logic gates explained, with truth tablesAND, OR, NOT, NAND, NOR, XOR and XNOR gates explained with truth tables, Boolean expressions and Verilog, plus why NAND and NOR are called universal gates.
- Lesson 2Boolean algebra laws, with examples you can checkThe Boolean algebra laws used to simplify logic: identity, complement, distributive, absorption, De Morgan's theorems and consensus, each checkable in the simulator.
- Lesson 3SOP, POS, minterms and Karnaugh mapsHow sum of products and product of sums forms are built from a truth table, what minterms and maxterms are, and how a Karnaugh map groups them to simplify logic.
- Lesson 4Verilog operators: a quick reference with examplesVerilog bitwise, logical, reduction, shift, relational and conditional operators, their precedence, and how they behave on single bits and vectors.
From the blog
Machine learning and data science guides
Longer reads on learning paths into machine learning, data science and AI engineering.
- February 16, 2025How to Learn Data Science in 2025: The Ultimate GuideMaster data science in 2025 with this comprehensive guide. Learn the essential skills, best learning paths, real-world projects, and insider tips to become a highly sought-after data science professional.
- February 8, 2025The Ultimate Machine Learning with Python Roadmap 2025A comprehensive guide to mastering machine learning with Python, designed for complete beginners. This roadmap includes free resources, a step-by-step learning path, project ideas, and valuable insights from the machine learning community.
- February 8, 2025Machine Learning for Software Engineers: A 2025 Definitive Learning Path & TimelineHow long to learn machine learning? This comprehensive roadmap for software engineers breaks down the timeline, skills, and steps to mastering ML in 2025 and beyond.
FAQ