soc/tools/remote/client: make csr_csv parameter optional and default value to None
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 23 Nov 2015 17:39:28 +0000 (18:39 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 23 Nov 2015 17:39:28 +0000 (18:39 +0100)
litex/soc/tools/remote/client.py

index 92510c1ce51014ea87e04f3c4c10eb6c1c603164..99e229c2fecb4c09f0f054eefe948e16d9dd38f3 100644 (file)
@@ -8,7 +8,8 @@ from litex.soc.tools.remote.csr_builder import CSRBuilder
 
 class RemoteClient(EtherboneIPC, CSRBuilder):
     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.port = port
         self.debug = debug