From 8ebba8a35f0a5dbf3a044ab84575edfc46c99d77 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 12 Oct 2016 01:18:39 +0200 Subject: Added $ff and $_FF_ cell types --- techlibs/common/simlib.v | 13 +++++++++++++ techlibs/common/techmap.v | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'techlibs/common') diff --git a/techlibs/common/simlib.v b/techlibs/common/simlib.v index 922a47cab..db818269b 100644 --- a/techlibs/common/simlib.v +++ b/techlibs/common/simlib.v @@ -1383,6 +1383,19 @@ endmodule `endif // -------------------------------------------------------- +module \$ff (D, Q); + +parameter WIDTH = 0; + +input [WIDTH-1:0] D; +output [WIDTH-1:0] Q; + +assign D = Q; + +endmodule + +// -------------------------------------------------------- + module \$dff (CLK, D, Q); parameter WIDTH = 0; diff --git a/techlibs/common/techmap.v b/techlibs/common/techmap.v index 90c4ed7eb..d7ec3947e 100644 --- a/techlibs/common/techmap.v +++ b/techlibs/common/techmap.v @@ -64,7 +64,7 @@ module _90_simplemap_various; endmodule (* techmap_simplemap *) -(* techmap_celltype = "$sr $dff $dffe $adff $dffsr $dlatch" *) +(* techmap_celltype = "$sr $ff $dff $dffe $adff $dffsr $dlatch" *) module _90_simplemap_registers; endmodule -- cgit v1.2.3