openfpga/src/fpga_spice/spice_subckt_writer.cpp
/********************************************************************
 * Print output short connections inside a SPICE module
 * The output short connection is defined as the direct connection
 * between two output ports of the module
 * This type of connection is not covered when printing SPICE instances
 * Therefore, they are covered in this function 
 *
 *            module
 *            +-----------------------------+
 *                                          |
 *               src------>+--------------->|--->outputA
 *                         |                |
 *                         |                |
 *                         +--------------->|--->outputB
 *            +-----------------------------+
 *******************************************************************/
Print output short connections inside a SPICE module
The output short connection is defined as the direct connection
between two output ports of the module
This type of connection is not covered when printing SPICE instances
Therefore, they are covered in this function


Print output short connections inside a SPICE module The output short connection is defined as the direct connection between two output ports of the module This type of connection is not covered when printing SPICE instances Therefore they are covered in this function
static 
void print_spice_subckt_output_short_connections(std::fstream& fp, 
                                                 const ModuleManager& module_manager,
                                                 const ModuleId& module_id) {
  for (ModuleNetId module_net : module_manager.module_nets(module_id)) {
    if (false == module_net_include_output_short_connection(module_manager, module_id, module_net)) {
      continue;
    }
    print_spice_subckt_output_short_connection(fp, module_manager, module_id, module_net); 
  }
}
static void print_spice_subckt_output_short_connections ( std :: fstream & fp , const ModuleManager & module_manager , const ModuleId & module_id ) { for ( ModuleNetId module_net : module_manager . module_nets ( module_id ) ) { if ( false == module_net_include_output_short_connection ( module_manager , module_id , module_net ) ) { continue ; } print_spice_subckt_output_short_connection ( fp , module_manager , module_id , module_net ) ; } }
Print output short connections inside a SPICE module
 The output short connection is defined as the direct connection
 between two output ports of the module
 This type of connection is not covered when printing SPICE instances
 Therefore, they are covered in this function
Print output short connections inside a SPICE module The output short connection is defined as the direct connection between two output ports of the module This type of connection is not covered when printing SPICE instances Therefore they are covered in this function
/* Local wires come from the child modules */ /* We only care the nets that indicate short connections */