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
1917321c
Commit
1917321c
authored
Aug 06, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scalable gate-level abstraction.
parent
6a9eaec3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
src/aig/gia/giaAbsGla2.c
+13
-1
src/aig/gia/giaAbsRef.c
+1
-1
src/aig/gia/giaAbsVta.c
+1
-0
No files found.
src/aig/gia/giaAbsGla2.c
View file @
1917321c
...
@@ -152,10 +152,14 @@ unsigned Ga2_ManComputeTruth( Gia_Man_t * p, Gia_Obj_t * pRoot, Vec_Int_t * vLea
...
@@ -152,10 +152,14 @@ unsigned Ga2_ManComputeTruth( Gia_Man_t * p, Gia_Obj_t * pRoot, Vec_Int_t * vLea
{
{
static
unsigned
uTruth5
[
5
]
=
{
0xAAAAAAAA
,
0xCCCCCCCC
,
0xF0F0F0F0
,
0xFF00FF00
,
0xFFFF0000
};
static
unsigned
uTruth5
[
5
]
=
{
0xAAAAAAAA
,
0xCCCCCCCC
,
0xF0F0F0F0
,
0xFF00FF00
,
0xFFFF0000
};
Gia_Obj_t
*
pObj
;
Gia_Obj_t
*
pObj
;
unsigned
Res
;
int
i
;
int
i
;
Gia_ManForEachObjVec
(
vLeaves
,
p
,
pObj
,
i
)
Gia_ManForEachObjVec
(
vLeaves
,
p
,
pObj
,
i
)
pObj
->
Value
=
uTruth5
[
i
];
pObj
->
Value
=
uTruth5
[
i
];
return
Ga2_ObjComputeTruth_rec
(
p
,
pRoot
,
1
);
Res
=
Ga2_ObjComputeTruth_rec
(
p
,
pRoot
,
1
);
Gia_ManForEachObjVec
(
vLeaves
,
p
,
pObj
,
i
)
pObj
->
Value
=
0
;
return
Res
;
}
}
/**Function*************************************************************
/**Function*************************************************************
...
@@ -581,6 +585,8 @@ if ( fVerbose )
...
@@ -581,6 +585,8 @@ if ( fVerbose )
}
}
}
}
Gia_ManForEachObjVec
(
vLeaves
,
p
,
pObj
,
i
)
pObj
->
Value
=
0
;
return
Res
;
return
Res
;
}
}
...
@@ -1088,6 +1094,10 @@ void Ga2_ManRestart( Ga2_Man_t * p )
...
@@ -1088,6 +1094,10 @@ void Ga2_ManRestart( Ga2_Man_t * p )
// clear SAT variable numbers (begin with 1)
// clear SAT variable numbers (begin with 1)
if
(
p
->
pSat
)
sat_solver2_delete
(
p
->
pSat
);
if
(
p
->
pSat
)
sat_solver2_delete
(
p
->
pSat
);
p
->
pSat
=
sat_solver2_new
();
p
->
pSat
=
sat_solver2_new
();
p
->
pSat
->
nLearntStart
=
p
->
pPars
->
nLearnedStart
;
p
->
pSat
->
nLearntDelta
=
p
->
pPars
->
nLearnedDelta
;
p
->
pSat
->
nLearntRatio
=
p
->
pPars
->
nLearnedPerce
;
p
->
pSat
->
nLearntMax
=
p
->
pSat
->
nLearntStart
;
// add clause x0 = 0 (lit0 = 1; lit1 = 0)
// add clause x0 = 0 (lit0 = 1; lit1 = 0)
sat_solver2_addclause
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
,
-
1
);
sat_solver2_addclause
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
,
-
1
);
// remove previous abstraction
// remove previous abstraction
...
@@ -1312,6 +1322,7 @@ void Ga2_GlaDumpAbsracted( Ga2_Man_t * p, int fVerbose )
...
@@ -1312,6 +1322,7 @@ void Ga2_GlaDumpAbsracted( Ga2_Man_t * p, int fVerbose )
vGateClasses
=
Ga2_ManAbsTranslate
(
p
);
vGateClasses
=
Ga2_ManAbsTranslate
(
p
);
pAbs
=
Gia_ManDupAbsGates
(
p
->
pGia
,
vGateClasses
);
pAbs
=
Gia_ManDupAbsGates
(
p
->
pGia
,
vGateClasses
);
Vec_IntFreeP
(
&
vGateClasses
);
Vec_IntFreeP
(
&
vGateClasses
);
Gia_ManCleanValue
(
p
->
pGia
);
// write into file
// write into file
Gia_WriteAiger
(
pAbs
,
pFileName
,
0
,
0
);
Gia_WriteAiger
(
pAbs
,
pFileName
,
0
,
0
);
Gia_ManStop
(
pAbs
);
Gia_ManStop
(
pAbs
);
...
@@ -1452,6 +1463,7 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
...
@@ -1452,6 +1463,7 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
Status
=
sat_solver2_solve
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
,
(
ABC_INT64_T
)
pPars
->
nConfLimit
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
Status
=
sat_solver2_solve
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
,
(
ABC_INT64_T
)
pPars
->
nConfLimit
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
if
(
Status
==
l_True
)
// perform refinement
if
(
Status
==
l_True
)
// perform refinement
{
{
p
->
nCexes
++
;
p
->
timeSat
+=
clock
()
-
clk2
;
p
->
timeSat
+=
clock
()
-
clk2
;
clk2
=
clock
();
clk2
=
clock
();
...
...
src/aig/gia/giaAbsRef.c
View file @
1917321c
...
@@ -543,7 +543,7 @@ Vec_Int_t * Rnm_ManRefine( Rnm_Man_t * p, Abc_Cex_t * pCex, Vec_Int_t * vMap, in
...
@@ -543,7 +543,7 @@ Vec_Int_t * Rnm_ManRefine( Rnm_Man_t * p, Abc_Cex_t * pCex, Vec_Int_t * vMap, in
p
->
timeBwd
+=
clock
()
-
clk
;
p
->
timeBwd
+=
clock
()
-
clk
;
}
}
// clean values
// clean values
//
Rnm_ManCleanValues( p );
Rnm_ManCleanValues
(
p
);
// verify (empty) refinement
// verify (empty) refinement
clk
=
clock
();
clk
=
clock
();
Rnm_ManVerifyUsingTerSim
(
p
->
pGia
,
p
->
pCex
,
p
->
vMap
,
p
->
vObjs
,
vSelected
);
Rnm_ManVerifyUsingTerSim
(
p
->
pGia
,
p
->
pCex
,
p
->
vMap
,
p
->
vObjs
,
vSelected
);
...
...
src/aig/gia/giaAbsVta.c
View file @
1917321c
...
@@ -161,6 +161,7 @@ void Gia_VtaSetDefaultParams( Gia_ParVta_t * p )
...
@@ -161,6 +161,7 @@ void Gia_VtaSetDefaultParams( Gia_ParVta_t * p )
p
->
nRatioMax
=
30
;
// restart when more than this % of object is abstracted
p
->
nRatioMax
=
30
;
// restart when more than this % of object is abstracted
p
->
fUseTermVars
=
0
;
// use terminal variables
p
->
fUseTermVars
=
0
;
// use terminal variables
p
->
fUseRollback
=
0
;
// use rollback to the starting number of frames
p
->
fUseRollback
=
0
;
// use rollback to the starting number of frames
p
->
fPropFanout
=
1
;
// propagate fanouts during refinement
p
->
fVerbose
=
0
;
// verbose flag
p
->
fVerbose
=
0
;
// verbose flag
p
->
iFrame
=
-
1
;
// the number of frames covered
p
->
iFrame
=
-
1
;
// the number of frames covered
}
}
...
...
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