From 618b04568f09f21024551c9d27866b629a1bece7 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 4 Jun 2021 20:07:42 -0600 Subject: [PATCH] [Tool] Remove unnecessary new line in bitstream file --- openfpga/src/fpga_bitstream/write_text_fabric_bitstream.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openfpga/src/fpga_bitstream/write_text_fabric_bitstream.cpp b/openfpga/src/fpga_bitstream/write_text_fabric_bitstream.cpp index 5be5d04cc..1fb86c574 100644 --- a/openfpga/src/fpga_bitstream/write_text_fabric_bitstream.cpp +++ b/openfpga/src/fpga_bitstream/write_text_fabric_bitstream.cpp @@ -37,7 +37,7 @@ void write_fabric_bitstream_text_file_head(std::fstream& fp) { fp << "// Fabric bitstream" << std::endl; fp << "// Version: " << openfpga::VERSION << std::endl; - fp << "// Date: " << std::ctime(&end_time) << std::endl; + fp << "// Date: " << std::ctime(&end_time); } /******************************************************************** @@ -163,7 +163,9 @@ int write_config_chain_fabric_bitstream_to_text_file(std::fstream& fp, for (const auto& region_bitstream : regional_bitstreams) { fp << region_bitstream[ibit]; } - fp << std::endl; + if (ibit < regional_bitstream_max_size - 1) { + fp << std::endl; + } } return status;