From a7d900088b6bd36ab1d720eea55664a0cc21df3a Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 15 Apr 2020 20:53:37 -0600 Subject: [PATCH] now generating simulation ini file will try to create directory first --- openfpga/src/fpga_verilog/simulation_info_writer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openfpga/src/fpga_verilog/simulation_info_writer.cpp b/openfpga/src/fpga_verilog/simulation_info_writer.cpp index fbbb7e83c..7c0bf0e3e 100644 --- a/openfpga/src/fpga_verilog/simulation_info_writer.cpp +++ b/openfpga/src/fpga_verilog/simulation_info_writer.cpp @@ -12,6 +12,9 @@ #include "vtr_assert.h" #include "vtr_time.h" +/* Headers from openfpgautil library */ +#include "openfpga_digest.h" + #include "simulation_utils.h" #include "verilog_constants.h" @@ -34,6 +37,11 @@ void print_verilog_simulation_info(const std::string& ini_fname, std::string timer_message = std::string("Write exchangeable file containing simulation information '") + ini_fname + std::string("'"); + std::string ini_dir_path = format_dir_path(find_path_dir_name(ini_fname)); + + /* Create directories */ + create_directory(ini_dir_path); + /* Start time count */ vtr::ScopedStartFinishTimer timer(timer_message);