aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/xilinx
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-07-11 10:52:33 -0700
committerEddie Hung <eddie@fpgeh.com>2019-07-11 10:52:33 -0700
commit8fef4c359419998eb4b068b019cbeb7faae331b7 (patch)
tree81762c523ab178130fd266cadb1ad42940d7af99 /techlibs/xilinx
parent93fbd56db1c72403881281aa2c3e61bf6e622344 (diff)
downloadyosys-8fef4c359419998eb4b068b019cbeb7faae331b7.tar.gz
yosys-8fef4c359419998eb4b068b019cbeb7faae331b7.tar.bz2
yosys-8fef4c359419998eb4b068b019cbeb7faae331b7.zip
Simplify to $__ABC_ASYNC box
Diffstat (limited to 'techlibs/xilinx')
-rw-r--r--techlibs/xilinx/abc_ff.v21
-rw-r--r--techlibs/xilinx/abc_xc7.box6
2 files changed, 8 insertions, 19 deletions
diff --git a/techlibs/xilinx/abc_ff.v b/techlibs/xilinx/abc_ff.v
index 81696ddb5..69013f475 100644
--- a/techlibs/xilinx/abc_ff.v
+++ b/techlibs/xilinx/abc_ff.v
@@ -67,12 +67,7 @@ module FDCE (output reg Q, input C, CE, D, CLR);
.D(D), .Q(\$nextQ ), .\$pastQ (Q), .C(C), .CE(CE), .CLR(CLR)
);
\$__ABC_FF_ abc_dff (.D(\$nextQ ), .Q(\$currQ ));
- generate
- if (IS_CLR_INVERTED)
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(\$currQ ), .B(1'b0), .S(CLR), .Y(Q));
- else
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(1'b0), .B(\$currQ ), .S(CLR), .Y(Q));
- endgenerate
+ \$__ABC_ASYNC abc_async (.A(\$currQ ), .S(CLR), .Y(Q));
endmodule
module FDCE_1 (output reg Q, input C, CE, D, CLR);
parameter [0:0] INIT = 1'b0;
@@ -85,7 +80,7 @@ module FDCE_1 (output reg Q, input C, CE, D, CLR);
.D(D), .Q(\$nextQ ), .\$pastQ (Q), .C(C), .CE(CE), .CLR(CLR)
);
\$__ABC_FF_ abc_dff (.D(\$nextQ ), .Q(\$currQ ));
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(\$currQ ), .B(1'b0), .S(CLR), .Y(Q));
+ \$__ABC_ASYNC abc_async (.A(\$currQ ), .S(CLR), .Y(Q));
endmodule
module FDPE (output reg Q, input C, CE, D, PRE);
@@ -105,12 +100,7 @@ module FDPE (output reg Q, input C, CE, D, PRE);
.D(D), .Q(\$nextQ ), .\$pastQ (Q), .C(C), .CE(CE), .PRE(PRE)
);
\$__ABC_FF_ abc_dff (.D(\$nextQ ), .Q(\$currQ ));
- generate
- if (IS_PRE_INVERTED)
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(\$currQ ), .B(1'b1), .S(PRE), .Y(Q));
- else
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(1'b1), .B(\$currQ ), .S(PRE), .Y(Q));
- endgenerate
+ \$__ABC_ASYNC abc_async (.A(\$currQ ), .S(PRE), .Y(Q));
endmodule
module FDPE_1 (output reg Q, input C, CE, D, PRE);
parameter [0:0] INIT = 1'b0;
@@ -123,7 +113,7 @@ module FDPE_1 (output reg Q, input C, CE, D, PRE);
.D(D), .Q(\$nextQ ), .\$pastQ (Q), .C(C), .CE(CE), .PRE(PRE)
);
\$__ABC_FF_ abc_dff (.D(\$nextQ ), .Q(\$currQ ));
- \$__ABC_FD_ASYNC_MUX abc_async_mux (.A(\$currQ ), .B(1'b1), .S(PRE), .Y(Q));
+ \$__ABC_ASYNC abc_async (.A(\$currQ ), .S(PRE), .Y(Q));
endmodule
`ifndef _ABC
@@ -131,8 +121,7 @@ module \$__ABC_FF_ (input C, D, output Q);
endmodule
(* abc_box_id = 1000 *)
-module \$__ABC_FD_ASYNC_MUX (input A, B, S, output Y);
-// assign Q = S ? B : A;
+module \$__ABC_ASYNC (input A, S, output Y);
endmodule
(* abc_box_id = 1001, lib_whitebox, abc_flop = "FDRE" *)
diff --git a/techlibs/xilinx/abc_xc7.box b/techlibs/xilinx/abc_xc7.box
index ed283deac..df16c3af1 100644
--- a/techlibs/xilinx/abc_xc7.box
+++ b/techlibs/xilinx/abc_xc7.box
@@ -57,10 +57,10 @@ RAM128X1D 7 0 17 2
- - - - - - - - 1009 998 839 774 605 494 450 - -
1047 1036 877 812 643 532 478 - - - - - - - - - -
-# Inputs: A B S
+# Inputs: A S
# Outputs: Y
-$__ABC_FD_ASYNC_MUX_ 1000 0 3 1
-0 0 764
+$__ABC_ASYNC 1000 0 2 1
+0 764
# Inputs: C CE D R \$pastQ
# Outputs: Q