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
48b47300
Commit
48b47300
authored
Apr 07, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dumping abstracted model in &vta.
parent
c3d3ccf3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
2 deletions
+43
-2
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaAbsVta.c
+36
-0
src/base/abci/abc.c
+6
-2
No files found.
src/aig/gia/gia.h
View file @
48b47300
...
...
@@ -210,6 +210,7 @@ struct Gia_ParVta_t_
int
nRatioMin
;
// stop when less than this % of object is abstracted
int
fUseTermVars
;
// use terminal variables
int
fUseRollback
;
// use rollback to the starting number of frames
int
fDumpVabs
;
// dumps the abstracted model
int
fVerbose
;
// verbose flag
int
iFrame
;
// the number of frames covered
};
...
...
src/aig/gia/giaAbsVta.c
View file @
48b47300
...
...
@@ -1430,6 +1430,39 @@ void Gia_VtaSendCancel( Vta_Man_t * p, int fVerbose )
/**Function*************************************************************
Synopsis [Send abstracted model or send cancel.]
Description [Counter-example will be sent automatically when &vta terminates.]
SideEffects []
SeeAlso []
***********************************************************************/
void
Gia_VtaDumpAbsracted
(
Vta_Man_t
*
p
,
int
fVerbose
)
{
Gia_Man_t
*
pAbs
;
if
(
fVerbose
)
Abc_Print
(
1
,
"Dumping abstracted model into file
\"
vabs.aig
\"
...
\n
"
);
if
(
!
Abc_FrameIsBridgeMode
()
)
return
;
// create obj classes
Vec_IntFreeP
(
&
p
->
pGia
->
vObjClasses
);
p
->
pGia
->
vObjClasses
=
Gia_VtaFramesToAbs
(
(
Vec_Vec_t
*
)
p
->
vCores
);
// create gate classes
Vec_IntFreeP
(
&
p
->
pGia
->
vGateClasses
);
p
->
pGia
->
vGateClasses
=
Gia_VtaConvertToGla
(
p
->
pGia
,
p
->
pGia
->
vObjClasses
);
Vec_IntFreeP
(
&
p
->
pGia
->
vObjClasses
);
// create abstrated model
pAbs
=
Gia_ManDupAbsGates
(
p
->
pGia
,
p
->
pGia
->
vGateClasses
);
Vec_IntFreeP
(
&
p
->
pGia
->
vGateClasses
);
// send it out
Gia_WriteAiger
(
pAbs
,
"vabs.aig"
,
0
,
0
);
Gia_ManStop
(
pAbs
);
}
/**Function*************************************************************
Synopsis [Collect nodes/flops involved in different timeframes.]
Description []
...
...
@@ -1568,6 +1601,9 @@ int Gia_VtaPerformInt( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
// send new one
Gia_VtaSendAbsracted
(
p
,
pPars
->
fVerbose
);
fOneIsSent
=
1
;
// dump the model
if
(
p
->
pPars
->
fDumpVabs
)
Gia_VtaDumpAbsracted
(
p
,
pPars
->
fVerbose
);
}
// check if the number of objects is below limit
if
(
p
->
nSeenGla
>=
Gia_ManCandNum
(
pAig
)
*
(
100
-
pPars
->
nRatioMin
)
/
100
)
...
...
src/base/abci/abc.c
View file @
48b47300
...
...
@@ -27222,7 +27222,7 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Gia_VtaSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FSPCLTRtrvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FSPCLTRtr
d
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -27309,6 +27309,9 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'r'
:
pPars
->
fUseRollback
^=
1
;
break
;
case
'd'
:
pPars
->
fDumpVabs
^=
1
;
break
;
case
'v'
:
pPars
->
fVerbose
^=
1
;
break
;
...
...
@@ -27354,7 +27357,7 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &vta [-FSPCLTR num] [-trvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &vta [-FSPCLTR num] [-tr
d
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
refines abstracted object map with proof-based abstraction
\n
"
);
Abc_Print
(
-
2
,
"
\t
-F num : the max number of timeframes to unroll [default = %d]
\n
"
,
pPars
->
nFramesMax
);
Abc_Print
(
-
2
,
"
\t
-S num : the starting time frame (0=unused) [default = %d]
\n
"
,
pPars
->
nFramesStart
);
...
...
@@ -27365,6 +27368,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-R num : minimum percentage of abstracted objects (0<=num<=100) [default = %d]
\n
"
,
pPars
->
nRatioMin
);
Abc_Print
(
-
2
,
"
\t
-t : toggle using terminal variables [default = %s]
\n
"
,
pPars
->
fUseTermVars
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle using rollback after the starting frames [default = %s]
\n
"
,
pPars
->
fUseRollback
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle dumping abstracted model into file
\"
vabs.aig
\"
[default = %s]
\n
"
,
pPars
->
fDumpVabs
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
...
...
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