Boolean algebra to circuit
@chanhuiwah
@kenlam296
@RonaldPark
I want to build an engine to direct convert boolean algebra to the circuit.
Features:
- Rather than click on the truth table, I want to let use input the formula by text, e.g. o=ab+c
- Capture letter means not so o=aB+c means a or not b and c
- First stage we only support single-character input/output names. So there will be 26 inputs and 26 outputs
- First stage no need to perform any logic optimization
- Design needs to be flexible enough for future support pluggable optimization engine
Because this is super foundation tech, so straight follow the building steps
- The boolean algebra parser done here by antlr https://gitlab.com/quantr/eda/quantr-boolean-algebra-library
- Main intake is QuantrBooleanAlgebra.parse(String) function
Hints:
- Use quantr netbeans antlr plugin to debug the g4. To install it, follow https://netbeans.quantr.hk/ Something like this:
- https://www.youtube.com/watch?v=rDFkhrHxHMw&t=105s
Edited by Placeholder Peter