now generating simulation ini file will try to create directory first
This commit is contained in:
parent
72e8824a87
commit
a7d900088b
|
@ -12,6 +12,9 @@
|
||||||
#include "vtr_assert.h"
|
#include "vtr_assert.h"
|
||||||
#include "vtr_time.h"
|
#include "vtr_time.h"
|
||||||
|
|
||||||
|
/* Headers from openfpgautil library */
|
||||||
|
#include "openfpga_digest.h"
|
||||||
|
|
||||||
#include "simulation_utils.h"
|
#include "simulation_utils.h"
|
||||||
|
|
||||||
#include "verilog_constants.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 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 */
|
/* Start time count */
|
||||||
vtr::ScopedStartFinishTimer timer(timer_message);
|
vtr::ScopedStartFinishTimer timer(timer_message);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue