soc/tools/remote/client: make csr_csv parameter optional and default value to None

This commit is contained in:
Florent Kermarrec 2015-11-23 18:39:28 +01:00
parent 6f4dd14ffa
commit f6a2d5847a
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ from litex.soc.tools.remote.csr_builder import CSRBuilder
class RemoteClient(EtherboneIPC, CSRBuilder): class RemoteClient(EtherboneIPC, CSRBuilder):
def __init__(self, host="localhost", port=1234, csr_csv="csr.csv", csr_data_width=32, debug=False): def __init__(self, host="localhost", port=1234, csr_csv="csr.csv", csr_data_width=32, debug=False):
CSRBuilder.__init__(self, self, csr_csv, csr_data_width) if csr_csv is not None:
CSRBuilder.__init__(self, self, csr_csv, csr_data_width)
self.host = host self.host = host
self.port = port self.port = port
self.debug = debug self.debug = debug