Files
FPGA_DESIGN_IP/stream_rx_buffer/sim/instantiate_top.sv
2026-03-06 16:22:17 +08:00

49 lines
2.3 KiB
Systemverilog

/*>>>>>>>>>>>>>>>>>>>>>>>THIS FILE IS GENERERATED BY ROBOT >>>>>>>>>>>>>>>>>>>*/
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>port declaration>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*add all port here*/
/*use "logic" to replace "logic" and "logic" ports*/
/*use "wire" to replace "inout" ports*/
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<port declaration<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
//TODO:
parameter STREAM_WIDTH = 8;
parameter BUF_SIZE = 4096; // in bytes
parameter SEG_SIZE = 256; // in bytes
logic clk;
logic rst_n;
logic enable;
logic [7:0] max_resp_time; // ms
logic [31:0] buf_status;
logic [31:0] counter_rx_beats;
logic [31:0] counter_rx_bursts;
logic [31:0] counter_rx_segments;
logic [STREAM_WIDTH-1:0] tdata;
logic tvalid;
logic tlast;
logic [STREAM_WIDTH/8-1:0] tkeep;
logic [STREAM_WIDTH/8-1:0] tstrb;
logic tready;
logic buf_clk;
logic [$clog2(BUF_SIZE)-1:0] buf_addr;
logic [STREAM_WIDTH/8-1:0] buf_wea;
logic [STREAM_WIDTH-1:0] buf_wdata;
logic [STREAM_WIDTH-1:0] buf_rdata;
logic list_clk;
logic [11:0] list_addr;
logic [ 3:0] list_wea;
logic [31:0] list_wdata;
logic [31:0] list_rdata;
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>logic ports intialization>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*initialize all "logic" ports here
/*all inputs default as 0;modify if necessary
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<logic ports intialization<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
//TODO:
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>instantiate top most module>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<instantiate top most module<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
/*do not modify
*/
`TOP_ENTITY `TOP_INSTANCE(.*);