memory.h

Go to the documentation of this file.
00001 #ifndef __MEMORY_H__
00002 #define __MEMORY_H__
00003 
00004 /*
00005  Copyright (c) 2006-2010 Trevor Williams
00006 
00007  This program is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by the Free Software
00009  Foundation; either version 2 of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00012  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00013  See the GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License along with this program;
00016  if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00026 #include <stdio.h>
00027 
00028 #include "defines.h"
00029 
00030 
00032 void memory_get_stat(
00033             vsignal*      sig,
00034   /*@out@*/ unsigned int* wr_hit,
00035   /*@out@*/ unsigned int* rd_hit,
00036   /*@out@*/ unsigned int* ae_total,
00037   /*@out@*/ unsigned int* tog01_hit,
00038   /*@out@*/ unsigned int* tog10_hit,
00039   /*@out@*/ unsigned int* tog_total,
00040   /*@out@*/ unsigned int* excluded,
00041   /*@out@*/ bool*         cov_found,
00042             bool          ignore_excl
00043 );
00044 
00046 void memory_get_stats(
00047             func_unit*    funit,
00048   /*@out@*/ unsigned int* wr_hit,
00049   /*@out@*/ unsigned int* rd_hit,
00050   /*@out@*/ unsigned int* ae_total,
00051   /*@out@*/ unsigned int* tog01_hit,
00052   /*@out@*/ unsigned int* tog10_hit,
00053   /*@out@*/ unsigned int* tog_total,
00054   /*@out@*/ unsigned int* excluded,
00055   /*@out@*/ bool*         cov_found
00056 );
00057 
00059 void memory_get_funit_summary(
00060             func_unit*    funit,
00061   /*@out@*/ unsigned int* hit,
00062   /*@out@*/ unsigned int* excluded,
00063   /*@out@*/ unsigned int* total
00064 );
00065 
00067 void memory_get_inst_summary(
00068             funit_inst*   funit,
00069   /*@out@*/ unsigned int* hit,
00070   /*@out@*/ unsigned int* excluded,
00071   /*@out@*/ unsigned int* total
00072 );
00073 
00075 void memory_get_coverage(
00076             func_unit*  funit,
00077             const char* signame,
00078   /*@out@*/ char**      pdim_str,
00079   /*@out@*/ char**      pdim_array,
00080   /*@out@*/ char**      udim_str,
00081   /*@out@*/ char**      memory_info,
00082   /*@out@*/ int*        excluded,
00083   /*@out@*/ char**      reason
00084 );
00085 
00087 void memory_collect(
00088             func_unit* funit,
00089             int        cov,
00090   /*@out@*/ sig_link** head,
00091   /*@out@*/ sig_link** tail
00092 );
00093 
00095 void memory_report(
00096   FILE* ofile,
00097   bool  verbose
00098 );
00099 
00100 #endif
00101 
Generated on Sun Nov 21 00:55:35 2010 for Covered by  doxygen 1.6.3