Skip to content

Commit

Permalink
frontend/axi: add assertion on matching axi, native port data_width
Browse files Browse the repository at this point in the history
  • Loading branch information
gsomlo committed Oct 23, 2019
1 parent d84e1b4 commit 24203cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litedram/frontend/axi.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class LiteDRAMAXIPort(AXIInterface):
class LiteDRAMAXI2NativeW(Module):
def __init__(self, axi, port, buffer_depth, base_address):
assert axi.address_width >= log2_int(base_address)
assert axi.data_width == port.data_width
self.cmd_request = Signal()
self.cmd_grant = Signal()

Expand Down Expand Up @@ -99,6 +100,7 @@ def __init__(self, axi, port, buffer_depth, base_address):
class LiteDRAMAXI2NativeR(Module):
def __init__(self, axi, port, buffer_depth, base_address):
assert axi.address_width >= log2_int(base_address)
assert axi.data_width == port.data_width
self.cmd_request = Signal()
self.cmd_grant = Signal()

Expand Down

0 comments on commit 24203cf

Please sign in to comment.