param.h

Go to the documentation of this file.
00001 #ifndef __PARAM_H__
00002 #define __PARAM_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 mod_parm* mod_parm_find(
00033   const char* name,
00034   mod_parm* parm
00035 );
00036 
00038 mod_parm* mod_parm_add(
00039   char*        scope,
00040   static_expr* msb,
00041   static_expr* lsb,
00042   bool         is_signed,
00043   expression*  expr,
00044   int          type,
00045   func_unit*   funit,
00046   char*        inst_name
00047 );
00048 
00050 void mod_parm_display( mod_parm* mparm );
00051 
00053 void inst_parm_add_genvar( vsignal* sig, funit_inst* inst );
00054 
00056 void inst_parm_bind( inst_parm* iparm );
00057 
00059 void defparam_add( const char* scope, vector* expr );
00060 
00062 void defparam_dealloc();
00063 
00065 void param_set_sig_size( vsignal* sig, inst_parm* icurr );
00066 
00068 void param_expr_eval( expression* expr, funit_inst* inst );
00069 
00071 void param_resolve_inst( funit_inst* inst );
00072 
00074 void param_resolve( funit_inst* inst );
00075 
00077 void param_db_write( inst_parm* iparm, FILE* file );
00078 
00080 void mod_parm_dealloc( mod_parm* parm, bool recursive );
00081 
00083 void inst_parm_dealloc( inst_parm* parm, bool recursive );
00084 
00085 #endif
00086 
Generated on Sun Nov 21 00:55:35 2010 for Covered by  doxygen 1.6.3