MatchLib
All Classes Namespaces Files Functions Modules Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr > Class Template Reference

An n-way splitter that connects a single AXI manager port to a multiple AXI subordinate ports. More...

#include <AxiSplitter.h>

Inheritance diagram for AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >:

Public Types

typedef axi::axi4< axiCfg > axi4_
 
typedef axi4_::read::template manager ::ARPort axi_rd_manager_ar
 
typedef axi4_::read::template manager ::RPort axi_rd_manager_r
 
typedef axi4_::write::template manager ::AWPort axi_wr_manager_aw
 
typedef axi4_::write::template manager ::WPort axi_wr_manager_w
 
typedef axi4_::write::template manager ::BPort axi_wr_manager_b
 

Public Member Functions

 SC_HAS_PROCESS (AxiSplitter)
 
 AxiSplitter (sc_module_name name)
 
void run_r ()
 
void run_w ()
 

Public Attributes

sc_in< bool > clk
 
sc_in< bool > reset_bar
 
nvhls::nv_array< axi_rd_manager_ar, numSubordinates > axi_rd_s_ar
 
nvhls::nv_array< axi_rd_manager_r, numSubordinates > axi_rd_s_r
 
nvhls::nv_array< axi_wr_manager_aw, numSubordinates > axi_wr_s_aw
 
nvhls::nv_array< axi_wr_manager_w, numSubordinates > axi_wr_s_w
 
nvhls::nv_array< axi_wr_manager_b, numSubordinates > axi_wr_s_b
 
axi4_::read::template subordinate axi_rd_m
 
axi4_::write::template subordinate axi_wr_m
 
sc_in< NVUINTW(numAddrBitsToInspect)> addrBound [numSubordinates][2]
 

Static Public Attributes

static const int kDebugLevel = 5
 
static const unsigned int log_numSubordinates = nvhls::log2_ceil<numSubordinates>::val + 1
 

Detailed Description

template<typename axiCfg, int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
class AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >

An n-way splitter that connects a single AXI manager port to a multiple AXI subordinate ports.

Template Parameters
axiCfgA valid AXI config.
numSubordinatesThe number of subordinates to send traffic to.
numAddrBitsToInspectThe number of address bits to inspect when determining which subordinate to direct traffic to. If this is less than the full address width, the routing determination will be made based on the number of address LSBs specified. (Default: axiCfg::addrWidth)
default_outputIf true, requests with addresses that do not fall in any of the specified address ranges will be directed to the highest-indexed subordinate port. (Default: false)
translate_addrIf true, requests are re-addressed relative to the base address of the receiving subordinate when they are passed through the splitter. (Default: false)
Overview
AxiSplitter connects one or more AXI subordinates to a single AXI manager. Requests from the manager are routed by address to the appropriate subordinate.
  • The address ranges for each subordinate must be contiguous (except for the highest-indexed subordinate if default_output is true). Address bounds for each subordinate are set by writing to a (numSubordinates x 2) array of sc_in.
  • Only a single outstanding request to all subordinates is allowed; AxiSplitter blocks further requests until the response has been returned.
  • As implemented, the splitter directs all writes from a burst to the destination indicated by the base address of the burst. Guards against crossing address boundaries are not implemented.
  • The AXI configs of all ports must be the same.
Usage Guidelines

This module sets the stall mode to flush by default to mitigate possible RTL bugs that can occur in the default stall mode. If you are confident that this class of bugs will not occur in your use case, you can change the stall mode via TCL directive:

directive set /path/to/AxiSplitter/run_r/while -PIPELINE_STALL_MODE stall
An n-way splitter that connects a single AXI manager port to a multiple AXI subordinate ports.
Definition AxiSplitter.h:62

This may reduce area/power.

Definition at line 62 of file AxiSplitter.h.

Member Typedef Documentation

◆ axi4_

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi::axi4<axiCfg> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi4_

Definition at line 68 of file AxiSplitter.h.

◆ axi_rd_manager_ar

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi4_::read::template manager ::ARPort AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_rd_manager_ar

Definition at line 70 of file AxiSplitter.h.

◆ axi_rd_manager_r

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi4_::read::template manager ::RPort AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_rd_manager_r

Definition at line 71 of file AxiSplitter.h.

◆ axi_wr_manager_aw

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi4_::write::template manager ::AWPort AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_manager_aw

Definition at line 72 of file AxiSplitter.h.

◆ axi_wr_manager_w

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi4_::write::template manager ::WPort AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_manager_w

Definition at line 73 of file AxiSplitter.h.

◆ axi_wr_manager_b

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
typedef axi4_::write::template manager ::BPort AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_manager_b

Definition at line 74 of file AxiSplitter.h.

Constructor & Destructor Documentation

◆ AxiSplitter()

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::AxiSplitter ( sc_module_name  name)
inline

Definition at line 93 of file AxiSplitter.h.

Member Function Documentation

◆ run_r()

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
void AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::run_r ( )
inline

Definition at line 118 of file AxiSplitter.h.

◆ run_w()

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
void AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::run_w ( )
inline

Definition at line 173 of file AxiSplitter.h.

Member Data Documentation

◆ kDebugLevel

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
const int AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::kDebugLevel = 5
static

Definition at line 64 of file AxiSplitter.h.

◆ clk

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
sc_in<bool> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::clk

Definition at line 65 of file AxiSplitter.h.

◆ reset_bar

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
sc_in<bool> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::reset_bar

Definition at line 66 of file AxiSplitter.h.

◆ log_numSubordinates

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
const unsigned int AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::log_numSubordinates = nvhls::log2_ceil<numSubordinates>::val + 1
static

Definition at line 76 of file AxiSplitter.h.

◆ axi_rd_s_ar

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
nvhls::nv_array<axi_rd_manager_ar, numSubordinates> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_rd_s_ar

Definition at line 81 of file AxiSplitter.h.

◆ axi_rd_s_r

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
nvhls::nv_array<axi_rd_manager_r, numSubordinates> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_rd_s_r

Definition at line 82 of file AxiSplitter.h.

◆ axi_wr_s_aw

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
nvhls::nv_array<axi_wr_manager_aw, numSubordinates> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_s_aw

Definition at line 83 of file AxiSplitter.h.

◆ axi_wr_s_w

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
nvhls::nv_array<axi_wr_manager_w, numSubordinates> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_s_w

Definition at line 84 of file AxiSplitter.h.

◆ axi_wr_s_b

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
nvhls::nv_array<axi_wr_manager_b, numSubordinates> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_s_b

Definition at line 85 of file AxiSplitter.h.

◆ axi_rd_m

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
axi4_::read::template subordinate AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_rd_m

Definition at line 86 of file AxiSplitter.h.

◆ axi_wr_m

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
axi4_::write::template subordinate AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::axi_wr_m

Definition at line 87 of file AxiSplitter.h.

◆ addrBound

template<typename axiCfg , int numSubordinates, int numAddrBitsToInspect = axiCfg::addrWidth, bool default_output = false, bool translate_addr = false>
sc_in<NVUINTW(numAddrBitsToInspect)> AxiSplitter< axiCfg, numSubordinates, numAddrBitsToInspect, default_output, translate_addr >::addrBound[numSubordinates][2]

Definition at line 89 of file AxiSplitter.h.


The documentation for this class was generated from the following file: