[FPGA-Bitstream] Remove version numbers when ``--no_time_stamp`` is enabled

This commit is contained in:
tangxifan 2022-01-25 20:33:49 -08:00
parent c2c827ee10
commit a9e6b7c12e
6 changed files with 9 additions and 6 deletions

View File

@ -33,11 +33,12 @@ void report_architecture_bitstream_distribution_xml_file_head(std::fstream& fp,
fp << "<!-- " << std::endl;
fp << "\t- Report Architecture Bitstream Distribution" << std::endl;
fp << "\t- Version: " << openfpga::VERSION << std::endl;
if (include_time_stamp) {
auto end = std::chrono::system_clock::now();
std::time_t end_time = std::chrono::system_clock::to_time_t(end);
/* Note that version is also a type of time stamp */
fp << "\t- Version: " << openfpga::VERSION << std::endl;
fp << "\t- Date: " << std::ctime(&end_time) ;
}

View File

@ -35,11 +35,12 @@ void write_fabric_bitstream_text_file_head(std::fstream& fp,
valid_file_stream(fp);
fp << "// Fabric bitstream" << std::endl;
fp << "// Version: " << openfpga::VERSION << std::endl;
if (include_time_stamp) {
auto end = std::chrono::system_clock::now();
std::time_t end_time = std::chrono::system_clock::to_time_t(end);
/* Note that version is also a type of time stamp */
fp << "// Version: " << openfpga::VERSION << std::endl;
fp << "// Date: " << std::ctime(&end_time);
}
}

View File

@ -35,11 +35,12 @@ void write_io_mapping_xml_file_head(std::fstream& fp,
fp << "<!--" << std::endl;
fp << "\t- I/O mapping" << std::endl;
fp << "\t- Version: " << openfpga::VERSION << std::endl;
if (include_time_stamp) {
auto end = std::chrono::system_clock::now();
std::time_t end_time = std::chrono::system_clock::to_time_t(end);
/* Note that version is also a type of time stamp */
fp << "\t- Version: " << openfpga::VERSION << std::endl;
fp << "\t- Date: " << std::ctime(&end_time) ;
}

View File

@ -1,6 +1,6 @@
<!--
- Report Architecture Bitstream Distribution
- Version: 1.0.3764-dev+dd400579-dirty
- Version: 1.0.3764-dev+4a89d175
-->
<block name="fpga_top" number_of_bits="527">

View File

@ -1,5 +1,5 @@
// Fabric bitstream
// Version: 1.0.3764-dev+dd400579-dirty
// Version: 1.0.3764-dev+4a89d175
// Bitstream length: 527
// Bitstream width (LSB -> MSB): 1
1

View File

@ -1,6 +1,6 @@
<!--
- I/O mapping
- Version: 1.0.3764-dev+dd400579-dirty
- Version: 1.0.3764-dev+4a89d175
-->
<io_mapping>