Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. From: Florent Kermarrec <florent@enjoy-digital.fr>
  2. Date: Sun, 3 Feb 2019 11:11:58 +0100
  3. Subject: [PATCH] link: add MultiReg on jsync
  4.  
  5. ---
  6.  jesd204b/link.py | 2 +-
  7.  1 file changed, 1 insertion(+), 1 deletion(-)
  8.  
  9. diff --git a/jesd204b/link.py b/jesd204b/link.py
  10. index d3e9ef3..5d8dd5c 100644
  11. --- a/jesd204b/link.py
  12. +++ b/jesd204b/link.py
  13. @@ -275,10 +275,10 @@ class JESD204BLinkTX(Module):
  14.          jref_d = Signal()
  15.          jref_rising = Signal()
  16.          self.sync += [
  17. -            jsync.eq(self.jsync),
  18.              jref.eq(self.jref),
  19.              jref_d.eq(jref)
  20.          ]
  21. +        self.specials += MultiReg(self.jsync, jsync)
  22.          self.comb += jref_rising.eq(jref & ~jref_d)
  23.  
  24.          # FSM
  25. --
  26. 2.17.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement