We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf88638 commit ac62889Copy full SHA for ac62889
src/cells.v
@@ -88,6 +88,25 @@ module dff_cell (
88
89
endmodule
90
91
+(* keep_hierarchy *)
92
+module dffr_cell (
93
+ input wire clk,
94
+ input wire d,
95
+ input wire r,
96
+ output reg q,
97
+ output wire notq
98
+ );
99
+
100
+ assign notq = !q;
101
102
+ always @(posedge clk or posedge r) begin
103
+ if (r)
104
+ q <= 0;
105
+ else
106
+ q <= d;
107
+ end
108
+endmodule
109
110
(* keep_hierarchy *)
111
module dffsr_cell (
112
input wire clk,
0 commit comments