liteusb: pep8 (E201)
This commit is contained in:
parent
4974fd6bc9
commit
ce0e818d66
|
@ -4,17 +4,15 @@ from migen.actorlib.fifo import *
|
||||||
from migen.flow.actor import EndpointDescription
|
from migen.flow.actor import EndpointDescription
|
||||||
|
|
||||||
user_layout = EndpointDescription(
|
user_layout = EndpointDescription(
|
||||||
[ ("dst", 8),
|
[("dst", 8),
|
||||||
("length", 4*8),
|
("length", 4*8),
|
||||||
("error", 1),
|
("error", 1),
|
||||||
("d", 8)
|
("d", 8)
|
||||||
],
|
],
|
||||||
packetized=True
|
packetized=True
|
||||||
)
|
)
|
||||||
|
|
||||||
phy_layout = [
|
phy_layout = [("d", 8)]
|
||||||
("d", 8)
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
class LiteUSBPipe:
|
class LiteUSBPipe:
|
||||||
|
|
|
@ -43,11 +43,11 @@ class LiteUSBDepacketizer(Module):
|
||||||
preamble[i].eq(preamble[i-1])
|
preamble[i].eq(preamble[i-1])
|
||||||
)
|
)
|
||||||
fsm.act("WAIT_SOP",
|
fsm.act("WAIT_SOP",
|
||||||
If( (preamble[3] == 0x5A) &
|
If((preamble[3] == 0x5A) &
|
||||||
(preamble[2] == 0xA5) &
|
(preamble[2] == 0xA5) &
|
||||||
(preamble[1] == 0x5A) &
|
(preamble[1] == 0x5A) &
|
||||||
(preamble[0] == 0xA5) &
|
(preamble[0] == 0xA5) &
|
||||||
sink.stb,
|
sink.stb,
|
||||||
NextState("RECEIVE_HEADER")
|
NextState("RECEIVE_HEADER")
|
||||||
),
|
),
|
||||||
sink.ack.eq(1),
|
sink.ack.eq(1),
|
||||||
|
|
Loading…
Reference in New Issue