diff --git a/cocotbext/pcie/core/pci.py b/cocotbext/pcie/core/pci.py index df68ad0..882ed38 100644 --- a/cocotbext/pcie/core/pci.py +++ b/cocotbext/pcie/core/pci.py @@ -135,7 +135,7 @@ async def scan(self, available_buses=0, timeout=1000, timeout_unit='ns'): # read vendor ID and device ID val = await self.rc.config_read_dword(dev_id, 0x000, 'little', timeout, timeout_unit) - if val is None or val == 0xffffffff: + if val in {0, 0xffffffff, 0xffff0000, 0x0000ffff}: continue # valid vendor ID