openfpga/src/fpga_spice/spice_writer_utils.cpp
/************************************************
 * Generate header comments for a Spice netlist
 * include the description 
 ***********************************************/
Generate header comments for a Spice netlist
include the description
Generate header comments for a Spice netlist include the description
void print_spice_file_header(std::fstream& fp,
                             const std::string& usage) {
  VTR_ASSERT(true == 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 << "*\tFPGA-SPICE Netlist" << 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_spice_file_header ( std :: fstream & fp , const std :: string & usage ) { VTR_ASSERT ( true == 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 " << usage << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << std :: endl ; fp << " \t " << std :: ctime ( & end_time ) ; fp << " " << std :: endl ; fp << std :: endl ; }
Generate header comments for a Spice netlist
 include the description
Generate header comments for a Spice netlist include the description