[lib] developing csv reader for io pin table

This commit is contained in:
tangxifan 2022-07-26 21:08:41 -07:00
parent ae328cfa7f
commit 1d1c2d7e8c
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,37 @@
/********************************************************************
* This file includes the top-level function of this library
* which reads an XML of pin constraints to the associated
* data structures
*******************************************************************/
#include <string>
/* Headers from vtr util library */
#include "vtr_assert.h"
#include "vtr_time.h"
/* Headers from libopenfpga util library */
#include "openfpga_port_parser.h"
#include "csv.hpp"
#include "read_csv_io_pin_table.h"
/* Begin namespace openfpga */
namespace openfpga {
/********************************************************************
* Parse XML codes about <pin_constraints> to an object of PinConstraints
*******************************************************************/
IoPinTable read_csv_io_pin_table(const char* fname) {
vtr::ScopedStartFinishTimer timer("Read I/O Pin Table");
IoPinTable io_pin_table;
return io_pin_table;
}
} /* End namespace openfpga*/

View File

@ -0,0 +1,20 @@
#ifndef READ_CSV_IO_PIN_TABLE_H
#define READ_CSV_IO_PIN_TABLE_H
/********************************************************************
* Include header files that are required by function declaration
*******************************************************************/
#include <string>
#include "io_pin_table.h"
/********************************************************************
* Function declaration
*******************************************************************/
/* Begin namespace openfpga */
namespace openfpga {
IoPinTable read_csv_io_pin_table(const char* fname);
} /* End namespace openfpga*/
#endif