13 const char*
const PIPSPRESENT1_MSG =
"PIPs present in reference design, but not in test design:\n";
14 const char*
const PIPSPRESENT2_MSG =
"\nPIPs present in test design, but not in reference design:\n";
30 size_t netCount = nets.size();
31 for (
size_t i = 0; i < netCount; ++i)
33 const Net& net = nets[i];
35 pipRefs.insert(pipRefs.end(), srcPipRefs.begin(), srcPipRefs.end());
39 std::sort(pipRefs.begin(), pipRefs.end());
44 const Device& device, std::ostream& outputStream)
51 std::vector<bool> correctPips;
52 correctPips.resize(testPIPRefs.size(),
false);
55 PIPRefs::const_iterator itBegin = testPIPRefs.begin();
56 PIPRefs::const_iterator itEnd = testPIPRefs.end();
57 PIPRefs::const_iterator it;
60 size_t correctPIPCount = 0;
61 size_t missingPIPCount = 0;
62 size_t incorrectPIPCount = 0;
66 size_t refPipCount = refPIPRefs.size();
67 for (
size_t i = 0; i < refPipCount; ++i)
69 const PIPRef& refPIPRef = refPIPRefs[i];
70 it = std::find(itBegin, itEnd, refPIPRef);
73 size_t testPipIndex = std::distance(itBegin, it);
74 correctPips[testPipIndex] =
true;
86 size_t testPipCount = testPIPRefs.size();
87 for (
size_t i = 0; i < testPipCount; ++i)
89 if (correctPips[i])
continue;
90 const PIPRef& testPIPRef = testPIPRefs[i];