tools/remote/comm_pcie: fix typo.

This commit is contained in:
Florent Kermarrec 2021-02-19 10:33:04 +01:00
parent b47160c74e
commit d4edc132c1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ from litex.tools.remote.csr_builder import CSRBuilder
# CommPCIe ----------------------------------------------------------------------------------------- # CommPCIe -----------------------------------------------------------------------------------------
class CommPCIe(CSRBuilder): class CommPCIe(CSRBuilder):
def __init__(self, bar, csr_csr=None, debug=False): def __init__(self, bar, csr_csv=None, debug=False):
CSRBuilder.__init__(self, comm=self, csr_csv=csr_csv) CSRBuilder.__init__(self, comm=self, csr_csv=csr_csv)
if "/sys/bus/pci/devices" not in bar: if "/sys/bus/pci/devices" not in bar:
bar = f"/sys/bus/pci/devices/0000:{bar}/resource0" bar = f"/sys/bus/pci/devices/0000:{bar}/resource0"