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

sst/core/techModels/libMcPAT/crossbar.h

00001 /*****************************************************************************
00002  *                                McPAT
00003  *                      SOFTWARE LICENSE AGREEMENT
00004  *            Copyright 2009 Hewlett-Packard Development Company, L.P.
00005  *                          All Rights Reserved
00006  *
00007  * Permission to use, copy, and modify this software and its documentation is
00008  * hereby granted only under the following terms and conditions.  Both the
00009  * above copyright notice and this permission notice must appear in all copies
00010  * of the software, derivative works or modified versions, and any portions
00011  * thereof, and both notices must appear in supporting documentation.
00012  *
00013  * Any User of the software ("User"), by accessing and using it, agrees to the
00014  * terms and conditions set forth herein, and hereby grants back to Hewlett-
00015  * Packard Development Company, L.P. and its affiliated companies ("HP") a
00016  * non-exclusive, unrestricted, royalty-free right and license to copy,
00017  * modify, distribute copies, create derivate works and publicly display and
00018  * use, any changes, modifications, enhancements or extensions made to the
00019  * software by User, including but not limited to those affording
00020  * compatibility with other hardware or software, but excluding pre-existing
00021  * software applications that may incorporate the software.  User further
00022  * agrees to use its best efforts to inform HP of any such changes,
00023  * modifications, enhancements or extensions.
00024  *
00025  * Correspondence should be provided to HP at:
00026  *
00027  * Director of Intellectual Property Licensing
00028  * Office of Strategy and Technology
00029  * Hewlett-Packard Company
00030  * 1501 Page Mill Road
00031  * Palo Alto, California  94304
00032  *
00033  * The software may be further distributed by User (but not offered for
00034  * sale or transferred for compensation) to third parties, under the
00035  * condition that such third parties agree to abide by the terms and
00036  * conditions of this license.
00037  *
00038  * THE SOFTWARE IS PROVIDED "AS IS" WITH ANY AND ALL ERRORS AND DEFECTS
00039  * AND USER ACKNOWLEDGES THAT THE SOFTWARE MAY CONTAIN ERRORS AND DEFECTS.
00040  * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THE SOFTWARE, INCLUDING ALL
00041  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL
00042  * HP BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
00043  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00044  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER ACTION, ARISING
00045  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
00046  *
00047  ***************************************************************************/
00048 #ifndef __CROSSBAR_H__
00049 #define __CROSSBAR_H__
00050 
00051 #include "area.h"
00052 #include "decoder.h"
00053 #include "parameter.h"
00054 #include <vector>
00055 
00056 using namespace std;
00057 
00058 class Crossbar
00059 {
00060  public:
00061   Crossbar(
00062       int num_in_ports,
00063       int num_out_ports,
00064       int num_signals_per_port,
00065       double c_output_line_load,
00066       bool is_dram_);
00067   void compute_widths();
00068   double compute_delay(double inrisetime);
00069   void compute_area();
00070 
00071  public:
00072   int num_in_ports;
00073   int num_out_ports;
00074   int num_signals_per_port;
00075   double crossbar_wire_pitch,init_wire_pitch,max_wire_pitch;
00076   int min_number_gates;
00077   int number_gates_output_line_tristate_buffer;
00078   Driver crossbar_input_line_driver, crossbar_ctrl_driver;
00079   vector<double> width_output_line_tristate_buffer_n;
00080   vector<double> width_output_line_tristate_buffer_p;
00081   double width_output_line_tristate_buffer_nor2_n;
00082   double width_output_line_tristate_buffer_nor2_p;
00083   double c_output_line_load;
00084   double delay;
00085   powerDef power;
00086 
00087   bool is_dram;
00088   Area area;
00089 };
00090 
00091 
00092 #endif
00093 

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