Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
d1f10f32
Commit
d1f10f32
authored
Feb 22, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding commands to generate data for experiments.
parent
3c586f88
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
6 deletions
+74
-6
abcexe.dsp
+4
-0
abclib.dsp
+4
-0
src/aig/gia/giaGen.c
+6
-6
src/aig/gia/giaSim5.c
+55
-0
src/aig/gia/module.make
+1
-0
src/base/main/mainInit.c
+4
-0
No files found.
abcexe.dsp
View file @
d1f10f32
...
...
@@ -88,6 +88,10 @@ LINK32=link.exe
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\src\base\abci\abc.c
# End Source File
# Begin Source File
SOURCE=.\src\base\main\main.c
# End Source File
# End Group
...
...
abclib.dsp
View file @
d1f10f32
...
...
@@ -5039,6 +5039,10 @@ SOURCE=.\src\aig\gia\giaSim4.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaSim5.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaSimBase.c
# End Source File
# Begin Source File
...
...
src/aig/gia/giaGen.c
View file @
d1f10f32
...
...
@@ -156,10 +156,10 @@ void Gia_ManDumpFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, char *
char
pFileNameOutVX
[
100
];
char
pFileNameOutVY
[
100
];
sprintf
(
pFileNameOutTX
,
"
data/
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
(
pFileNameOutVX
,
"
data/
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
(
pFileNameOutTX
,
"train_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
0
],
Gia_ManCiNum
(
p
)
);
sprintf
(
pFileNameOutTY
,
"train_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
0
],
Gia_ManCoNum
(
p
)
);
sprintf
(
pFileNameOutVX
,
"test_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
1
],
Gia_ManCiNum
(
p
)
);
sprintf
(
pFileNameOutVY
,
"test_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
1
],
Gia_ManCoNum
(
p
)
);
Gia_ManRandomW
(
1
);
for
(
n
=
0
;
n
<
Seed
;
n
++
)
...
...
@@ -241,8 +241,8 @@ void Gia_ManDumpPlaFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, cha
char
pFileNameOutT
[
100
];
char
pFileNameOutV
[
100
];
sprintf
(
pFileNameOutT
,
"
data/
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
(
pFileNameOutT
,
"train_%s_%d.pla"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
0
],
Gia_ManCiNum
(
p
)
);
sprintf
(
pFileNameOutV
,
"test_%s_%d.pla"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
1
],
Gia_ManCiNum
(
p
)
);
Gia_ManRandomW
(
1
);
for
(
n
=
0
;
n
<
Seed
;
n
++
)
...
...
src/aig/gia/giaSim5.c
0 → 100644
View file @
d1f10f32
/**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
src/aig/gia/module.make
View file @
d1f10f32
...
...
@@ -76,6 +76,7 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaSim.c
\
src/aig/gia/giaSim2.c
\
src/aig/gia/giaSim4.c
\
src/aig/gia/giaSim5.c
\
src/aig/gia/giaSimBase.c
\
src/aig/gia/giaSort.c
\
src/aig/gia/giaSpeedup.c
\
...
...
src/base/main/mainInit.c
View file @
d1f10f32
...
...
@@ -55,6 +55,8 @@ extern void Cba_Init( Abc_Frame_t * pAbc );
extern
void
Cba_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Pla_Init
(
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_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc2_Init
(
Abc_Frame_t
*
pAbc
);
...
...
@@ -115,6 +117,7 @@ void Abc_FrameInit( Abc_Frame_t * pAbc )
Bac_Init
(
pAbc
);
Cba_Init
(
pAbc
);
Pla_Init
(
pAbc
);
Sim_Init
(
pAbc
);
Test_Init
(
pAbc
);
Glucose_Init
(
pAbc
);
for
(
p
=
s_InitializerStart
;
p
;
p
=
p
->
next
)
...
...
@@ -154,6 +157,7 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc )
Bac_End
(
pAbc
);
Cba_End
(
pAbc
);
Pla_End
(
pAbc
);
Sim_End
(
pAbc
);
Test_End
(
pAbc
);
Glucose_End
(
pAbc
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment