Commit d1f10f32 by Alan Mishchenko

Adding commands to generate data for experiments.

parent 3c586f88
...@@ -88,6 +88,10 @@ LINK32=link.exe ...@@ -88,6 +88,10 @@ LINK32=link.exe
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File # Begin Source File
SOURCE=.\src\base\abci\abc.c
# End Source File
# Begin Source File
SOURCE=.\src\base\main\main.c SOURCE=.\src\base\main\main.c
# End Source File # End Source File
# End Group # End Group
......
...@@ -5039,6 +5039,10 @@ SOURCE=.\src\aig\gia\giaSim4.c ...@@ -5039,6 +5039,10 @@ SOURCE=.\src\aig\gia\giaSim4.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\src\aig\gia\giaSim5.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaSimBase.c SOURCE=.\src\aig\gia\giaSimBase.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -156,10 +156,10 @@ void Gia_ManDumpFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, char * ...@@ -156,10 +156,10 @@ void Gia_ManDumpFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, char *
char pFileNameOutVX[100]; char pFileNameOutVX[100];
char pFileNameOutVY[100]; char pFileNameOutVY[100];
sprintf( pFileNameOutTX, "data/train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCiNum(p) ); sprintf( pFileNameOutTX, "train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCiNum(p) );
sprintf( pFileNameOutTY, "data/train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCoNum(p) ); sprintf( pFileNameOutTY, "train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCoNum(p) );
sprintf( pFileNameOutVX, "data/test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCiNum(p) ); sprintf( pFileNameOutVX, "test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCiNum(p) );
sprintf( pFileNameOutVY, "data/test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCoNum(p) ); sprintf( pFileNameOutVY, "test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCoNum(p) );
Gia_ManRandomW( 1 ); Gia_ManRandomW( 1 );
for ( n = 0; n < Seed; n++ ) for ( n = 0; n < Seed; n++ )
...@@ -241,8 +241,8 @@ void Gia_ManDumpPlaFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, cha ...@@ -241,8 +241,8 @@ void Gia_ManDumpPlaFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, cha
char pFileNameOutT[100]; char pFileNameOutT[100];
char pFileNameOutV[100]; char pFileNameOutV[100];
sprintf( pFileNameOutT, "data/train_%s_%d.pla", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCiNum(p) ); sprintf( pFileNameOutT, "train_%s_%d.pla", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCiNum(p) );
sprintf( pFileNameOutV, "data/test_%s_%d.pla", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCiNum(p) ); sprintf( pFileNameOutV, "test_%s_%d.pla", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCiNum(p) );
Gia_ManRandomW( 1 ); Gia_ManRandomW( 1 );
for ( n = 0; n < Seed; n++ ) for ( n = 0; n < Seed; n++ )
......
/**CFile****************************************************************
FileName [giaSim5.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Simulation engine.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: giaSim5.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
#include "gia.h"
#include "base/main/main.h"
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
void Sim_Init( Abc_Frame_t * pAbc ) {}
void Sim_End( Abc_Frame_t * pAbc ) {}
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_IMPL_END
...@@ -76,6 +76,7 @@ SRC += src/aig/gia/giaAig.c \ ...@@ -76,6 +76,7 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaSim.c \ src/aig/gia/giaSim.c \
src/aig/gia/giaSim2.c \ src/aig/gia/giaSim2.c \
src/aig/gia/giaSim4.c \ src/aig/gia/giaSim4.c \
src/aig/gia/giaSim5.c \
src/aig/gia/giaSimBase.c \ src/aig/gia/giaSimBase.c \
src/aig/gia/giaSort.c \ src/aig/gia/giaSort.c \
src/aig/gia/giaSpeedup.c \ src/aig/gia/giaSpeedup.c \
......
...@@ -55,6 +55,8 @@ extern void Cba_Init( Abc_Frame_t * pAbc ); ...@@ -55,6 +55,8 @@ extern void Cba_Init( Abc_Frame_t * pAbc );
extern void Cba_End( Abc_Frame_t * pAbc ); extern void Cba_End( Abc_Frame_t * pAbc );
extern void Pla_Init( Abc_Frame_t * pAbc ); extern void Pla_Init( Abc_Frame_t * pAbc );
extern void Pla_End( Abc_Frame_t * pAbc ); extern void Pla_End( Abc_Frame_t * pAbc );
extern void Sim_Init( Abc_Frame_t * pAbc );
extern void Sim_End( Abc_Frame_t * pAbc );
extern void Test_Init( Abc_Frame_t * pAbc ); extern void Test_Init( Abc_Frame_t * pAbc );
extern void Test_End( Abc_Frame_t * pAbc ); extern void Test_End( Abc_Frame_t * pAbc );
extern void Abc2_Init( Abc_Frame_t * pAbc ); extern void Abc2_Init( Abc_Frame_t * pAbc );
...@@ -115,6 +117,7 @@ void Abc_FrameInit( Abc_Frame_t * pAbc ) ...@@ -115,6 +117,7 @@ void Abc_FrameInit( Abc_Frame_t * pAbc )
Bac_Init( pAbc ); Bac_Init( pAbc );
Cba_Init( pAbc ); Cba_Init( pAbc );
Pla_Init( pAbc ); Pla_Init( pAbc );
Sim_Init( pAbc );
Test_Init( pAbc ); Test_Init( pAbc );
Glucose_Init( pAbc ); Glucose_Init( pAbc );
for( p = s_InitializerStart ; p ; p = p->next ) for( p = s_InitializerStart ; p ; p = p->next )
...@@ -154,6 +157,7 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc ) ...@@ -154,6 +157,7 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc )
Bac_End( pAbc ); Bac_End( pAbc );
Cba_End( pAbc ); Cba_End( pAbc );
Pla_End( pAbc ); Pla_End( pAbc );
Sim_End( pAbc );
Test_End( pAbc ); Test_End( pAbc );
Glucose_End( pAbc ); Glucose_End( pAbc );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment