2005-07-29 17:01:00 +02:00
|
|
|
/**CFile****************************************************************
|
|
|
|
|
|
|
|
|
|
FileName [cmd.h]
|
|
|
|
|
|
|
|
|
|
SystemName [ABC: Logic synthesis and verification system.]
|
|
|
|
|
|
|
|
|
|
PackageName [Command processing package.]
|
|
|
|
|
|
|
|
|
|
Synopsis [External declarations of the command package.]
|
|
|
|
|
|
|
|
|
|
Author [Alan Mishchenko]
|
|
|
|
|
|
|
|
|
|
Affiliation [UC Berkeley]
|
|
|
|
|
|
|
|
|
|
Date [Ver. 1.0. Started - June 20, 2005.]
|
|
|
|
|
|
|
|
|
|
Revision [$Id: cmd.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
|
|
|
|
|
|
|
|
|
|
***********************************************************************/
|
|
|
|
|
|
2012-01-21 13:30:10 +01:00
|
|
|
#ifndef ABC__base__cmd__cmd_h
|
|
|
|
|
#define ABC__base__cmd__cmd_h
|
2005-07-29 17:01:00 +02:00
|
|
|
|
2010-11-01 09:35:04 +01:00
|
|
|
|
2005-07-29 17:01:00 +02:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/// INCLUDES ///
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2010-11-01 09:35:04 +01:00
|
|
|
ABC_NAMESPACE_HEADER_START
|
|
|
|
|
|
2005-07-29 17:01:00 +02:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/// PARAMETERS ///
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/// STRUCTURE DEFINITIONS ///
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
typedef struct MvCommand Abc_Command; // one command
|
|
|
|
|
typedef struct MvAlias Abc_Alias; // one alias
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
2008-01-31 05:01:00 +01:00
|
|
|
/// MACRO DEFINITIONS ///
|
2005-07-29 17:01:00 +02:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
2008-01-31 05:01:00 +01:00
|
|
|
/// FUNCTION DEFINITIONS ///
|
2005-07-29 17:01:00 +02:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
/*=== cmd.c ===========================================================*/
|
2010-11-01 09:35:04 +01:00
|
|
|
extern void Cmd_Init( Abc_Frame_t * pAbc );
|
|
|
|
|
extern void Cmd_End( Abc_Frame_t * pAbc );
|
2005-07-29 17:01:00 +02:00
|
|
|
/*=== cmdApi.c ========================================================*/
|
2010-11-01 09:35:04 +01:00
|
|
|
typedef int (*Cmd_CommandFuncType)(Abc_Frame_t*, int, char**);
|
|
|
|
|
extern void Cmd_CommandAdd( Abc_Frame_t * pAbc, const char * sGroup, const char * sName, Cmd_CommandFuncType pFunc, int fChanges );
|
|
|
|
|
extern ABC_DLL int Cmd_CommandExecute( Abc_Frame_t * pAbc, const char * sCommand );
|
2005-07-29 17:01:00 +02:00
|
|
|
/*=== cmdFlag.c ========================================================*/
|
|
|
|
|
extern char * Cmd_FlagReadByName( Abc_Frame_t * pAbc, char * flag );
|
2010-11-01 09:35:04 +01:00
|
|
|
extern void Cmd_FlagDeleteByName( Abc_Frame_t * pAbc, const char * key );
|
|
|
|
|
extern void Cmd_FlagUpdateValue( Abc_Frame_t * pAbc, const char * key, char * value );
|
2005-07-29 17:01:00 +02:00
|
|
|
/*=== cmdHist.c ========================================================*/
|
2010-11-01 09:35:04 +01:00
|
|
|
extern void Cmd_HistoryAddCommand( Abc_Frame_t * pAbc, const char * command );
|
2012-08-24 21:25:53 +02:00
|
|
|
extern void Cmd_HistoryRead( Abc_Frame_t * p );
|
2012-08-25 21:32:44 +02:00
|
|
|
extern void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit );
|
2011-02-14 00:16:10 +01:00
|
|
|
/*=== cmdLoad.c ========================================================*/
|
|
|
|
|
extern int CmdCommandLoad( Abc_Frame_t * pAbc, int argc, char ** argv );
|
2010-11-01 09:35:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ABC_NAMESPACE_HEADER_END
|
|
|
|
|
|
2005-07-29 17:01:00 +02:00
|
|
|
|
2008-01-31 05:01:00 +01:00
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2005-07-29 17:01:00 +02:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/// END OF FILE ///
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|