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
5ca86b65
Commit
5ca86b65
authored
Sep 03, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to Cba data-structure.
parent
6352d0b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
src/aig/gia/giaNf.c
+1
-1
src/base/cba/cbaBlast.c
+3
-5
src/base/cba/cbaNtk.c
+2
-2
No files found.
src/aig/gia/giaNf.c
View file @
5ca86b65
...
...
@@ -2053,7 +2053,7 @@ void Nf_ManSetDefaultPars( Jf_Par_t * pPars )
pPars
->
nCutNum
=
16
;
pPars
->
nProcNum
=
0
;
pPars
->
nRounds
=
5
;
pPars
->
nRoundsEla
=
1
;
pPars
->
nRoundsEla
=
0
;
pPars
->
nRelaxRatio
=
0
;
pPars
->
nCoarseLimit
=
3
;
pPars
->
nAreaTuner
=
1
;
...
...
src/base/cba/cbaBlast.c
View file @
5ca86b65
...
...
@@ -581,9 +581,8 @@ void Cba_BlastSqrt( Gia_Man_t * pNew, int * pNum, int nNum, Vec_Int_t * vTmp, Ve
***********************************************************************/
Gia_Man_t
*
Cba_NtkBlast
(
Cba_Ntk_t
*
p
,
int
fSeq
)
{
int
fVerbose
=
0
;
int
fUseOldMultiplierBlasting
=
0
;
Gia_Man_t
*
pTemp
,
*
pNew
,
*
pExtra
=
NULL
;
Gia_Man_t
*
pTemp
,
*
pNew
;
Vec_Int_t
*
vTemp0
,
*
vTemp1
,
*
vTemp2
,
*
vRes
;
Vec_Str_t
*
vInit
=
fSeq
?
Vec_StrAlloc
(
100
)
:
NULL
;
Vec_Int_t
*
vBits
=
&
p
->
vFonBits
;
...
...
@@ -855,7 +854,6 @@ Gia_Man_t * Cba_NtkBlast( Cba_Ntk_t * p, int fSeq )
int
nRangeMax
=
Abc_MaxInt
(
nRange
,
Abc_MaxInt
(
nRange0
,
nRange1
)
);
int
*
pArg0
=
Cba_VecLoadFanins
(
p
,
vRes
,
iFon0
,
pFans0
,
nRange0
,
nRangeMax
,
fSigned01
);
int
*
pArg1
=
Cba_VecLoadFanins
(
p
,
vTemp1
,
iFon1
,
pFans1
,
nRange1
,
nRangeMax
,
fSigned01
);
int
Carry
=
0
;
Cba_BlastSubtract
(
pNew
,
pArg0
,
pArg1
,
nRange
);
// result is in pFan0 (vRes)
Vec_IntShrink
(
vRes
,
nRange
);
}
...
...
@@ -938,7 +936,7 @@ Gia_Man_t * Cba_NtkBlast( Cba_Ntk_t * p, int fSeq )
{
nRange
=
Cba_FonRangeSize
(
p
,
iFon
);
pFans0
=
Cba_FonIsReal
(
iFon
)
?
Vec_IntEntryP
(
vBits
,
Cba_FonCopy
(
p
,
iFon
)
)
:
NULL
;
pFans0
=
Cba_VecLoadFanins
(
p
,
vTemp0
,
iFon
,
pFans0
,
nRange
0
,
nRange0
,
Cba_FonSigned
(
p
,
iFon
)
);
pFans0
=
Cba_VecLoadFanins
(
p
,
vTemp0
,
iFon
,
pFans0
,
nRange
,
nRange
,
Cba_FonSigned
(
p
,
iFon
)
);
for
(
b
=
0
;
b
<
nRange
;
b
++
)
Gia_ManAppendCo
(
pNew
,
pFans0
[
b
]
);
}
...
...
@@ -982,7 +980,7 @@ Gia_Man_t * Cba_NtkBlast( Cba_Ntk_t * p, int fSeq )
{
nRange
=
Cba_FonRangeSize
(
p
,
iFon
);
pFans0
=
Cba_FonIsReal
(
iFon
)
?
Vec_IntEntryP
(
vBits
,
Cba_FonCopy
(
p
,
iFon
)
)
:
NULL
;
pFans0
=
Cba_VecLoadFanins
(
p
,
vTemp0
,
iFon
,
pFans0
,
nRange
0
,
nRange0
,
Cba_FonSigned
(
p
,
iFon
)
);
pFans0
=
Cba_VecLoadFanins
(
p
,
vTemp0
,
iFon
,
pFans0
,
nRange
,
nRange
,
Cba_FonSigned
(
p
,
iFon
)
);
for
(
b
=
0
;
b
<
nRange
;
b
++
)
Gia_ManAppendCo
(
pNew
,
pFans0
[
b
]
);
}
...
...
src/base/cba/cbaNtk.c
View file @
5ca86b65
...
...
@@ -204,7 +204,7 @@ void Cba_NtkPrintDistrib( Cba_Ntk_t * p, int fVerbose )
{
printf
(
"Warning: %d objects of the design have non-zero-based ranges.
\n
"
,
nCountRange
);
printf
(
"In particular, object %6d with name
\"
%s
\"
has range %d=[%d:%d]
\n
"
,
iRnObj
,
Cba_FonName
(
p
,
Cba_ObjFon0
(
p
,
iRnObj
)),
iRnObj
,
Cba_FonName
Str
(
p
,
Cba_ObjFon0
(
p
,
iRnObj
)),
Cba_ObjRangeSize
(
p
,
iRnObj
),
Cba_ObjLeft
(
p
,
iRnObj
),
Cba_ObjRight
(
p
,
iRnObj
)
);
}
// print by occurrence
...
...
@@ -256,7 +256,7 @@ void Cba_NtkPrintNodes( Cba_Ntk_t * p, int Type )
printf
(
"%3d%s %s "
,
Cba_ObjRangeSize
(
p
,
Cba_ObjFinFon
(
p
,
i
,
0
)),
Cba_ObjSigned
(
p
,
iFon0
)
?
"s"
:
" "
,
pTypeNames
[
Type
]
);
printf
(
"%3d%s "
,
Cba_ObjRangeSize
(
p
,
Cba_ObjFinFon
(
p
,
i
,
1
)),
Cba_ObjSigned
(
p
,
iFon1
)
?
"s"
:
" "
);
printf
(
" : "
);
printf
(
"%-12s = "
,
Cba_ObjName
(
p
,
i
)
);
printf
(
"%-12s = "
,
Cba_ObjName
Str
(
p
,
i
)
);
printf
(
"%-12s %s "
,
Cba_FonIsConst
(
iFon0
)
?
Cba_NtkConst
(
p
,
Cba_FonConst
(
iFon0
))
:
Cba_FonNameStr
(
p
,
iFon0
),
pTypeNames
[
Type
]
);
printf
(
"%-12s "
,
Cba_FonIsConst
(
iFon1
)
?
Cba_NtkConst
(
p
,
Cba_FonConst
(
iFon1
))
:
Cba_FonNameStr
(
p
,
iFon1
)
);
printf
(
"
\n
"
);
...
...
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