aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/xilinx
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-04-16 14:53:28 -0700
committerEddie Hung <eddie@fpgeh.com>2019-04-16 14:53:28 -0700
commitcbb85e40e87fbfb1602bb934ed76a97efb9e55c6 (patch)
tree1afb529ee49da73f907916f8e0b1623d928102eb /techlibs/xilinx
parentece5c3ab38023abc251828b9379ea4eca9573abc (diff)
downloadyosys-cbb85e40e87fbfb1602bb934ed76a97efb9e55c6.tar.gz
yosys-cbb85e40e87fbfb1602bb934ed76a97efb9e55c6.tar.bz2
yosys-cbb85e40e87fbfb1602bb934ed76a97efb9e55c6.zip
Add MUXCY and XORCY to cells_box.v
Diffstat (limited to 'techlibs/xilinx')
-rw-r--r--techlibs/xilinx/cells.box6
-rw-r--r--techlibs/xilinx/cells_box.v9
2 files changed, 15 insertions, 0 deletions
diff --git a/techlibs/xilinx/cells.box b/techlibs/xilinx/cells.box
index c236d3c90..5ad284f47 100644
--- a/techlibs/xilinx/cells.box
+++ b/techlibs/xilinx/cells.box
@@ -11,3 +11,9 @@ F7BMUX 1 1 3 1
# Outputs: OUT
MUXF8 2 1 3 1
104 94 273
+
+MUXCY 3 1 3 1
+1 1 1
+
+XORCY 4 1 2 1
+1 1
diff --git a/techlibs/xilinx/cells_box.v b/techlibs/xilinx/cells_box.v
index 7805e6306..ef6f81d27 100644
--- a/techlibs/xilinx/cells_box.v
+++ b/techlibs/xilinx/cells_box.v
@@ -8,3 +8,12 @@ module MUXF8(output O, input I0, I1, S);
assign O = S ? I1 : I0;
endmodule
+(* abc_box_id = 3 *)
+module MUXCY(output O, input CI, DI, S);
+ assign O = S ? CI : DI;
+endmodule
+
+(* abc_box_id = 4 *)
+module XORCY(output O, input CI, LI);
+ assign O = CI ^ LI;
+endmodule