arbiter
Arbiter
Grants one of the requests by the arbitration scheme specified by KIND.
KIND == ROUND_ROBIN: Usesround_robin_arbiterKIND == FIXED_PRIORITY: Usesfixed_priority_arbiter
When KEEP_RESULT is enabled, the grant is kept until it is released by i_free.
New requests are not arbitrated while the grant is kept.
Parameters
| REQUESTS | u32 | |
|---|---|---|
| KIND | arbiter_kind | |
| ONEHOT_GRANT | bbool | |
| KEEP_RESULT | bbool | |
| GRANT_WIDTH | u32 | |
| FREE_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 (`ROUND_ROBIN` only) |
| 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 (`ROUND_ROBIN` only) |
| i_weight | input | logic<REQUESTS, WEIGHT_WIDTH> | Weight of each request (`ROUND_ROBIN` only) |
| i_request | input | logic<REQUESTS> | Requests |
| o_grant | output | logic<GRANT_WIDTH> | Grant (onehot or binary index) |
| i_free | input | logic<FREE_WIDTH> | Release the kept grant (used when `KEEP_RESULT`) |
| i_update_state | input | logic | Update the arbiter state by the current grant |
| o_current_state | output | logic<N_SLOTS, STATE_WIDTH> | Current round robin state (`ROUND_ROBIN` only) |