- Write programs that do one thing and do it well.
- Write programs to work together.
- Write programs to handle text streams, because that is a universal interface.
- Parse the file
- Simulate circuit
- Optimise expression (find ordering, slice, etc)
- Actually simulate
Simulator program: tensim
- Simply simulate a circuit:
cat circuit | tensim > result```
- Simulate a circuit in wierd format
cat circuit | tensim parse -f wierd | tensim > result```
- Simulate N generated circuits in one command
generate_circ -n 1 >> circuits
generate_circ -n 2 >> circuits
....
cat circuits | tensim > results