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
8889ccb1
Commit
8889ccb1
authored
May 26, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating LUT synthesis code.
parent
49078ffe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/aig/gia/giaMan.c
+1
-1
src/aig/gia/giaMinLut.c
+3
-5
src/bool/kit/kitGraph.c
+2
-1
src/map/if/ifTruth.c
+1
-0
No files found.
src/aig/gia/giaMan.c
View file @
8889ccb1
...
...
@@ -583,7 +583,7 @@ void Gia_ManPrintStats( Gia_Man_t * p, Gps_Par_t * pPars )
Gia_ManPrintMappingStats
(
p
,
pPars
?
pPars
->
pDumpFile
:
NULL
);
else
if
(
pPars
&&
pPars
->
pDumpFile
)
Gia_ManLogAigStats
(
p
,
pPars
->
pDumpFile
);
if
(
pPars
&&
pPars
->
fNpn
&&
Gia_ManHasMapping
(
p
)
&&
Gia_ManLutSizeMax
(
p
)
<=
4
)
if
(
pPars
&&
pPars
->
fNpn
&&
Gia_ManHasMapping
(
p
)
)
Gia_ManPrintNpnClasses
(
p
);
if
(
p
->
vPacking
)
Gia_ManPrintPackingStats
(
p
);
...
...
src/aig/gia/giaMinLut.c
View file @
8889ccb1
...
...
@@ -102,9 +102,7 @@ int Vec_WrdReadText2( char * pFileName, Vec_Wrd_t ** pvSimI )
printf
(
"Cannot open file
\"
%s
\"
for reading.
\n
"
,
pFileName
);
return
0
;
}
fgets
(
pLine
,
1000
,
pFile
);
nIns
=
strlen
(
pLine
)
-
1
;
if
(
nIns
<
1
)
if
(
!
fgets
(
pLine
,
1000
,
pFile
)
||
(
nIns
=
strlen
(
pLine
)
-
1
)
<
1
)
{
printf
(
"Cannot find the number of inputs in file
\"
%s
\"
.
\n
"
,
pFileName
);
fclose
(
pFile
);
...
...
@@ -464,7 +462,7 @@ Gia_Man_t * Gia_ManPerformLNetOpt( Gia_Man_t * p, char * pFileName, int nIns, in
word
*
pTruth1
=
ABC_CALLOC
(
word
,
Abc_Truth6WordNum
(
nIns
)
);
int
g
,
k
;
float
CareAve
=
0
;
if
(
vSimI
&&
fVerbose
)
{
int
nPats
=
64
*
Vec_WrdSize
(
vSimI
)
/
Gia_ManCiNum
(
p
);
//
int nPats = 64*Vec_WrdSize(vSimI)/Gia_ManCiNum(p);
printf
(
"Density of input patterns %8.4f.
\n
"
,
(
float
)
Abc_TtCountOnesVec
(
Vec_WrdArray
(
vSimI
),
Vec_WrdSize
(
vSimI
))
/
(
64
*
Vec_WrdSize
(
vSimI
))
);
printf
(
"Using patterns with count %d and higher as cares.
\n
"
,
Thresh
);
}
...
...
@@ -724,7 +722,7 @@ Abc_Ntk_t * Gia_ManPerformLNetMap( Gia_Man_t * p, int GroupSize, int fUseFixed,
#else
Gia_Man
_t
*
Gia_ManPerformLNetMap
(
Gia_Man_t
*
p
,
int
GroupSize
,
int
fUseFixed
,
int
fVerbose
)
Abc_Ntk
_t
*
Gia_ManPerformLNetMap
(
Gia_Man_t
*
p
,
int
GroupSize
,
int
fUseFixed
,
int
fVerbose
)
{
return
NULL
;
}
...
...
src/bool/kit/kitGraph.c
View file @
8889ccb1
...
...
@@ -19,6 +19,7 @@
***********************************************************************/
#include "kit.h"
#include "misc/extra/extra.h"
ABC_NAMESPACE_IMPL_START
...
...
@@ -385,7 +386,7 @@ Kit_Graph_t * Kit_TruthToGraph2( unsigned * pTruth0, unsigned * pTruth1, int nVa
Kit_Graph_t
*
pGraph
;
int
RetValue
;
// derive SOP
RetValue
=
Kit_TruthIsop2
(
pTruth0
,
pTruth1
,
nVars
,
vMemory
,
1
,
0
);
// tried 1 and found not useful in "renode"
RetValue
=
Kit_TruthIsop2
(
pTruth0
,
pTruth1
,
nVars
,
vMemory
,
0
,
0
);
// tried 1 and found not useful in "renode"
if
(
RetValue
==
-
1
)
return
NULL
;
if
(
Vec_IntSize
(
vMemory
)
>
(
1
<<
16
)
)
...
...
src/map/if/ifTruth.c
View file @
8889ccb1
...
...
@@ -20,6 +20,7 @@
#include "if.h"
#include "bool/kit/kit.h"
#include "misc/extra/extra.h"
ABC_NAMESPACE_IMPL_START
...
...
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