1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00
oh/stdcells/hdl/oh_sdffq.v
2021-05-24 20:52:04 -04:00

21 lines
733 B
Verilog

//#############################################################################
//# Function: Positive edge-triggered static D-type flop-flop with scan input #
//# #
//# Copyright: OH Project Authors. ALl rights Reserved. #
//# License: MIT (see LICENSE file in OH repository) #
//#############################################################################
module oh_sdffq #(parameter DW = 1) // array width
(
input [DW-1:0] d,
input [DW-1:0] si,
input [DW-1:0] se,
input [DW-1:0] clk,
output reg [DW-1:0] q
);
always @ (posedge clk)
q <= se ? si : d;
endmodule