mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
e631bfe3f1
-The directory should contain rtl only. -HDL is too broad a term
18 lines
602 B
Verilog
18 lines
602 B
Verilog
//#############################################################################
|
|
//# Function: Positive edge-triggered inverting static D-type flop-flop #
|
|
//# Copyright: OH Project Authors. ALl rights Reserved. #
|
|
//# License: MIT (see LICENSE file in OH repository) #
|
|
//#############################################################################
|
|
|
|
module oh_dffqn #(parameter DW = 1) // array width
|
|
(
|
|
input [DW-1:0] d,
|
|
input [DW-1:0] clk,
|
|
output reg [DW-1:0] qn
|
|
);
|
|
|
|
always @ (posedge clk)
|
|
qn <= ~d;
|
|
|
|
endmodule
|