Skip to content

Commit

Permalink
liteeth: use proper python syntax for sets
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 7, 2017
1 parent 7763812 commit d040d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misoc/cores/liteeth_mini/mac/preamble.py
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ def __init__(self, dw):
self.source.last_be.eq(self.sink.last_be)
]
fsm.act("COPY",
self.sink.connect(self.source, omit=set(["data", "last_be"])),
self.sink.connect(self.source, omit={"data", "last_be"}),

If(self.sink.stb & self.sink.eop & self.source.ack,
NextState("IDLE"),
@@ -133,7 +133,7 @@ def __init__(self, dw):
self.source.last_be.eq(self.sink.last_be)
]
fsm.act("COPY",
self.sink.connect(self.source, omit=set(["data", "last_be"])),
self.sink.connect(self.source, omit={"data", "last_be"}),
If(self.source.stb & self.source.eop & self.source.ack,
NextState("IDLE"),
)

0 comments on commit d040d0e

Please sign in to comment.