chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

physical width of tilelink bus

Open zhushaofeng1992 opened this issue 5 years ago • 2 comments

what is the physical width of the tilelink?

According to the SiFive TileLink Specification, the ABCDE channel are "five physically distinct unidirectional parallel buses", if the physical width of eache channel is 64bit, does that means the physical width of the overall tilelink will be 5*64bit=320bit? https://sifive.cdn.prismic.io/sifive%2Fcab05224-2df1-4af8-adee-8d9cba3378cd_tilelink-spec-1.8.0.pdf

zhushaofeng1992 avatar Aug 09 '21 11:08 zhushaofeng1992

Tilelink defines the protocol, but the physical datapath width can change across different buses. For example, the default system bus width in rocketchip is 64 bits, but configurations with accelerator such as Hwacha or Gemmini change it to 128 bits. (as you can see in this Gemmini configuration).

With respect to the total number of wires on the bus, I don't believe your calculation is correct, since the protocol involves many more wires (ready, valid, id, beat, etc.) which are not directly related to the width of the datapath (which in your example you defined as 64bit).

alonamid avatar Aug 11 '21 16:08 alonamid

Yes, looking at the systembus verilog code generated for chisel, the bus width is not simplily calculated by 5*64bit

module SystemBus( // @[:[email protected]]
  input         clock, // @[:[email protected]]
  input         reset, // @[:[email protected]]
  input         auto_coupler_to_slave_named_Error_buffer_out_a_ready, // @[:[email protected]]
  output        auto_coupler_to_slave_named_Error_buffer_out_a_valid, // @[:[email protected]]
  output [2:0]  auto_coupler_to_slave_named_Error_buffer_out_a_bits_opcode, // @[:[email protected]]
  output [2:0]  auto_coupler_to_slave_named_Error_buffer_out_a_bits_param, // @[:[email protected]]
  output [3:0]  auto_coupler_to_slave_named_Error_buffer_out_a_bits_size, // @[:[email protected]]
  output [4:0]  auto_coupler_to_slave_named_Error_buffer_out_a_bits_source, // @[:[email protected]]
  output [13:0] auto_coupler_to_slave_named_Error_buffer_out_a_bits_address, // @[:[email protected]]
  output [7:0]  auto_coupler_to_slave_named_Error_buffer_out_a_bits_mask, // @[:[email protected]]
  output        auto_coupler_to_slave_named_Error_buffer_out_d_ready, // @[:[email protected]]
  input         auto_coupler_to_slave_named_Error_buffer_out_d_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_to_slave_named_Error_buffer_out_d_bits_opcode, // @[:[email protected]]
  input  [3:0]  auto_coupler_to_slave_named_Error_buffer_out_d_bits_size, // @[:[email protected]]
  input  [4:0]  auto_coupler_to_slave_named_Error_buffer_out_d_bits_source, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_ready, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_valid, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_id, // @[:[email protected]]
  output [30:0] auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_addr, // @[:[email protected]]
  output [7:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_len, // @[:[email protected]]
  output [2:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_size, // @[:[email protected]]
  output [1:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_burst, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_lock, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_cache, // @[:[email protected]]
  output [2:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_prot, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_aw_bits_qos, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_w_ready, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_w_valid, // @[:[email protected]]
  output [63:0] auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_w_bits_data, // @[:[email protected]]
  output [7:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_w_bits_strb, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_w_bits_last, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_b_ready, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_b_valid, // @[:[email protected]]
  input  [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_b_bits_id, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_b_bits_resp, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_ready, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_valid, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_id, // @[:[email protected]]
  output [30:0] auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_addr, // @[:[email protected]]
  output [7:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_len, // @[:[email protected]]
  output [2:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_size, // @[:[email protected]]
  output [1:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_burst, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_lock, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_cache, // @[:[email protected]]
  output [2:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_prot, // @[:[email protected]]
  output [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_ar_bits_qos, // @[:[email protected]]
  output        auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_ready, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_valid, // @[:[email protected]]
  input  [3:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_bits_id, // @[:[email protected]]
  input  [63:0] auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_bits_data, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_bits_resp, // @[:[email protected]]
  input         auto_coupler_to_port_named_mmio_port_axi4_axi4buf_out_r_bits_last, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_a_ready, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_a_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_from_tile_named_tile_fixer_in_a_bits_opcode, // @[:[email protected]]
  input  [2:0]  auto_coupler_from_tile_named_tile_fixer_in_a_bits_param, // @[:[email protected]]
  input  [3:0]  auto_coupler_from_tile_named_tile_fixer_in_a_bits_size, // @[:[email protected]]
  input  [1:0]  auto_coupler_from_tile_named_tile_fixer_in_a_bits_source, // @[:[email protected]]
  input  [31:0] auto_coupler_from_tile_named_tile_fixer_in_a_bits_address, // @[:[email protected]]
  input  [7:0]  auto_coupler_from_tile_named_tile_fixer_in_a_bits_mask, // @[:[email protected]]
  input  [63:0] auto_coupler_from_tile_named_tile_fixer_in_a_bits_data, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_b_ready, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_b_valid, // @[:[email protected]]
  output [1:0]  auto_coupler_from_tile_named_tile_fixer_in_b_bits_param, // @[:[email protected]]
  output [31:0] auto_coupler_from_tile_named_tile_fixer_in_b_bits_address, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_c_ready, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_c_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_from_tile_named_tile_fixer_in_c_bits_opcode, // @[:[email protected]]
  input  [2:0]  auto_coupler_from_tile_named_tile_fixer_in_c_bits_param, // @[:[email protected]]
  input  [3:0]  auto_coupler_from_tile_named_tile_fixer_in_c_bits_size, // @[:[email protected]]
  input  [1:0]  auto_coupler_from_tile_named_tile_fixer_in_c_bits_source, // @[:[email protected]]
  input  [31:0] auto_coupler_from_tile_named_tile_fixer_in_c_bits_address, // @[:[email protected]]
  input  [63:0] auto_coupler_from_tile_named_tile_fixer_in_c_bits_data, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_c_bits_error, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_d_ready, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_d_valid, // @[:[email protected]]
  output [2:0]  auto_coupler_from_tile_named_tile_fixer_in_d_bits_opcode, // @[:[email protected]]
  output [1:0]  auto_coupler_from_tile_named_tile_fixer_in_d_bits_param, // @[:[email protected]]
  output [3:0]  auto_coupler_from_tile_named_tile_fixer_in_d_bits_size, // @[:[email protected]]
  output [1:0]  auto_coupler_from_tile_named_tile_fixer_in_d_bits_source, // @[:[email protected]]
  output [2:0]  auto_coupler_from_tile_named_tile_fixer_in_d_bits_sink, // @[:[email protected]]
  output [63:0] auto_coupler_from_tile_named_tile_fixer_in_d_bits_data, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_d_bits_error, // @[:[email protected]]
  output        auto_coupler_from_tile_named_tile_fixer_in_e_ready, // @[:[email protected]]
  input         auto_coupler_from_tile_named_tile_fixer_in_e_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_from_tile_named_tile_fixer_in_e_bits_sink, // @[:[email protected]]
  input         auto_coupler_to_mbus_nodelay_out_a_ready, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_a_valid, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_a_bits_opcode, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_a_bits_param, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_a_bits_size, // @[:[email protected]]
  output [4:0]  auto_coupler_to_mbus_nodelay_out_a_bits_source, // @[:[email protected]]
  output [31:0] auto_coupler_to_mbus_nodelay_out_a_bits_address, // @[:[email protected]]
  output [7:0]  auto_coupler_to_mbus_nodelay_out_a_bits_mask, // @[:[email protected]]
  output [63:0] auto_coupler_to_mbus_nodelay_out_a_bits_data, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_b_ready, // @[:[email protected]]
  input         auto_coupler_to_mbus_nodelay_out_b_valid, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_mbus_nodelay_out_b_bits_param, // @[:[email protected]]
  input  [31:0] auto_coupler_to_mbus_nodelay_out_b_bits_address, // @[:[email protected]]
  input         auto_coupler_to_mbus_nodelay_out_c_ready, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_c_valid, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_c_bits_opcode, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_c_bits_param, // @[:[email protected]]
  output [2:0]  auto_coupler_to_mbus_nodelay_out_c_bits_size, // @[:[email protected]]
  output [4:0]  auto_coupler_to_mbus_nodelay_out_c_bits_source, // @[:[email protected]]
  output [31:0] auto_coupler_to_mbus_nodelay_out_c_bits_address, // @[:[email protected]]
  output [63:0] auto_coupler_to_mbus_nodelay_out_c_bits_data, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_c_bits_error, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_d_ready, // @[:[email protected]]
  input         auto_coupler_to_mbus_nodelay_out_d_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_to_mbus_nodelay_out_d_bits_opcode, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_mbus_nodelay_out_d_bits_param, // @[:[email protected]]
  input  [2:0]  auto_coupler_to_mbus_nodelay_out_d_bits_size, // @[:[email protected]]
  input  [4:0]  auto_coupler_to_mbus_nodelay_out_d_bits_source, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_mbus_nodelay_out_d_bits_sink, // @[:[email protected]]
  input  [63:0] auto_coupler_to_mbus_nodelay_out_d_bits_data, // @[:[email protected]]
  input         auto_coupler_to_mbus_nodelay_out_d_bits_error, // @[:[email protected]]
  output        auto_coupler_to_mbus_nodelay_out_e_valid, // @[:[email protected]]
  output [1:0]  auto_coupler_to_mbus_nodelay_out_e_bits_sink, // @[:[email protected]]
  input         auto_coupler_to_pbus_fixer_out_a_ready, // @[:[email protected]]
  output        auto_coupler_to_pbus_fixer_out_a_valid, // @[:[email protected]]
  output [2:0]  auto_coupler_to_pbus_fixer_out_a_bits_opcode, // @[:[email protected]]
  output [2:0]  auto_coupler_to_pbus_fixer_out_a_bits_param, // @[:[email protected]]
  output [2:0]  auto_coupler_to_pbus_fixer_out_a_bits_size, // @[:[email protected]]
  output [4:0]  auto_coupler_to_pbus_fixer_out_a_bits_source, // @[:[email protected]]
  output [27:0] auto_coupler_to_pbus_fixer_out_a_bits_address, // @[:[email protected]]
  output [7:0]  auto_coupler_to_pbus_fixer_out_a_bits_mask, // @[:[email protected]]
  output [63:0] auto_coupler_to_pbus_fixer_out_a_bits_data, // @[:[email protected]]
  output        auto_coupler_to_pbus_fixer_out_d_ready, // @[:[email protected]]
  input         auto_coupler_to_pbus_fixer_out_d_valid, // @[:[email protected]]
  input  [2:0]  auto_coupler_to_pbus_fixer_out_d_bits_opcode, // @[:[email protected]]
  input  [1:0]  auto_coupler_to_pbus_fixer_out_d_bits_param, // @[:[email protected]]
  input  [2:0]  auto_coupler_to_pbus_fixer_out_d_bits_size, // @[:[email protected]]
  input  [4:0]  auto_coupler_to_pbus_fixer_out_d_bits_source, // @[:[email protected]]
  input         auto_coupler_to_pbus_fixer_out_d_bits_sink, // @[:[email protected]]
  input  [63:0] auto_coupler_to_pbus_fixer_out_d_bits_data, // @[:[email protected]]
  input         auto_coupler_to_pbus_fixer_out_d_bits_error, // @[:[email protected]]
  output        auto_master_splitter_in_a_ready, // @[:[email protected]]
  input         auto_master_splitter_in_a_valid, // @[:[email protected]]
  input  [2:0]  auto_master_splitter_in_a_bits_opcode, // @[:[email protected]]
  input  [2:0]  auto_master_splitter_in_a_bits_param, // @[:[email protected]]
  input  [3:0]  auto_master_splitter_in_a_bits_size, // @[:[email protected]]
  input  [3:0]  auto_master_splitter_in_a_bits_source, // @[:[email protected]]
  input  [31:0] auto_master_splitter_in_a_bits_address, // @[:[email protected]]
  input  [7:0]  auto_master_splitter_in_a_bits_mask, // @[:[email protected]]
  input  [63:0] auto_master_splitter_in_a_bits_data, // @[:[email protected]]
  input         auto_master_splitter_in_d_ready, // @[:[email protected]]
  output        auto_master_splitter_in_d_valid, // @[:[email protected]]
  output [2:0]  auto_master_splitter_in_d_bits_opcode, // @[:[email protected]]
  output [1:0]  auto_master_splitter_in_d_bits_param, // @[:[email protected]]
  output [3:0]  auto_master_splitter_in_d_bits_size, // @[:[email protected]]
  output [3:0]  auto_master_splitter_in_d_bits_source, // @[:[email protected]]
  output [2:0]  auto_master_splitter_in_d_bits_sink, // @[:[email protected]]
  output [63:0] auto_master_splitter_in_d_bits_data, // @[:[email protected]]
  output        auto_master_splitter_in_d_bits_error // @[:[email protected]]
);

zhushaofeng1992 avatar Aug 12 '21 07:08 zhushaofeng1992