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
9d89faa8
Commit
9d89faa8
authored
Sep 06, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in logic optimization.
parent
14dc389e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
src/aig/gia/giaMinLut.c
+18
-1
No files found.
src/aig/gia/giaMinLut.c
View file @
9d89faa8
...
@@ -597,7 +597,7 @@ void Gia_ManPermuteSupp( Gia_Man_t * p, int iOut, int nOuts, Vec_Int_t * vSupp )
...
@@ -597,7 +597,7 @@ void Gia_ManPermuteSupp( Gia_Man_t * p, int iOut, int nOuts, Vec_Int_t * vSupp )
for
(
i
=
0
;
i
<
nOuts
;
i
++
)
for
(
i
=
0
;
i
<
nOuts
;
i
++
)
Gia_ManPermuteSupp_rec
(
p
,
Gia_ObjFaninId0p
(
p
,
Gia_ManCo
(
p
,
iOut
+
i
)),
vLevels
,
vCounts
);
Gia_ManPermuteSupp_rec
(
p
,
Gia_ObjFaninId0p
(
p
,
Gia_ManCo
(
p
,
iOut
+
i
)),
vLevels
,
vCounts
);
Gia_ManForEachObjVec
(
vSupp
,
p
,
pObj
,
i
)
Gia_ManForEachObjVec
(
vSupp
,
p
,
pObj
,
i
)
pCost
[
i
]
=
10000
*
Vec_IntEntry
(
vLevels
,
Gia_ObjCioId
(
pObj
))
/
Vec_IntEntry
(
vCounts
,
Gia_ObjCioId
(
pObj
));
pCost
[
i
]
=
10000
*
Vec_IntEntry
(
vLevels
,
Gia_ObjCioId
(
pObj
))
/
Abc_MaxInt
(
1
,
Vec_IntEntry
(
vCounts
,
Gia_ObjCioId
(
pObj
)
));
Vec_IntFree
(
vCounts
);
Vec_IntFree
(
vCounts
);
Vec_IntFree
(
vLevels
);
Vec_IntFree
(
vLevels
);
Vec_IntSelectSortCost2
(
Vec_IntArray
(
vSupp
),
Vec_IntSize
(
vSupp
),
pCost
);
Vec_IntSelectSortCost2
(
Vec_IntArray
(
vSupp
),
Vec_IntSize
(
vSupp
),
pCost
);
...
@@ -777,6 +777,21 @@ Gia_Man_t * Gia_ManPerformLNetOptNew( Gia_Man_t * p, char * pFileName, int nIns,
...
@@ -777,6 +777,21 @@ Gia_Man_t * Gia_ManPerformLNetOptNew( Gia_Man_t * p, char * pFileName, int nIns,
Gia_ManHashStart
(
pNew
);
Gia_ManHashStart
(
pNew
);
for
(
g
=
0
;
g
<
Gia_ManCoNum
(
p
);
g
+=
nOuts
)
for
(
g
=
0
;
g
<
Gia_ManCoNum
(
p
);
g
+=
nOuts
)
{
{
for
(
k
=
0
;
k
<
nOuts
;
k
++
)
if
(
Gia_ObjIsAnd
(
Gia_ObjFanin0
(
Gia_ManCo
(
p
,
g
+
k
)))
)
break
;
if
(
k
==
nOuts
)
{
for
(
k
=
0
;
k
<
nOuts
;
k
++
)
{
Gia_Obj_t
*
pObj
=
Gia_ManCo
(
p
,
g
+
k
);
pObj
->
Value
=
Gia_ObjFanin0Copy
(
pObj
);
}
continue
;
}
else
{
Vec_Int_t
*
vSupp
=
Gia_ManCollectSuppNew
(
p
,
g
,
nOuts
);
Vec_Int_t
*
vSupp
=
Gia_ManCollectSuppNew
(
p
,
g
,
nOuts
);
int
Care
=
1
<<
Vec_IntSize
(
vSupp
),
Temp
=
fVerbose
?
printf
(
"Group %3d / %3d / %3d : Supp = %3d %s"
,
g
,
nOuts
,
Gia_ManCoNum
(
p
),
Vec_IntSize
(
vSupp
),
vSimI
?
""
:
"
\n
"
)
:
0
;
int
Care
=
1
<<
Vec_IntSize
(
vSupp
),
Temp
=
fVerbose
?
printf
(
"Group %3d / %3d / %3d : Supp = %3d %s"
,
g
,
nOuts
,
Gia_ManCoNum
(
p
),
Vec_IntSize
(
vSupp
),
vSimI
?
""
:
"
\n
"
)
:
0
;
word
*
pCare
=
vSimI
?
Gia_ManCountFraction
(
p
,
vSimI
,
vSupp
,
Thresh
,
fVerbose
,
&
Care
)
:
ABC_FALLOC
(
word
,
Abc_Truth6WordNum
(
Vec_IntSize
(
vSupp
))
);
word
*
pCare
=
vSimI
?
Gia_ManCountFraction
(
p
,
vSimI
,
vSupp
,
Thresh
,
fVerbose
,
&
Care
)
:
ABC_FALLOC
(
word
,
Abc_Truth6WordNum
(
Vec_IntSize
(
vSupp
))
);
...
@@ -808,6 +823,8 @@ Gia_Man_t * Gia_ManPerformLNetOptNew( Gia_Man_t * p, char * pFileName, int nIns,
...
@@ -808,6 +823,8 @@ Gia_Man_t * Gia_ManPerformLNetOptNew( Gia_Man_t * p, char * pFileName, int nIns,
Gia_ManStop
(
pMin
);
Gia_ManStop
(
pMin
);
Vec_IntFree
(
vSupp
);
Vec_IntFree
(
vSupp
);
Temp
=
0
;
Temp
=
0
;
}
}
}
CareAve
/=
Gia_ManCoNum
(
p
)
/
nOuts
;
CareAve
/=
Gia_ManCoNum
(
p
)
/
nOuts
;
Gia_ManHashStop
(
pNew
);
Gia_ManHashStop
(
pNew
);
...
...
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