Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.82 KB | None | 0 0
  1. diff --git a/litedram/frontend/wishbone.py b/litedram/frontend/wishbone.py
  2. index 251d28e..42288f8 100644
  3. --- a/litedram/frontend/wishbone.py
  4. +++ b/litedram/frontend/wishbone.py
  5. @@ -8,7 +8,7 @@ from migen import *
  6.  
  7.  class LiteDRAMWishbone2Native(Module):
  8.      def __init__(self, wishbone, port):
  9. -        assert len(wishbone.dat_w) == len(port.wdata.data)
  10. +        assert len(wishbone.dat_w) == len(port.wdata.data), "%r vs. %r" % (len(wishbone.dat_w), len(port.wdata.data))
  11.  
  12.          # # #
  13.  
  14. @@ -54,7 +54,7 @@ class LiteDRAMWishbone2Native(Module):
  15.  
  16.  class LiteDRAMWishbone2AXI(Module):
  17.      def __init__(self, wishbone, port):
  18. -        assert len(wishbone.dat_w) == len(port.w.data)
  19. +        assert len(wishbone.dat_w) == len(port.w.data), "%r vs. %r" % (len(wishbone.dat_w), len(port.w.data))
  20.  
  21.          # # #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement