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
4d56acfd
Commit
4d56acfd
authored
Nov 04, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several recent bug fixes.
parent
455e0bae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
src/aig/gia/giaIf.c
+2
-3
src/aig/ivy/ivyFraig.c
+1
-1
src/base/abci/abcIvy.c
+1
-0
src/base/wlc/wlcBlast.c
+6
-2
No files found.
src/aig/gia/giaIf.c
View file @
4d56acfd
...
@@ -2232,7 +2232,7 @@ Gia_Man_t * Gia_ManPerformMappingInt( Gia_Man_t * p, If_Par_t * pPars )
...
@@ -2232,7 +2232,7 @@ Gia_Man_t * Gia_ManPerformMappingInt( Gia_Man_t * p, If_Par_t * pPars )
{
{
extern
void
Gia_ManIffTest
(
Gia_Man_t
*
pGia
,
If_LibLut_t
*
pLib
,
int
fVerbose
);
extern
void
Gia_ManIffTest
(
Gia_Man_t
*
pGia
,
If_LibLut_t
*
pLib
,
int
fVerbose
);
Gia_Man_t
*
pNew
;
Gia_Man_t
*
pNew
;
If_Man_t
*
pIfMan
;
int
i
,
Entry
,
EntryF
;
If_Man_t
*
pIfMan
;
int
i
,
Id
,
Entry
,
EntryF
;
assert
(
pPars
->
pTimesArr
==
NULL
);
assert
(
pPars
->
pTimesArr
==
NULL
);
assert
(
pPars
->
pTimesReq
==
NULL
);
assert
(
pPars
->
pTimesReq
==
NULL
);
if
(
p
->
vCiArrs
)
if
(
p
->
vCiArrs
)
...
@@ -2244,11 +2244,10 @@ Gia_Man_t * Gia_ManPerformMappingInt( Gia_Man_t * p, If_Par_t * pPars )
...
@@ -2244,11 +2244,10 @@ Gia_Man_t * Gia_ManPerformMappingInt( Gia_Man_t * p, If_Par_t * pPars )
}
}
else
if
(
p
->
vInArrs
)
else
if
(
p
->
vInArrs
)
{
{
int
Id
,
And2Delay
=
p
->
And2Delay
?
p
->
And2Delay
:
1
;
assert
(
Vec_FltSize
(
p
->
vInArrs
)
==
Gia_ManCiNum
(
p
)
);
assert
(
Vec_FltSize
(
p
->
vInArrs
)
==
Gia_ManCiNum
(
p
)
);
pPars
->
pTimesArr
=
ABC_CALLOC
(
float
,
Gia_ManCiNum
(
p
));
pPars
->
pTimesArr
=
ABC_CALLOC
(
float
,
Gia_ManCiNum
(
p
));
Gia_ManForEachCiId
(
p
,
Id
,
i
)
Gia_ManForEachCiId
(
p
,
Id
,
i
)
pPars
->
pTimesArr
[
i
]
=
Vec_FltEntry
(
p
->
vInArrs
,
i
)
/
And2Delay
;
pPars
->
pTimesArr
[
i
]
=
Vec_FltEntry
(
p
->
vInArrs
,
i
);
}
}
if
(
p
->
vCoReqs
)
if
(
p
->
vCoReqs
)
{
{
...
...
src/aig/ivy/ivyFraig.c
View file @
4d56acfd
...
@@ -1354,7 +1354,7 @@ int Ivy_FraigCheckOutputSims( Ivy_FraigMan_t * p )
...
@@ -1354,7 +1354,7 @@ int Ivy_FraigCheckOutputSims( Ivy_FraigMan_t * p )
// pObj = Ivy_ManPo( p->pManAig, 0 );
// pObj = Ivy_ManPo( p->pManAig, 0 );
Ivy_ManForEachPo
(
p
->
pManAig
,
pObj
,
i
)
Ivy_ManForEachPo
(
p
->
pManAig
,
pObj
,
i
)
{
{
assert
(
Ivy_ObjFanin0
(
pObj
)
->
fPhase
==
(
unsigned
)
Ivy_ObjFaninC0
(
pObj
)
);
// Ivy_ObjFaninPhase(Ivy_ObjChild0(pObj)) == 0
//
assert( Ivy_ObjFanin0(pObj)->fPhase == (unsigned)Ivy_ObjFaninC0(pObj) ); // Ivy_ObjFaninPhase(Ivy_ObjChild0(pObj)) == 0
// complement simulation info
// complement simulation info
// if ( Ivy_ObjFanin0(pObj)->fPhase ^ Ivy_ObjFaninC0(pObj) ) // Ivy_ObjFaninPhase(Ivy_ObjChild0(pObj))
// if ( Ivy_ObjFanin0(pObj)->fPhase ^ Ivy_ObjFaninC0(pObj) ) // Ivy_ObjFaninPhase(Ivy_ObjChild0(pObj))
// Ivy_NodeComplementSim( p, Ivy_ObjFanin0(pObj) );
// Ivy_NodeComplementSim( p, Ivy_ObjFanin0(pObj) );
...
...
src/base/abci/abcIvy.c
View file @
4d56acfd
...
@@ -482,6 +482,7 @@ Abc_Ntk_t * Abc_NtkIvyFraig( Abc_Ntk_t * pNtk, int nConfLimit, int fDoSparse, in
...
@@ -482,6 +482,7 @@ Abc_Ntk_t * Abc_NtkIvyFraig( Abc_Ntk_t * pNtk, int nConfLimit, int fDoSparse, in
}
}
else
else
pNtkAig
=
Abc_NtkIvyAfter
(
pNtk
,
pMan
,
0
,
0
);
pNtkAig
=
Abc_NtkIvyAfter
(
pNtk
,
pMan
,
0
,
0
);
pNtkAig
->
pModel
=
(
int
*
)
pMan
->
pData
;
pMan
->
pData
=
NULL
;
Ivy_ManStop
(
pTemp
);
Ivy_ManStop
(
pTemp
);
Ivy_ManStop
(
pMan
);
Ivy_ManStop
(
pMan
);
return
pNtkAig
;
return
pNtkAig
;
...
...
src/base/wlc/wlcBlast.c
View file @
4d56acfd
...
@@ -2309,12 +2309,16 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
...
@@ -2309,12 +2309,16 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
char
*
pName
=
Wlc_ObjName
(
p
,
Wlc_ObjId
(
p
,
pObj
));
char
*
pName
=
Wlc_ObjName
(
p
,
Wlc_ObjId
(
p
,
pObj
));
nRange
=
Wlc_ObjRange
(
pObj
);
nRange
=
Wlc_ObjRange
(
pObj
);
if
(
fSkipBitRange
&&
nRange
==
1
)
if
(
fSkipBitRange
&&
nRange
==
1
)
Vec_PtrPush
(
pNew
->
vNamesOut
,
Abc_UtilStrsav
(
pName
)
);
{
char
Buffer
[
1000
];
sprintf
(
Buffer
,
"%s_fi"
,
pName
);
Vec_PtrPush
(
pNew
->
vNamesOut
,
Abc_UtilStrsav
(
Buffer
)
);
}
else
else
for
(
k
=
0
;
k
<
nRange
;
k
++
)
for
(
k
=
0
;
k
<
nRange
;
k
++
)
{
{
char
Buffer
[
1000
];
char
Buffer
[
1000
];
sprintf
(
Buffer
,
"%s[%d]"
,
pName
,
k
);
sprintf
(
Buffer
,
"%s
_fi
[%d]"
,
pName
,
k
);
Vec_PtrPush
(
pNew
->
vNamesOut
,
Abc_UtilStrsav
(
Buffer
)
);
Vec_PtrPush
(
pNew
->
vNamesOut
,
Abc_UtilStrsav
(
Buffer
)
);
}
}
}
}
...
...
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