openfpga/src/fpga_spice/spice_writer_utils.cpp
/************************************************
 * Print a resistor in SPICE syntax
 ***********************************************/
Print a resistor in SPICE syntax
Print a resistor in SPICE syntax
void print_spice_resistor(std::fstream& fp,
                          const std::string& input_port,
                          const std::string& output_port,
                          const float& resistance) {
  VTR_ASSERT(true == valid_file_stream(fp));
  fp << "R" << input_port << "_to_"  << output_port;
  fp << " " << input_port;
  fp << " " << output_port;
  fp << " " << std::setprecision(10) << resistance;
  fp << std::endl;
}
void print_spice_resistor ( std :: fstream & fp , const std :: string & input_port , const std :: string & output_port , const float & resistance ) { VTR_ASSERT ( true == valid_file_stream ( fp ) ) ; fp << " " << input_port << " " << output_port ; fp << " " << input_port ; fp << " " << output_port ; fp << " " << std :: setprecision ( 10 ) << resistance ; fp << std :: endl ; }
Print a resistor in SPICE syntax
Print a resistor in SPICE syntax
/* Set an unique name to the resistor */