svfcocotb: Fix results access for SDR and SIR.
authorStaf Verhaegen <staf@stafverhaegen.be>
Thu, 1 Apr 2021 11:48:17 +0000 (13:48 +0200)
committerStaf Verhaegen <staf@stafverhaegen.be>
Thu, 1 Apr 2021 11:48:17 +0000 (13:48 +0200)
c4m/cocotb/jtag/c4m_jtag_svfcocotb.py

index 1560359383385847083396621feca0d477e9d8b3..ff5107740a1364f0395a2e97654ec56e9aba2bbf 100755 (executable)
@@ -108,7 +108,7 @@ class SVF_Executor(object):
         if tdo is not None:
             if self._d_mask is not None:
                 raise(JTAGException("MASK not supported for SDR"))
-            assert(self.result == tdo)
+            assert(self.master.result == tdo)
 
     @cocotb.coroutine
     def _execute_SIR(self, node):
@@ -139,7 +139,7 @@ class SVF_Executor(object):
         if tdo is not None:
             if self._i_mask is not None:
                 raise(JTAGException("MASK not supported for SIR"))
-            assert(self.result == tdo)
+            assert(self.master.result == tdo)
         
 
     @cocotb.coroutine