mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/uart/Stream2Wishbone: Add asserts on data_width/address_width.
This commit is contained in:
parent
5e451d68f7
commit
ff6e7bd6ad
1 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,8 @@ class Stream2Wishbone(Module):
|
||||||
self.wishbone = wishbone.Interface(data_width=data_width, adr_width=address_width)
|
self.wishbone = wishbone.Interface(data_width=data_width, adr_width=address_width)
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
assert data_width in [8, 16, 32]
|
||||||
|
assert address_width in [8, 16, 32]
|
||||||
|
|
||||||
cmd = Signal(8, reset_less=True)
|
cmd = Signal(8, reset_less=True)
|
||||||
incr = Signal()
|
incr = Signal()
|
||||||
|
|
Loading…
Reference in a new issue