From d93dded6249332c049d27bb784e3d6f530a130e4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 18 Sep 2019 21:12:23 +0200 Subject: [PATCH] frontend/wishbone: add data_width assertions --- litedram/frontend/wishbone.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litedram/frontend/wishbone.py b/litedram/frontend/wishbone.py index 81473b0..251d28e 100644 --- a/litedram/frontend/wishbone.py +++ b/litedram/frontend/wishbone.py @@ -8,6 +8,7 @@ from migen import * class LiteDRAMWishbone2Native(Module): def __init__(self, wishbone, port): + assert len(wishbone.dat_w) == len(port.wdata.data) # # # @@ -53,6 +54,7 @@ class LiteDRAMWishbone2Native(Module): class LiteDRAMWishbone2AXI(Module): def __init__(self, wishbone, port): + assert len(wishbone.dat_w) == len(port.w.data) # # #