2021-07-27 22:24:40 -04:00
|
|
|
//#############################################################################
|
|
|
|
//# Function: Positive edge-triggered static inverting D-type flop-flop with #
|
|
|
|
// async active low reset. #
|
|
|
|
//# Copyright: OH Project Authors. ALl rights Reserved. #
|
|
|
|
//# License: MIT (see LICENSE file in OH repository) #
|
|
|
|
//#############################################################################
|
|
|
|
|
2021-07-27 22:55:45 -04:00
|
|
|
module asic_dffrqn #(parameter PROP = "DEFAULT") (
|
2021-07-27 22:24:40 -04:00
|
|
|
input d,
|
|
|
|
input clk,
|
|
|
|
input nreset,
|
|
|
|
output reg qn
|
|
|
|
);
|
|
|
|
|
|
|
|
always @ (posedge clk or negedge nreset)
|
|
|
|
if(!nreset)
|
|
|
|
qn <= 1'b1;
|
|
|
|
else
|
|
|
|
qn <= ~d;
|
|
|
|
|
|
|
|
endmodule
|