Skip to content

Commit

Permalink
Workaround for Amaranth issue with Signal(range(1))
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Mar 29, 2024
1 parent c865162 commit 20e0125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coreblocks/scheduler/wakeup_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def elaborate(self, platform):
with Transaction().body(m):
ready = self.get_ready(m)
ready_width = ready.shape().size
last = Signal(range(ready_width))
last = Signal((ready_width - 1).bit_length())
for i in range(ready_width):
with m.If(ready.ready_list[i]):
m.d.comb += last.eq(i)
Expand Down

0 comments on commit 20e0125

Please sign in to comment.