frontend/wishbone: add data_width assertions

This commit is contained in:
Florent Kermarrec 2019-09-18 21:12:23 +02:00
parent f586aada1c
commit d93dded624
1 changed files with 2 additions and 0 deletions

View File

@ -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)
# # #