initial commit for open source NoC IP

This commit is contained in:
Zexin Fu
2023-11-26 14:59:34 +01:00
commit 6ba3d27334
122 changed files with 14907 additions and 0 deletions

36
rtl/model/cells/std_dffre.sv Executable file
View File

@@ -0,0 +1,36 @@
//===============================================
//Name : STD_DFFRE
//Author : cuiluping
//Email : luping.cui@rivai-ic.com.cn
//Date : 2019-08-24
//Description : with reset ,with enable D flip flop
//-----------------------------------------------
//All Rights Reserved by rivai company
//===============================================
module std_dffre
#(
parameter WIDTH = 8
)
(
input clk,
input rstn,
input en,
input [WIDTH-1:0] d,
output [WIDTH-1:0] q
);
logic [WIDTH-1:0] dff_q;
always_ff @(posedge clk or negedge rstn) begin
if(~rstn)begin
dff_q <= {WIDTH{1'b0}};
end
else if(en)begin
dff_q <= d;
end
end
assign q = dff_q;
endmodule