mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bus/wishbone: style
This commit is contained in:
parent
6e48682a5e
commit
c5342c5b5c
1 changed files with 2 additions and 7 deletions
|
@ -119,7 +119,6 @@ class DownConverter(Module):
|
||||||
# L is the target data-width
|
# L is the target data-width
|
||||||
# M = N/L
|
# M = N/L
|
||||||
def __init__(self, dw_i, dw_o):
|
def __init__(self, dw_i, dw_o):
|
||||||
|
|
||||||
self.wishbone_i = Interface(dw_i)
|
self.wishbone_i = Interface(dw_i)
|
||||||
self.wishbone_o = Interface(dw_o)
|
self.wishbone_o = Interface(dw_o)
|
||||||
self.ratio = dw_i//dw_o
|
self.ratio = dw_i//dw_o
|
||||||
|
@ -172,12 +171,8 @@ class DownConverter(Module):
|
||||||
self.submodules += fsm
|
self.submodules += fsm
|
||||||
|
|
||||||
fsm.act("IDLE",
|
fsm.act("IDLE",
|
||||||
If(write_ack,
|
If(write_ack, NextState("WRITE_ADAPT")),
|
||||||
NextState("WRITE_ADAPT")
|
If(read_ack, NextState("READ_ADAPT"))
|
||||||
),
|
|
||||||
If(read_ack,
|
|
||||||
NextState("READ_ADAPT")
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
fsm.act("WRITE_ADAPT",
|
fsm.act("WRITE_ADAPT",
|
||||||
|
|
Loading…
Reference in a new issue