Add dff2ff.v techmap file
authorClifford Wolf <clifford@clifford.at>
Wed, 31 May 2017 09:45:58 +0000 (11:45 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 31 May 2017 09:45:58 +0000 (11:45 +0200)
techlibs/common/Makefile.inc
techlibs/common/dff2ff.v [new file with mode: 0644]

index 236d6c551acb147980cb3dcdec5714474520b56e..ab961ac0b898958f7c689bfef30c2d5b15550b11 100644 (file)
@@ -24,5 +24,6 @@ $(eval $(call add_share_file,share,techlibs/common/simcells.v))
 $(eval $(call add_share_file,share,techlibs/common/techmap.v))
 $(eval $(call add_share_file,share,techlibs/common/pmux2mux.v))
 $(eval $(call add_share_file,share,techlibs/common/adff2dff.v))
+$(eval $(call add_share_file,share,techlibs/common/dff2ff.v))
 $(eval $(call add_share_file,share,techlibs/common/cells.lib))
 
diff --git a/techlibs/common/dff2ff.v b/techlibs/common/dff2ff.v
new file mode 100644 (file)
index 0000000..2dc4d20
--- /dev/null
@@ -0,0 +1,14 @@
+(* techmap_celltype = "$dff" *)
+module dff2ff (CLK, D, Q);
+       parameter WIDTH = 1;
+       parameter CLK_POLARITY = 1;
+
+       input CLK;
+       input [WIDTH-1:0] D;
+       output reg [WIDTH-1:0] Q;
+
+       wire [1023:0] _TECHMAP_DO_ = "proc;;";
+
+       always @($global_clock)
+               Q <= D;
+endmodule