Skip to content

Commit

Permalink
revert core: use first ElasticBuffer as master (slaves use master's w…
Browse files Browse the repository at this point in the history
…rite reset)
  • Loading branch information
enjoy-digital committed Jun 5, 2018
1 parent c8cec83 commit 96247e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jesd204b/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def __init__(self, phys, jesd_settings, converter_data_width):
transport.sink.eq(self.sink)
)

ebufm = None
links = []
for n, (phy, lane) in enumerate(zip(phys, transport.source.flatten())):
phy_name = "phy{}".format(n)
Expand All @@ -60,9 +59,9 @@ def __init__(self, phys, jesd_settings, converter_data_width):
# claim the phy
setattr(self.submodules, phy_name, phy)

ebuf = ElasticBuffer(len(phy.data), 4, "sys", phy_cd, ebufm)
ebuf = ElasticBuffer(len(phy.data), 4, "sys", phy_cd)
setattr(self.submodules, "ebuf{}".format(n), ebuf)
ebufm = ebuf if n == 0 else ebufm

link = JESD204BLinkTX(len(phy.data), jesd_settings, n)
link = ClockDomainsRenamer(phy_cd)(link)
links.append(link)
Expand Down

0 comments on commit 96247e6

Please sign in to comment.