예제 #1
0
 def testToSignalVals(self):
     cosim = Cosimulation(exe + "cosimToSignalVals", **allSigs)
     for n in toSignames:
         assert toSigs[n].next == 0
     cosim._get()
     for n, v in zip(toSignames, toVals):
         assert toSigs[n].next == v
     os.write(cosim._wf, b"DUMMY")
     cosim._getMode = 1
     cosim._get()
     for n in toSignames:
         assert toSigs[n].next == 0
예제 #2
0
 def testToSignalVals(self):
     cosim = Cosimulation(exe + ".cosimToSignalVals", **allSigs)
     for n in toSignames:
         self.assertEqual(toSigs[n].next, 0)
     cosim._get()
     for n, v in zip(toSignames, toVals):
         self.assertEqual(toSigs[n].next, v)
     os.write(cosim._wf, "DUMMY")
     cosim._getMode = 1
     cosim._get()
     for n in toSignames:
         self.assertEqual(toSigs[n].next, 0)
예제 #3
0
 def testToSignalVals(self):
     cosim = Cosimulation(exe + ".cosimToSignalVals", **allSigs)
     for n in toSignames:
         self.assertEqual(toSigs[n].next, 0)
     cosim._get()
     for n, v in zip(toSignames, toVals):
         self.assertEqual(toSigs[n].next, v)
     os.write(cosim._wf, b"DUMMY")
     cosim._getMode = 1
     cosim._get()
     for n in toSignames:
         self.assertEqual(toSigs[n].next, 0)
예제 #4
0
 def testToSignalVals(self):
     cosim = Cosimulation(exe + "cosimToSignalVals", **allSigs)
     for n in toSignames:
         assert toSigs[n].next == 0
     cosim._get()
     for n, v in zip(toSignames, toVals):
         assert toSigs[n].next == v
     os.write(cosim._wf, b"DUMMY")
     cosim._getMode = 1
     cosim._get()
     for n in toSignames:
         assert toSigs[n].next == 0