19 #include <boost/test/unit_test.hpp>
29 BOOST_AUTO_TEST_SUITE(bitstream)
38 executablePath /
"regression" /
"BitstreamUnitTest.generated.bit";
40 executablePath /
"torc" /
"bitstream" /
"Virtex5UnitTest.reference.bit";
43 std::fstream fileStream(referencePath.string().c_str(), std::ios::binary | std::ios::in);
44 BOOST_REQUIRE(fileStream.good());
47 bitstream.cleanDateAndTime();
50 std::cout << bitstream << std::endl;
53 std::cout <<
"family is " << deviceDesignator.
getFamily() << std::endl;
57 BOOST_AUTO_TEST_SUITE_END()
static bool readHeader(std::istream &inStream, string &outDesignName, string &outDeviceName, string &outDesignDate, string &outDesignTime, uint32_t &outBitstreamLength, uint32_t &outHeaderLength)
Read a bitstream header, and return its fields.
Encapsulation of a device designator and its constituent elements.
const EFamily & getFamily(void) const
Returns the device family.
Header for the DirectoryTree class.
Header for the DeviceDesignator class.
Xilinx bitstream base class.
Header for the Bitstream class.
boost::filesystem::path path
BOOST_AUTO_TEST_CASE(hexCharacterToDec)
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.