openfpga/src/fpga_sdc/sdc_writer_utils.cpp
/********************************************************************
 * Write a head (description) in SDC file 
 *******************************************************************/
Write a head (description) in SDC file
Write a head ( description ) in SDC file
void print_sdc_file_header(std::fstream& fp,
                           const std::string& usage) {
  valid_file_stream(fp);
  auto end = std::chrono::system_clock::now(); 
  std::time_t end_time = std::chrono::system_clock::to_time_t(end);
  fp << "#############################################" << std::endl;
  fp << "#\tSynopsys Design Constraints (SDC)" << std::endl;
  fp << "#\tFor FPGA fabric " << std::endl;
  fp << "#\tDescription: " << usage << std::endl;
  fp << "#\tAuthor: Xifan TANG " << std::endl;
  fp << "#\tOrganization: University of Utah " << std::endl;
  fp << "#\tDate: " << std::ctime(&end_time);
  fp << "#############################################" << std::endl;
  fp << std::endl;
}
void print_sdc_file_header ( std :: fstream & fp , const std :: string & usage ) { valid_file_stream ( fp ) ; auto end = std :: chrono :: system_clock :: now ( ) ; std :: time_t end_time = std :: chrono :: system_clock :: to_time_t ( end ) ; fp << " " << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << usage << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << std :: ctime ( & end_time ) ; fp << " " << std :: endl ; fp << std :: endl ; }
Write a head (description) in SDC file
Write a head ( description ) in SDC file