From cb2baed2579336c833d5bb8620c8ec210c96c8b1 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 1 Jul 2020 13:39:12 -0600 Subject: [PATCH] bug fix in simulation ini GPIO width --- openfpga/src/fpga_verilog/simulation_info_writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openfpga/src/fpga_verilog/simulation_info_writer.cpp b/openfpga/src/fpga_verilog/simulation_info_writer.cpp index 4ea7a567c..de9f5f6af 100644 --- a/openfpga/src/fpga_verilog/simulation_info_writer.cpp +++ b/openfpga/src/fpga_verilog/simulation_info_writer.cpp @@ -98,7 +98,7 @@ void print_verilog_simulation_info(const std::string& ini_fname, for (const BasicPort& module_io_port : module_io_ports) { total_gpio_width += module_io_port.get_width(); } - ini["SIMULATION_DECK"]["GPIO_WIDTH"] = total_gpio_width; + ini["SIMULATION_DECK"]["GPIO_WIDTH"] = std::to_string(total_gpio_width); /* I/O direction map: * - '0' output