OpenFPGA/libopenfpga/libarchopenfpga/test/main.cpp

22 lines
695 B
C++
Raw Normal View History

/********************************************************************
* Unit test functions to validate the correctness of
* 1. parser of data structures
* 2. writer of data structures
*******************************************************************/
#include "vtr_log.h"
#include "read_xml_openfpga_arch.h"
int main(int argc, const char** argv) {
/* Parse the circuit library from an XML file */
const OpenFPGAArch& openfpga_arch = read_xml_openfpga_arch(argv[1]);
VTR_LOG("Parsed %lu circuit models from XML into circuit library.\n",
openfpga_arch.circuit_lib.num_models());
/* Check the circuit library */
/* Output the circuit library to an XML file*/
}