From ae3ec75a24c175234dbb33f1bb42a79bbfeed558 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 27 Jul 2022 11:18:30 -0700 Subject: [PATCH] [lib] add pcf writer --- libopenfpga/libpcf/src/io/pcf_writer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libopenfpga/libpcf/src/io/pcf_writer.h diff --git a/libopenfpga/libpcf/src/io/pcf_writer.h b/libopenfpga/libpcf/src/io/pcf_writer.h new file mode 100644 index 000000000..4d7551efc --- /dev/null +++ b/libopenfpga/libpcf/src/io/pcf_writer.h @@ -0,0 +1,21 @@ +#ifndef PCF_WRITER_H +#define PCF_WRITER_H +/******************************************************************** + * Include header files required by the data structure definition + *******************************************************************/ +#include +#include +#include +#include +#include "pcf_data.h" + +/* Begin namespace openfpga */ +namespace openfpga { + +/* Write a .pcf file from an object */ +int write_pcf(const char* fname, + const PcfData& pcf_data); + +} /* End namespace openfpga*/ + +#endif