ecp5: Increase threshold for ALU mapping
authorDavid Shah <dave@ds0.me>
Mon, 21 Jan 2019 12:33:47 +0000 (12:33 +0000)
committerDavid Shah <dave@ds0.me>
Mon, 21 Jan 2019 12:33:47 +0000 (12:33 +0000)
Signed-off-by: David Shah <dave@ds0.me>
techlibs/ecp5/arith_map.v

index 1094c5f8a9aef11e490d2124bff009c4ca68b1f2..eb79476018ed07db8bf5f562bf8d33dd19053439 100644 (file)
@@ -33,7 +33,7 @@ module _80_ecp5_alu (A, B, CI, BI, X, Y, CO);
        input CI, BI;
        output [Y_WIDTH-1:0] CO;
 
-       wire _TECHMAP_FAIL_ = Y_WIDTH <= 2;
+       wire _TECHMAP_FAIL_ = Y_WIDTH <= 4;
 
        wire [Y_WIDTH-1:0] A_buf, B_buf;
        \$pos #(.A_SIGNED(A_SIGNED), .A_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) A_conv (.A(A), .Y(A_buf));