Finding the next in round-robin scheduling by bit twiddling

前端 未结 9 1710
日久生厌
日久生厌 2021-02-02 02:46

Consider the following problem. You have a bit-string that represents the current scheduled slave in one-hot encoding. For example, \"00000100\" (with the leftmost bit being #7

9条回答
  •  梦毁少年i
    2021-02-02 03:18

    Complete parametrizable arbiter implementation that can be configured for round-robin or priority arbitration:

    https://github.com/alexforencich/verilog-axis/blob/master/rtl/arbiter.v

    This design uses a pair of priority encoders to select the next output in the sequence. The priority encoders used are implemented efficiently as trees.

提交回复
热议问题