Bitstream Interpretation Library (BIL)  0.1
Functions | Variables
xdlcmpAlgo.cpp File Reference

Contains definition of xdlcmp compare functions. More...

#include <algorithm>
#include <iterator>
#include <test/xdlcmp/xdlcmpAlgo.hpp>
#include <xdl/writer/PIPRefString.hpp>
Include dependency graph for xdlcmpAlgo.cpp:

Go to the source code of this file.

Functions

void getPIPs (const Design &design, PIPRefs &pipRefs)
 Gets all PIPs of a design.
void comparePIPs (const PIPRefs &refPIPRefs, const PIPRefs &testPIPRefs, const Device &device, std::ostream &outputStream)
 Compares two PIP lists and prints the results.

Variables

const char *const PIPSPRESENT1_MSG = "PIPs present in reference design, but not in test design:\n"
const char *const PIPSPRESENT2_MSG = "\nPIPs present in test design, but not in reference design:\n"
const char *const PIPSSTATS1_MSG = "\nPIPs in reference design: "
const char *const PIPSSTATS2_MSG = "Correct PIPs in test design: "
const char *const PIPSSTATS3_MSG = "Missing PIPs in test design: "
const char *const PIPSSTATS4_MSG = "Incorrect PIPs in test design: "
const char *const PIP_MSG = "pip"
const char ENDLN = '\n'

Detailed Description

Contains definition of xdlcmp compare functions.

Definition in file xdlcmpAlgo.cpp.


Function Documentation

void getPIPs ( const bil::Design design,
bil::PIPRefs pipRefs 
)

Gets all PIPs of a design.

Parameters:
designThe design to get PIPs from.
pipRefsThe PIP list to fill.

Definition at line 23 of file xdlcmpAlgo.cpp.

void comparePIPs ( const bil::PIPRefs refPIPRefs,
const bil::PIPRefs testPIPRefs,
const bil::Device device,
std::ostream &  outputStream 
)

Compares two PIP lists and prints the results.

Parameters:
refPIPRefsReference list of PIPs.
testPIPRefsTest list of PIPs.
deviceDevice the PIPs belong to.
outputStreamStream to write to comparison results.
Exceptions:
.

Definition at line 43 of file xdlcmpAlgo.cpp.


Variable Documentation

const char* const PIPSPRESENT1_MSG = "PIPs present in reference design, but not in test design:\n"

Definition at line 13 of file xdlcmpAlgo.cpp.

const char* const PIPSPRESENT2_MSG = "\nPIPs present in test design, but not in reference design:\n"

Definition at line 14 of file xdlcmpAlgo.cpp.

const char* const PIPSSTATS1_MSG = "\nPIPs in reference design: "

Definition at line 15 of file xdlcmpAlgo.cpp.

const char* const PIPSSTATS2_MSG = "Correct PIPs in test design: "

Definition at line 16 of file xdlcmpAlgo.cpp.

const char* const PIPSSTATS3_MSG = "Missing PIPs in test design: "

Definition at line 17 of file xdlcmpAlgo.cpp.

const char* const PIPSSTATS4_MSG = "Incorrect PIPs in test design: "

Definition at line 18 of file xdlcmpAlgo.cpp.

const char* const PIP_MSG = "pip"

Definition at line 19 of file xdlcmpAlgo.cpp.

const char ENDLN = '\n'

Definition at line 20 of file xdlcmpAlgo.cpp.