cjdrake / pyeda

Python EDA
BSD 2-Clause "Simplified" License
301 stars 55 forks source link

Is there a easy way to convert hierarchical expression to a single expression? #150

Open danielchen26 opened 5 years ago

danielchen26 commented 5 years ago

'O = NOR(I1), I1 = NOR(I2, I3), I2 = NOR(b), I3 = NOR(I4), I4 = NOR(I5, a), I5 = NOR(c)'

For example, I want the output O to be written in terms of a, b, c. how can I directly translate these parallel hierarchical expression into a single logical function and get truthtable.