Ohmilord this wasn't added all this time!?!
authorEddie Hung <eddie@fpgeh.com>
Fri, 4 Oct 2019 17:34:16 +0000 (10:34 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 4 Oct 2019 17:34:16 +0000 (10:34 -0700)
techlibs/ice40/abc_model.v [new file with mode: 0644]

diff --git a/techlibs/ice40/abc_model.v b/techlibs/ice40/abc_model.v
new file mode 100644 (file)
index 0000000..89961b5
--- /dev/null
@@ -0,0 +1,29 @@
+(* abc9_box_id = 1, lib_whitebox *)
+module \$__ICE40_CARRY_WRAPPER (
+       (* abc_carry *)
+       output CO,
+       output O,
+       input A, B,
+       (* abc_carry *)
+       input CI,
+       input I0, I3
+);
+       parameter LUT = 0;
+       SB_CARRY carry (
+               .I0(A),
+               .I1(B),
+               .CI(CI),
+               .CO(CO)
+       );
+       SB_LUT4 #(
+               .LUT_INIT(LUT)
+       ) adder (
+               .I0(I0),
+               .I1(A),
+               .I2(B),
+               .I3(I3),
+               .O(O)
+       );
+endmodule
+
+