Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

/Users/trevorw/projects/release/covered-0.7.4/src/vsignal.h

Go to the documentation of this file.
00001 #ifndef __VSIGNAL_H__
00002 #define __VSIGNAL_H__
00003 
00004 /*
00005  Copyright (c) 2006-2009 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 vsignal* vsignal_create(
00033   const char*  name,
00034   unsigned int type,
00035   unsigned int width,
00036   unsigned int line,
00037   unsigned int col
00038 );
00039 
00041 void vsignal_create_vec( vsignal* sig );
00042 
00044 vsignal* vsignal_duplicate( vsignal* sig );
00045 
00047 void vsignal_db_write( vsignal* sig, FILE* file );
00048 
00050 void vsignal_db_read( char** line, /*@null@*/func_unit* curr_funit );
00051 
00053 void vsignal_db_merge( vsignal* base, char** line, bool same );
00054 
00056 void vsignal_merge(
00057   vsignal* base,
00058   vsignal* other
00059 );
00060 
00062 void vsignal_propagate(
00063   vsignal*        sig,
00064   const sim_time* time
00065 );
00066 
00068 void vsignal_vcd_assign(
00069   vsignal*        sig,
00070   const char*     value,
00071   unsigned int    msb,
00072   unsigned int    lsb,
00073   const sim_time* time
00074 );
00075 
00077 void vsignal_add_expression( vsignal* sig, expression* expr );
00078 
00080 void vsignal_display( vsignal* sig );
00081 
00083 vsignal* vsignal_from_string( char** str );
00084 
00086 int vsignal_calc_width_for_expr( expression* expr, vsignal* sig );
00087 
00089 int vsignal_calc_lsb_for_expr( expression* expr, vsignal* sig, int lsb_val );
00090 
00092 void vsignal_dealloc( vsignal* sig );
00093 
00094 #endif
00095 

Generated on Wed Jun 17 22:19:20 2009 for Covered by doxygen 1.3.4