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
f6b9cc01
Commit
f6b9cc01
authored
Feb 28, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding parameters and improvements to %blast.
parent
7e9f3f02
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
1 deletions
+20
-1
src/base/main/abcapis.h
+1
-0
src/base/main/main.h
+1
-0
src/base/main/mainFrame.c
+4
-0
src/base/main/mainInt.h
+1
-0
src/base/wlc/wlcBlast.c
+0
-1
src/base/wlc/wlcUif.c
+13
-0
No files found.
src/base/main/abcapis.h
View file @
f6b9cc01
...
...
@@ -92,6 +92,7 @@ extern ABC_DLL void Abc_NtkSetAndGateDelay( Abc_Frame_t * pAbc, float Delay );
extern
ABC_DLL
int
*
Abc_NtkOutputMiniMapping
(
Abc_Frame_t
*
pAbc
);
extern
ABC_DLL
void
Abc_NtkPrintMiniMapping
(
int
*
pArray
);
extern
ABC_DLL
int
*
Abc_FrameReadArrayMapping
(
Abc_Frame_t
*
pAbc
);
extern
ABC_DLL
int
*
Abc_FrameReadBoxes
(
Abc_Frame_t
*
pAbc
);
// procedures to access verifization status and a counter-example
extern
ABC_DLL
int
Abc_FrameReadProbStatus
(
Abc_Frame_t
*
pAbc
);
...
...
src/base/main/main.h
View file @
f6b9cc01
...
...
@@ -161,6 +161,7 @@ extern ABC_DLL void Abc_FrameSetDrivingCell( char * pName );
extern
ABC_DLL
void
Abc_FrameSetMaxLoad
(
float
Load
);
extern
ABC_DLL
void
Abc_FrameSetArrayMapping
(
int
*
p
);
extern
ABC_DLL
void
Abc_FrameSetBoxes
(
int
*
p
);
ABC_NAMESPACE_HEADER_END
...
...
src/base/main/mainFrame.c
View file @
f6b9cc01
...
...
@@ -111,6 +111,9 @@ void Abc_FrameSetMaxLoad( float Load ) { s_GlobalFrame->Ma
int
*
Abc_FrameReadArrayMapping
(
Abc_Frame_t
*
pAbc
)
{
return
pAbc
->
pArray
;
}
void
Abc_FrameSetArrayMapping
(
int
*
p
)
{
ABC_FREE
(
s_GlobalFrame
->
pArray
);
s_GlobalFrame
->
pArray
=
p
;
}
int
*
Abc_FrameReadBoxes
(
Abc_Frame_t
*
pAbc
)
{
return
pAbc
->
pBoxes
;
}
void
Abc_FrameSetBoxes
(
int
*
p
)
{
ABC_FREE
(
s_GlobalFrame
->
pBoxes
);
s_GlobalFrame
->
pBoxes
=
p
;
}
/**Function*************************************************************
Synopsis [Returns 1 if the flag is enabled without value or with value 1.]
...
...
@@ -236,6 +239,7 @@ void Abc_FrameDeallocate( Abc_Frame_t * p )
Vec_IntFreeP
(
&
p
->
vCopyMiniAig
);
Vec_IntFreeP
(
&
p
->
vCopyMiniLut
);
ABC_FREE
(
p
->
pArray
);
ABC_FREE
(
p
->
pBoxes
);
ABC_FREE
(
p
);
s_GlobalFrame
=
NULL
;
...
...
src/base/main/mainInt.h
View file @
f6b9cc01
...
...
@@ -149,6 +149,7 @@ struct Abc_Frame_t_
Vec_Int_t
*
vCopyMiniAig
;
Vec_Int_t
*
vCopyMiniLut
;
int
*
pArray
;
int
*
pBoxes
;
Abc_Frame_Callback_BmcFrameDone_Func
pFuncOnFrameDone
;
};
...
...
src/base/wlc/wlcBlast.c
View file @
f6b9cc01
...
...
@@ -1082,7 +1082,6 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
If_LibBoxAdd
(
pBoxLib
,
pBox
);
for
(
k
=
0
;
k
<
pBox
->
nPis
*
pBox
->
nPos
;
k
++
)
pBox
->
pDelays
[
k
]
=
1
;
printf
(
"adding box %s
\n
"
,
Buffer
);
}
else
if
(
Wlc_ObjIsCi
(
pObj
)
)
{
...
...
src/base/wlc/wlcUif.c
View file @
f6b9cc01
...
...
@@ -41,6 +41,16 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
void
Wlc_NtkCollectBoxes
(
Wlc_Ntk_t
*
p
,
Vec_Int_t
*
vBoxIds
)
{
int
i
,
iObj
;
Vec_Int_t
*
vBoxes
=
Vec_IntAlloc
(
Vec_IntSize
(
vBoxIds
)
+
1
);
Vec_IntPush
(
vBoxes
,
Vec_IntSize
(
vBoxIds
)
);
Vec_IntForEachEntry
(
vBoxIds
,
iObj
,
i
)
Vec_IntPush
(
vBoxes
,
Wlc_ObjNameId
(
p
,
iObj
)
);
Abc_FrameSetBoxes
(
Vec_IntReleaseArray
(
vBoxes
)
);
Vec_IntFree
(
vBoxes
);
}
Vec_Int_t
*
Wlc_NtkCollectAddMult
(
Wlc_Ntk_t
*
p
,
Wlc_BstPar_t
*
pPar
,
int
*
pCountA
,
int
*
pCountM
)
{
Vec_Int_t
*
vBoxIds
;
...
...
@@ -57,7 +67,10 @@ Vec_Int_t * Wlc_NtkCollectAddMult( Wlc_Ntk_t * p, Wlc_BstPar_t * pPar, int * pCo
Vec_IntPush
(
vBoxIds
,
i
),
(
*
pCountM
)
++
;
}
if
(
Vec_IntSize
(
vBoxIds
)
>
0
)
{
Wlc_NtkCollectBoxes
(
p
,
vBoxIds
);
return
vBoxIds
;
}
Vec_IntFree
(
vBoxIds
);
return
NULL
;
}
...
...
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