abc9: test to use box file instead of auto
authorEddie Hung <eddie@fpgeh.com>
Thu, 16 Apr 2020 17:49:33 +0000 (10:49 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 17:33:56 +0000 (10:33 -0700)
tests/simple_abc9/abc9.box [new file with mode: 0644]
tests/simple_abc9/abc9.v
tests/simple_abc9/run-test.sh

diff --git a/tests/simple_abc9/abc9.box b/tests/simple_abc9/abc9.box
new file mode 100644 (file)
index 0000000..b3c8843
--- /dev/null
@@ -0,0 +1,3 @@
+MUXF8 1 0 3 1
+#I0 I1 S
+0 0 0 # O
index 688b47586daa0b0771f68558421a1e69d021eeb3..5e969c614566ca8312ff9a802c3bfeb1516305d2 100644 (file)
@@ -213,7 +213,7 @@ module arbiter (clk, rst, request, acknowledge, grant, grant_valid, grant_encode
   input rst;
 endmodule
 
-(* abc9_box, blackbox *)
+(* abc9_box_id=1, blackbox *)
 module MUXF8(input I0, I1, S, output O);
 specify
     (I0 => O) = 0;
index 424d8f4171effcbf2b01987cb8df2f9aa9e0720c..650e42fcab8f79fe2b9c074b2248196ef213eae5 100755 (executable)
@@ -25,7 +25,7 @@ exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.v *.sv EXTRA_FLAGS="-n 300 -p
     synth -run coarse; \
     opt -full; \
     techmap; \
-    abc9 -lut 4; \
+    abc9 -lut 4 -box ../abc9.box; \
     clean; \
     check -assert; \
     select -assert-none t:${DOLLAR}_NOT_ t:${DOLLAR}_AND_ %%; \