diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index e4781fbec..8b55bd629 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -55,6 +55,7 @@ class Core: self.dmgr = dmgr self.core = self self.comm.core = self + self.target = target self.compiler = nac3artiq.NAC3(target) self.embedding_map = EmbeddingMap() diff --git a/artiq/test/coredevice/test_cache.py b/artiq/test/coredevice/test_cache.py index 07452cf07..5fc94e4ed 100644 --- a/artiq/test/coredevice/test_cache.py +++ b/artiq/test/coredevice/test_cache.py @@ -1,6 +1,5 @@ from artiq.experiment import * from artiq.coredevice.exceptions import CacheError -from artiq.compiler.targets import CortexA9Target from artiq.test.hardware_testbench import ExperimentCase @@ -41,7 +40,7 @@ class CacheTest(ExperimentCase): def test_borrow(self): exp = self.create(_Cache) - if exp.core.target_cls == CortexA9Target: + if exp.core.target == "cortexa9": self.skipTest("Zynq port memory management does not need CacheError") exp.put("x4", [1, 2, 3]) with self.assertRaises(CacheError):