aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-03-07 09:08:26 -0800
committerClifford Wolf <clifford@clifford.at>2019-03-07 09:08:26 -0800
commit350dfd3745ec2efa92a601d3bab7712fd9bec07c (patch)
tree8fb2f08e4f7a88796d3e7647a4eeaaced06197f7
parent8b0719d1e328751a50c0c07ec1fc65884fd119fc (diff)
downloadyosys-350dfd3745ec2efa92a601d3bab7712fd9bec07c.tar.gz
yosys-350dfd3745ec2efa92a601d3bab7712fd9bec07c.tar.bz2
yosys-350dfd3745ec2efa92a601d3bab7712fd9bec07c.zip
Add link to SF2 / igloo2 macro library guide
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--techlibs/sf2/cells_sim.v45
1 files changed, 24 insertions, 21 deletions
diff --git a/techlibs/sf2/cells_sim.v b/techlibs/sf2/cells_sim.v
index f3f7695cf..c62748b11 100644
--- a/techlibs/sf2/cells_sim.v
+++ b/techlibs/sf2/cells_sim.v
@@ -1,3 +1,27 @@
+// https://coredocs.s3.amazonaws.com/Libero/12_0_0/Tool/sf2_mlg.pdf
+
+module ADD2 (
+
+ input A, B,
+ output Y
+);
+ assign Y = A & B;
+endmodule
+
+module ADD3 (
+ input A, B, C,
+ output Y
+);
+ assign Y = A & B & C;
+endmodule
+
+module ADD4 (
+ input A, B, C, D,
+ output Y
+);
+ assign Y = A & B & C & D;
+endmodule
+
module CFG1 (
output Y,
input A
@@ -36,27 +60,6 @@ module CFG4 (
assign Y = INIT >> {D, C, B, A};
endmodule
-module ADD2 (
- input A, B,
- output Y
-);
- assign Y = A & B;
-endmodule
-
-module ADD3 (
- input A, B, C,
- output Y
-);
- assign Y = A & B & C;
-endmodule
-
-module ADD4 (
- input A, B, C, D,
- output Y
-);
- assign Y = A & B & C & D;
-endmodule
-
module BUFF (
input A,
output Y