29 fprintf(
outFile,
"(primitive_defs %i\n", (
int)(primitives->getPrimitiveCount()));
32 fprintf(
outFile,
"\t(primitive_def %s %d %d\n", (*it)->getName().c_str(), ((int)((*it)->getPrimitivePinCount())), ((int)((*it)->getElementCount())));
35 string sTmp = ((*pp)->getType()==
OutputP) ?
"output" :
"input";
36 fprintf(
outFile,
"\t\t(pin %s %s %s)\n", (*pp)->getElementName().c_str(), (*pp)->getName().c_str(), sTmp.c_str());
40 fprintf(
outFile,
"\t\t(element %s %d\n", (*ep)->getName().c_str(), (int)((*ep)->getPrimitivePinCount()));
43 string sTmp = ((*pp)->getType()==
OutputP) ?
"output" :
"input";
44 fprintf(
outFile,
"\t\t\t(pin %s %s)\n", (*pp)->getName().c_str(), sTmp.c_str());
47 if((*ep)->getConfigCount()>0){
50 fprintf(
outFile,
" %s", (*cp).c_str());
57 fprintf(
outFile,
"\t\t\t(conn %s %s ==> %s %s)\n", (*src).getElementName().c_str(), (*src).getPinName().c_str(),
58 (*dst).getElementName().c_str(), (*dst).getPinName().c_str());
ConnectionPinVector::const_iterator ConnectionPinSharedPtrConstIterator
boost::shared_ptr< PrimitiveSet > PrimitiveSetSharedPtr
Shared pointer encapsulation of a PrimitiveSet.
void WritePrimitiveFile(const char *outFileName, PrimitiveSetSharedPtr primitives)
write an XDLRC file
Header for primitive parser.
ConnectionSharedPtrVector::const_iterator ConnectionSharedPtrConstIterator
ConfigVector::const_iterator ConfigConstIterator
PrimitiveSharedPtrVector::const_iterator PrimitiveSharedPtrConstIterator
Constant iterator for Primitive shared pointers.
ElementSharedPtrVector::const_iterator ElementSharedPtrConstIterator
Constant iterator for Element shared pointers.
PrimitivePinSharedPtrVector::const_iterator PrimitivePinSharedPtrConstIterator