avalon/AvalonMM2Wishbone: Simplify wb.cti.
In BURST-WRITE/READ, wb.cti can't be BURST_NONE.
This commit is contained in:
parent
a62149831d
commit
9f44a498d6
|
@ -82,10 +82,9 @@ class AvalonMM2Wishbone(Module):
|
||||||
fsm.act("SINGLE",
|
fsm.act("SINGLE",
|
||||||
burst_cycle.eq(0),
|
burst_cycle.eq(0),
|
||||||
wb.sel.eq(avl.byteenable),
|
wb.sel.eq(avl.byteenable),
|
||||||
|
wb.cti.eq(wishbone.CTI_BURST_NONE),
|
||||||
If(avl.burstcount > 1,
|
If(avl.burstcount > 1,
|
||||||
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING)
|
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING)
|
||||||
).Else(
|
|
||||||
wb.cti.eq(wishbone.CTI_BURST_NONE)
|
|
||||||
),
|
),
|
||||||
If(~avl.waitrequest & (avl.burstcount > 1),
|
If(~avl.waitrequest & (avl.burstcount > 1),
|
||||||
burst_cycle.eq(1),
|
burst_cycle.eq(1),
|
||||||
|
@ -101,14 +100,9 @@ class AvalonMM2Wishbone(Module):
|
||||||
fsm.act("BURST-WRITE",
|
fsm.act("BURST-WRITE",
|
||||||
burst_cycle.eq(1),
|
burst_cycle.eq(1),
|
||||||
wb.sel.eq(burst_sel),
|
wb.sel.eq(burst_sel),
|
||||||
If(burst_counter > 1,
|
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING),
|
||||||
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING)
|
If(burst_counter == 1,
|
||||||
).Else(
|
wb.cti.eq(wishbone.CTI_BURST_END)
|
||||||
If(burst_counter == 1,
|
|
||||||
wb.cti.eq(wishbone.CTI_BURST_END)
|
|
||||||
).Else(
|
|
||||||
wb.cti.eq(wishbone.CTI_BURST_NONE)
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
If(~avl.waitrequest,
|
If(~avl.waitrequest,
|
||||||
NextValue(burst_address, burst_address + word_width),
|
NextValue(burst_address, burst_address + word_width),
|
||||||
|
@ -124,14 +118,9 @@ class AvalonMM2Wishbone(Module):
|
||||||
burst_read.eq(1),
|
burst_read.eq(1),
|
||||||
wb.stb.eq(1),
|
wb.stb.eq(1),
|
||||||
wb.sel.eq(burst_sel),
|
wb.sel.eq(burst_sel),
|
||||||
If(burst_counter > 1,
|
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING),
|
||||||
wb.cti.eq(wishbone.CTI_BURST_INCREMENTING),
|
If(burst_counter == 1,
|
||||||
).Else(
|
wb.cti.eq(wishbone.CTI_BURST_END)
|
||||||
If(burst_counter == 1,
|
|
||||||
wb.cti.eq(wishbone.CTI_BURST_END)
|
|
||||||
).Else(
|
|
||||||
wb.cti.eq(wishbone.CTI_BURST_NONE)
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
If(wb.ack,
|
If(wb.ack,
|
||||||
avl.readdatavalid.eq(1),
|
avl.readdatavalid.eq(1),
|
||||||
|
|
Loading…
Reference in New Issue