Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
`include "bp_common_defines.svh"
`include "bp_me_defines.svh"
`include "bp_top_defines.svh"
module bp_cacc_tile_node
import bp_common_pkg::*;
import bp_be_pkg::*;
import bsg_noc_pkg::*;
import bsg_wormhole_router_pkg::*;
import bp_me_pkg::*;
#(parameter bp_params_e bp_params_p = e_bp_default_cfg
`declare_bp_proc_params(bp_params_p)
, localparam coh_noc_ral_link_width_lp = `bsg_ready_and_link_sif_width(coh_noc_flit_width_p)
, localparam dma_noc_ral_link_width_lp = `bsg_ready_and_link_sif_width(dma_noc_flit_width_p)
, parameter accelerator_type_p = 1
)
(input core_clk_i
, input core_reset_i
, input coh_clk_i
, input coh_reset_i
, input [coh_noc_cord_width_p-1:0] my_cord_i
// Connected to other tiles on east and west
, input [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_req_link_i
, output logic [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_req_link_o
, input [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_cmd_link_i
, output logic [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_cmd_link_o
, input [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_fill_link_i
, output logic [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_fill_link_o
, input [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_resp_link_i
, output logic [S:W][coh_noc_ral_link_width_lp-1:0] coh_lce_resp_link_o
);
// Declare the routing links
`declare_bsg_ready_and_link_sif_s(coh_noc_flit_width_p, bp_coh_ready_and_link_s);
// Tile-side coherence connections
bp_coh_ready_and_link_s accel_lce_req_link_li, accel_lce_req_link_lo;
bp_coh_ready_and_link_s accel_lce_cmd_link_li, accel_lce_cmd_link_lo;
bp_coh_ready_and_link_s accel_lce_fill_link_li, accel_lce_fill_link_lo;
bp_coh_ready_and_link_s accel_lce_resp_link_li, accel_lce_resp_link_lo;
bp_cacc_tile
#(.bp_params_p(bp_params_p))
accel_tile
(.clk_i(core_clk_i)
,.reset_i(core_reset_i)
,.my_cord_i(my_cord_i)
,.lce_req_link_i(accel_lce_req_link_li)
,.lce_req_link_o(accel_lce_req_link_lo)
,.lce_cmd_link_i(accel_lce_cmd_link_li)
,.lce_cmd_link_o(accel_lce_cmd_link_lo)
,.lce_fill_link_i(accel_lce_fill_link_li)
,.lce_fill_link_o(accel_lce_fill_link_lo)
,.lce_resp_link_i(accel_lce_resp_link_li)
,.lce_resp_link_o(accel_lce_resp_link_lo)
);
bp_nd_socket
#(.flit_width_p(coh_noc_flit_width_p)
,.dims_p(coh_noc_dims_p)
,.cord_dims_p(coh_noc_dims_p)
,.cord_markers_pos_p(coh_noc_cord_markers_pos_p)
,.len_width_p(coh_noc_len_width_p)
,.routing_matrix_p(StrictYX | YX_Allow_W)
,.async_clk_p(async_coh_clk_p)
,.els_p(4)
)
cac_coh_socket
(.tile_clk_i(core_clk_i)
,.tile_reset_i(core_reset_i)
,.network_clk_i(coh_clk_i)
,.network_reset_i(coh_reset_i)
,.my_cord_i(my_cord_i)
,.network_link_i({coh_lce_req_link_i, coh_lce_cmd_link_i, coh_lce_fill_link_i, coh_lce_resp_link_i})
,.network_link_o({coh_lce_req_link_o, coh_lce_cmd_link_o, coh_lce_fill_link_o, coh_lce_resp_link_o})
,.tile_link_i({accel_lce_req_link_lo, accel_lce_cmd_link_lo, accel_lce_fill_link_lo, accel_lce_resp_link_lo})
,.tile_link_o({accel_lce_req_link_li, accel_lce_cmd_link_li, accel_lce_fill_link_li, accel_lce_resp_link_li})
);
endmodule
563ab6561This file is pinned to the selected release. Download the original to open it in your design tool.