Add some more comments
authorEddie Hung <eddie@fpgeh.com>
Mon, 10 Jun 2019 17:27:55 +0000 (10:27 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 10 Jun 2019 17:27:55 +0000 (10:27 -0700)
tests/aiger/run-test.sh

index e56d0fa80c6b283172747154a608c7c2b409654c..f52eb4ac1a8de7df2fc0b8b63bb6b051a5a02f1a 100755 (executable)
@@ -2,9 +2,14 @@
 
 set -e
 
+# NB: *.aag and *.aig must contain a symbol table naming the primary
+#     inputs and outputs, otherwise ABC and Yosys will name them
+#     arbitrarily (and inconsistently with each other).
+
 for aag in *.aag; do
     # Since ABC cannot read *.aag, read the *.aig instead
-    # (which would have been created by the reference aig2aig utility)
+    # (which would have been created by the reference aig2aig utility,
+    #  available from http://fmv.jku.at/aiger/)
     ../../yosys-abc -c "read -c ${aag%.*}.aig; write ${aag%.*}_ref.v"
     ../../yosys -p "
 read_verilog ${aag%.*}_ref.v