28 lines
631 B
Systemverilog
Executable File
28 lines
631 B
Systemverilog
Executable File
//===============================================
|
|
//Name : STD_DFF
|
|
//Author : cuiluping
|
|
//Email : luping.cui@rivai-ic.com.cn
|
|
//Date : 2019-08-24
|
|
//Description : no reset no enable D flip flop
|
|
//-----------------------------------------------
|
|
//All Rights Reserved by rivai company
|
|
//===============================================
|
|
|
|
module std_dff
|
|
#(
|
|
parameter WIDTH = 8
|
|
)
|
|
(
|
|
input clk,
|
|
input [WIDTH-1:0] d,
|
|
output [WIDTH-1:0] q
|
|
);
|
|
|
|
logic [WIDTH-1:0] dff_q;
|
|
always_ff @(posedge clk) begin
|
|
dff_q <= d;
|
|
end
|
|
|
|
assign q = dff_q;
|
|
endmodule
|