mirror of https://github.com/YosysHQ/yosys.git
remove duplicate DFFR
This commit is contained in:
parent
2fb20f184a
commit
72323e11a4
|
@ -38,16 +38,6 @@ module DFFN (output reg Q, input CLK, D);
|
||||||
Q <= D;
|
Q <= D;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module DFFR (output reg Q, input D, CLK, RESET);
|
|
||||||
parameter [0:0] INIT = 1'b0;
|
|
||||||
initial Q = INIT;
|
|
||||||
always @(posedge CLK) begin
|
|
||||||
if (RESET)
|
|
||||||
Q <= 1'b0;
|
|
||||||
else
|
|
||||||
Q <= D;
|
|
||||||
end
|
|
||||||
endmodule // DFFR (positive clock edge; synchronous reset)
|
|
||||||
|
|
||||||
module DFFE (output reg Q, input D, CLK, CE);
|
module DFFE (output reg Q, input D, CLK, CE);
|
||||||
parameter [0:0] INIT = 1'b0;
|
parameter [0:0] INIT = 1'b0;
|
||||||
|
|
Loading…
Reference in New Issue