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

sst/core/techModels/libsim-panalyzer/libpa_lv2/logic_panalyzer.h

00001 /*
00002 * logic_panalyzer.h - basic random logic power analyzer data types, 
00003 * strcutres and thier manipulation functions. 
00004 *
00005 * This file is a part of the PowerAnalyzer tool suite written by
00006 * Nam Sung Kim as a part of the PowerAnalyzer Project.
00007 *  
00008 * The tool suite is currently maintained by Nam Sung Kim.
00009 * 
00010 * Copyright (C) 2001 by Nam Sung Kim
00011 *
00012 * This source file is distributed "as is" in the hope that it will be
00013 * useful.  The tool set comes with no warranty, and no author or
00014 * distributor accepts any responsibility for the consequences of its
00015 * use. 
00016 * 
00017 * Everyone is granted permission to copy, modify and redistribute
00018 * this tool set under the following conditions:
00019 * 
00020 *    This source code is distributed for non-commercial use only. 
00021 *    Please contact the maintainer for restrictions applying to 
00022 *    commercial use.
00023 *
00024 *    Permission is granted to anyone to make or distribute copies
00025 *    of this source code, either as received or modified, in any
00026 *    medium, provided that all copyright notices, permission and
00027 *    nonwarranty notices are preserved, and that the distributor
00028 *    grants the recipient permission for further redistribution as
00029 *    permitted by this document.
00030 *
00031 *    Permission is granted to distribute this file in compiled
00032 *    or executable form under the same conditions that apply for
00033 *    source code, provided that either:
00034 *
00035 *    A. it is accompanied by the corresponding machine-readable
00036 *       source code,
00037 *    B. it is accompanied by a written offer, with no time limit,
00038 *       to give anyone a machine-readable copy of the corresponding
00039 *       source code in return for reimbursement of the cost of
00040 *       distribution.  This written offer must permit verbatim
00041 *       duplication by anyone, or
00042 *    C. it is distributed by someone who received only the
00043 *       executable form, and is accompanied by a copy of the
00044 *       written offer of source code that they received concurrently.
00045 *
00046 * In other words, you are welcome to use, share and improve this
00047 * source file.  You are forbidden to forbid anyone else to use, share
00048 * and improve what you give them.
00049 */
00050 
00051 #ifndef LOGIC_PANALYZER_H
00052 #define LOGIC_PANALYZER_H
00053 #include "panalyzer.h"
00054 
00055 /* clock clocktree style - this should be done by configurator - future work! */
00056 typedef enum _fu_logic_style_t{
00057     Static,
00058     Dynamic,
00059 } fu_logic_style_t;
00060 
00061 typedef struct _fu_logic_pspec_t {
00062         char *name; /* name */
00063         fu_pmodel_mode_t pmodel; /* power model mode */
00064         double opfreq, svolt; /* operating frequency/supply voltage */
00065         fu_dimension_t *dimension;      
00066 
00067         fu_logic_style_t logic_style; /* logic tree style */
00068 
00069         /* effective pdissipation capacitances */
00070         fu_Ceffs_t *Ceffs;
00071         fu_pdissipation_t *pdissipation; /* pdissipation statistics */
00072         fu_pdissipation_t pmwindow[MaxPMWindows]; /* power monitoring window */
00073 } fu_logic_pspec_t;
00074 
00075 double
00076 estimate_nandCeff(
00077         double k, /* transistor sizing ratio */
00078         double fi /* average fanin */);
00079 
00080 #endif /* LOGIC_PANALYZER_H */
00081 

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