forked from M-Labs/artiq
comm_kernel: add Zynq runtime identifier
This commit is contained in:
parent
de57039e6e
commit
e8b73876ab
|
@ -211,10 +211,7 @@ class CommKernel:
|
||||||
self._read_header()
|
self._read_header()
|
||||||
self._read_expect(Reply.SystemInfo)
|
self._read_expect(Reply.SystemInfo)
|
||||||
runtime_id = self._read(4)
|
runtime_id = self._read(4)
|
||||||
if runtime_id != b"AROR":
|
if runtime_id == b"AROR":
|
||||||
raise UnsupportedDevice("Unsupported runtime ID: {}"
|
|
||||||
.format(runtime_id))
|
|
||||||
|
|
||||||
gateware_version = self._read_string().split(";")[0]
|
gateware_version = self._read_string().split(";")[0]
|
||||||
if gateware_version != software_version and not self.warned_of_mismatch:
|
if gateware_version != software_version and not self.warned_of_mismatch:
|
||||||
logger.warning("Mismatch between gateware (%s) "
|
logger.warning("Mismatch between gateware (%s) "
|
||||||
|
@ -225,6 +222,11 @@ class CommKernel:
|
||||||
finished_cleanly = self._read_bool()
|
finished_cleanly = self._read_bool()
|
||||||
if not finished_cleanly:
|
if not finished_cleanly:
|
||||||
logger.warning("Previous kernel did not cleanly finish")
|
logger.warning("Previous kernel did not cleanly finish")
|
||||||
|
elif runtime_id == b"ARZQ":
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise UnsupportedDevice("Unsupported runtime ID: {}"
|
||||||
|
.format(runtime_id))
|
||||||
|
|
||||||
def load(self, kernel_library):
|
def load(self, kernel_library):
|
||||||
self._write_header(Request.LoadKernel)
|
self._write_header(Request.LoadKernel)
|
||||||
|
|
Loading…
Reference in New Issue