tools/litex_client: Fix csr_data_width/csr_bus_address_width is None cases.

This commit is contained in:
Florent Kermarrec 2023-11-23 16:30:29 +01:00
parent 022776801a
commit cba58a0e36
1 changed files with 2 additions and 2 deletions

View File

@ -32,9 +32,9 @@ class RemoteClient(EtherboneIPC, CSRBuilder):
else:
# Else if csr_data_width set to None, force to csr_data_width 32-bit.
if csr_data_width is None:
csr_data_width = 32
self.csr_data_width = 32
# Else if csr_bus_address_width set to None, force to csr_bus_address_width 32-bit.
if self.csr_bus_address_width is None:
if csr_bus_address_width is None:
self.csr_bus_address_width = 32
self.host = host
self.port = port