• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/techModels/libMcPATbeta/wire.h

00001 /*------------------------------------------------------------
00002  *                              CACTI 6.5
00003  *         Copyright 2008 Hewlett-Packard Development Corporation
00004  *                         All Rights Reserved
00005  *
00006  * Permission to use, copy, and modify this software and its documentation is
00007  * hereby granted only under the following terms and conditions.  Both the
00008  * above copyright notice and this permission notice must appear in all copies
00009  * of the software, derivative works or modified versions, and any portions
00010  * thereof, and both notices must appear in supporting documentation.
00011  *
00012  * Users of this software agree to the terms and conditions set forth herein, and
00013  * hereby grant back to Hewlett-Packard Company and its affiliated companies ("HP")
00014  * a non-exclusive, unrestricted, royalty-free right and license under any changes,
00015  * enhancements or extensions  made to the core functions of the software, including
00016  * but not limited to those affording compatibility with other hardware or software
00017  * environments, but excluding applications which incorporate this software.
00018  * Users further agree to use their best efforts to return to HP any such changes,
00019  * enhancements or extensions that they make and inform HP of noteworthy uses of
00020  * this software.  Correspondence should be provided to HP at:
00021  *
00022  *                       Director of Intellectual Property Licensing
00023  *                       Office of Strategy and Technology
00024  *                       Hewlett-Packard Company
00025  *                       1501 Page Mill Road
00026  *                       Palo Alto, California  94304
00027  *
00028  * This software may be distributed (but not offered for sale or transferred
00029  * for compensation) to third parties, provided such third parties agree to
00030  * abide by the terms and conditions of this notice.
00031  *
00032  * THE SOFTWARE IS PROVIDED "AS IS" AND HP DISCLAIMS ALL
00033  * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
00034  * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL HP
00035  * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
00036  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
00037  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
00038  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00039  * SOFTWARE.
00040  *------------------------------------------------------------*/
00041 
00042 
00043 
00044 #ifndef __WIRE_H__
00045 #define __WIRE_H__
00046 
00047 #include "basic_circuit.h"
00048 #include "McPATcomponent.h"
00049 #include "parameter.h"
00050 #include "assert.h"
00051 #include "cacti_interface.h"
00052 #include <iostream>
00053 #include <list>
00054 
00055 class Wire : public McPATComponent
00056 {
00057   public:
00058     Wire(enum Wire_type wire_model, double len /* in u*/,
00059          int nsense = 1/* no. of sense amps connected to the low-swing wire */,
00060          double width_scaling = 1,
00061          double spacing_scaling = 1,
00062          enum Wire_placement wire_placement = outside_mat,
00063          double resistivity = CU_RESISTIVITY,
00064          TechnologyParameter::DeviceType *dt = &(g_tp.peri_global));
00065     ~Wire();
00066 
00067     Wire( double width_scaling = 1,
00068          double spacing_scaling = 1,
00069          enum Wire_placement wire_placement = outside_mat,
00070          double resistivity = CU_RESISTIVITY,
00071          TechnologyParameter::DeviceType *dt = &(g_tp.peri_global)
00072     ); // should be used only once for initializing static members
00073     void init_wire();
00074 
00075     void calculate_wire_stats();
00076     void delay_optimal_wire();
00077     double wire_cap(double len, bool call_from_outside=false);
00078     double wire_res(double len);
00079     void low_swing_model();
00080     double signal_fall_time();
00081     double signal_rise_time();
00082     double sense_amp_input_cap();
00083 
00084     enum Wire_type wt;
00085     double wire_spacing;
00086     double wire_width;
00087     enum Wire_placement wire_placement;
00088     double repeater_size;
00089     double repeater_spacing;
00090     double wire_length;
00091     double in_rise_time, out_rise_time;
00092 
00093     void set_in_rise_time(double rt)
00094     {
00095       in_rise_time = rt;
00096     }
00097     static McPATComponent global;
00098     static McPATComponent global_5;
00099     static McPATComponent global_10;
00100     static McPATComponent global_20;
00101     static McPATComponent global_30;
00102     static McPATComponent low_swing;
00103     static double wire_width_init;
00104     static double wire_spacing_init;
00105     void print_wire();
00106 
00107   private:
00108 
00109     int nsense; // no. of sense amps connected to a low-swing wire if it
00110                 // is broadcasting data to multiple destinations
00111     // width and spacing scaling factor can be used
00112     // to model low level wires or special
00113     // fat wires
00114     double w_scale, s_scale;
00115     double resistivity;
00116     powerDef wire_model (double space, double size, double *delay);
00117     list <McPATComponent> repeated_wire;
00118     void update_fullswing();
00119     static int initialized;
00120 
00121 
00122     //low-swing
00123     McPATComponent transmitter;
00124     McPATComponent l_wire;
00125     McPATComponent sense_amp;
00126 
00127     double min_w_pmos;
00128 
00129     TechnologyParameter::DeviceType *deviceType;
00130 
00131 };
00132 
00133 #endif

Generated on Fri Oct 22 2010 11:02:14 for SST by  doxygen 1.7.1