mirror of
https://github.com/aolofsson/oh.git
synced 2025-02-07 06:44:09 +08:00
21 lines
743 B
Coq
21 lines
743 B
Coq
|
//#############################################################################
|
||
|
//# Function: Positive edge-triggered inverting 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_sdffqn #(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] qn
|
||
|
);
|
||
|
|
||
|
always @ (posedge clk)
|
||
|
qn <= se ? ~si : ~d;
|
||
|
|
||
|
endmodule
|