Skip to content

Commit

Permalink
interconnect/ahb/AHB2Wishbone: Fix size check that is too restrictive…
Browse files Browse the repository at this point in the history
…, can be <= log2_int(ahb.data_width//8).
  • Loading branch information
enjoy-digital committed Jan 4, 2024
1 parent 6a68370 commit 5bbcda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/interconnect/ahb.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, ahb, wishbone):
fsm.act("IDLE",
ahb.readyout.eq(1),
If(ahb.sel &
(ahb.size == wishbone_adr_shift) &
(ahb.size <= log2_int(ahb.data_width//8)) &
(ahb.trans == TransferType.NONSEQUENTIAL),
NextValue(wishbone.adr, ahb.addr[wishbone_adr_shift:]),
NextValue(wishbone.dat_w, ahb.wdata),
Expand Down

0 comments on commit 5bbcda4

Please sign in to comment.