Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

round_robin_arbiter

Round robin arbiter

Grants one of the requests in round robin order. The round robin state holds the index of the last granted request and the request with the next index has the highest priority.

  • PRIORITY_ENABLE: Requests are classified by their priority and the request with the highest priority is granted. The round robin state is kept for each priority class.
  • WEIGHT_ENABLE : Each request can be granted weight times in a round.

Parameters


REQUESTS u32
ONEHOT_GRANT bbool
GRANT_WIDTH u32
PRIORITY_ENABLE bbool
PRIORITY_WIDTH u32
FIXED_PRIORITY bbool
PRIORITY bit<REQUESTS, PRIORITY_WIDTH>
WEIGHT_ENABLE bbool
WEIGHT_WIDTH u32
INITIAL_WEIGHT bit<REQUESTS, WEIGHT_WIDTH>
SELECTOR_KIND selector_kind

Ports


i_clk input clock Clock
i_rst input reset Reset
i_init input logic Initialize the round robin state and weights
i_priority input logic<REQUESTS, PRIORITY_WIDTH> Priority of each request (used when `PRIORITY_ENABLE` and `!FIXED_PRIORITY`)
i_weight_valid input logic Use `i_weight` as the weights for the next round
i_weight input logic<REQUESTS, WEIGHT_WIDTH> Weight of each request
i_request input logic<REQUESTS> Requests
o_grant output logic<GRANT_WIDTH> Grant (onehot or binary index)
i_update_state input logic Update the round robin state by the current grant
o_current_state output logic<N_SLOTS, STATE_WIDTH> Current round robin state