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
1eae17a8
Commit
1eae17a8
authored
Aug 14, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in &if -z.
parent
9b3dd44c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
src/aig/gia/giaIf.c
+16
-5
No files found.
src/aig/gia/giaIf.c
View file @
1eae17a8
...
...
@@ -235,7 +235,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p )
Abc_Print
(
1
,
"lev =%5d "
,
LevelMax
);
Abc_Print
(
1
,
"mem =%5.2f MB"
,
4
.
0
*
(
Gia_ManObjNum
(
p
)
+
2
*
nLuts
+
nFanins
)
/
(
1
<<
20
)
);
Abc_Print
(
1
,
"
\n
"
);
/*
{
char
*
pFileName
=
"stats_map.txt"
;
static
char
FileNameOld
[
1000
]
=
{
0
};
...
...
@@ -262,7 +262,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p )
}
fclose
(
pTable
);
}
*/
}
/**Function*************************************************************
...
...
@@ -704,9 +704,12 @@ int Gia_ManFromIfLogicNode( Gia_Man_t * pNew, int iObj, Vec_Int_t * vLeaves, Vec
// create mapping
iObjLit1
=
Gia_ManFromIfLogicCreateLut
(
pNew
,
pRes
,
vLeaves
,
vCover
,
vMapping
,
vMapping2
);
// write packing
Vec_IntPush
(
vPacking
,
1
);
Vec_IntPush
(
vPacking
,
Abc_Lit2Var
(
iObjLit1
)
);
Vec_IntAddToEntry
(
vPacking
,
0
,
1
);
if
(
!
Gia_ObjIsCi
(
Gia_ManObj
(
pNew
,
Abc_Lit2Var
(
iObjLit1
)))
)
{
Vec_IntPush
(
vPacking
,
1
);
Vec_IntPush
(
vPacking
,
Abc_Lit2Var
(
iObjLit1
)
);
Vec_IntAddToEntry
(
vPacking
,
0
,
1
);
}
return
iObjLit1
;
}
else
...
...
@@ -754,6 +757,14 @@ int Gia_ManFromIfLogicNode( Gia_Man_t * pNew, int iObj, Vec_Int_t * vLeaves, Vec
}
return
iObjLit1
;
}
// check for elementary truth table
for
(
i
=
0
;
i
<
nLeaves
;
i
++
)
{
if
(
Kit_TruthIsEqual
((
unsigned
*
)
pRes
,
(
unsigned
*
)
pTruths
[
i
],
nLeaves
)
)
return
Vec_IntEntry
(
vLeaves
,
i
);
if
(
Kit_TruthIsOpposite
((
unsigned
*
)
pRes
,
(
unsigned
*
)
pTruths
[
i
],
nLeaves
)
)
return
Abc_LitNot
(
Vec_IntEntry
(
vLeaves
,
i
));
}
// perform decomposition
if
(
Length
==
2
)
...
...
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