22 #include <boost/regex.hpp>
25 using namespace torc::generic;
27 int main(
int argc,
char* argv[]) {
34 executablePath /
"torc" /
"examples" /
"GenericExample.reference.edf";
36 executablePath /
"regression" /
"GenericExample.generated.edf";
39 string inFileName = referencePath.string();
40 fstream fileStream(inFileName.c_str());
43 importer(fileStream, inFileName);
48 ->findView(
"verilog")->findInstance(
"oZ0");
52 string originalMask = initPropertyPtr->getValue().get<
Value::String>();
53 std::cout <<
"The original LUT mask was \"" << originalMask <<
"\"." << std::endl;
54 Value xorMask(Value::eValueTypeString,
string(
"6"));
55 initPropertyPtr->setValue(xorMask);
58 string outFileName = generatedPath.string();
59 fstream edifExport(outFileName.c_str(), ios_base::out);
boost::shared_ptr< Instance > InstanceSharedPtr
Main torc::generic namespace header.
int main(int argc, char *argv[])
boost::shared_ptr< ObjectFactory > ObjectFactorySharedPtr
Encapsulation of filesystem paths that are used by the library.
boost::filesystem::path path
RootSharedPtr getRootPtr(void)
boost::shared_ptr< Property > PropertySharedPtr
Main torc::common namespace header.
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.
boost::shared_ptr< Root > RootSharedPtr