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
a2813847
Commit
a2813847
authored
Jan 07, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in delay-opt framework.
parent
3dd2325a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/opt/sbd/sbdCore.c
+4
-4
No files found.
src/opt/sbd/sbdCore.c
View file @
a2813847
...
@@ -1964,7 +1964,7 @@ void Sbd_ManDeriveMapping_rec( Sbd_Man_t * p, Gia_Man_t * pNew, int iObj )
...
@@ -1964,7 +1964,7 @@ void Sbd_ManDeriveMapping_rec( Sbd_Man_t * p, Gia_Man_t * pNew, int iObj )
void
Sbd_ManDeriveMapping
(
Sbd_Man_t
*
p
,
Gia_Man_t
*
pNew
)
void
Sbd_ManDeriveMapping
(
Sbd_Man_t
*
p
,
Gia_Man_t
*
pNew
)
{
{
Gia_Obj_t
*
pObj
,
*
pFan
;
Gia_Obj_t
*
pObj
,
*
pFan
;
int
i
,
k
,
iFan
,
iObjNew
,
*
pCut
,
*
pCutNew
;
int
i
,
k
,
iFan
,
iObjNew
,
iFanNew
,
*
pCut
,
*
pCutNew
;
Vec_Int_t
*
vLeaves
=
Vec_IntAlloc
(
100
);
Vec_Int_t
*
vLeaves
=
Vec_IntAlloc
(
100
);
// derive cuts for the new manager
// derive cuts for the new manager
p
->
vLutCuts2
=
Vec_IntStart
(
Gia_ManObjNum
(
pNew
)
*
(
p
->
pPars
->
nLutSize
+
1
)
);
p
->
vLutCuts2
=
Vec_IntStart
(
Gia_ManObjNum
(
pNew
)
*
(
p
->
pPars
->
nLutSize
+
1
)
);
...
@@ -1986,10 +1986,10 @@ void Sbd_ManDeriveMapping( Sbd_Man_t * p, Gia_Man_t * pNew )
...
@@ -1986,10 +1986,10 @@ void Sbd_ManDeriveMapping( Sbd_Man_t * p, Gia_Man_t * pNew )
pFan
=
Gia_ManObj
(
p
->
pGia
,
iFan
);
pFan
=
Gia_ManObj
(
p
->
pGia
,
iFan
);
if
(
pFan
->
Value
==
~
0
)
if
(
pFan
->
Value
==
~
0
)
continue
;
continue
;
i
Obj
New
=
Abc_Lit2Var
(
pFan
->
Value
);
i
Fan
New
=
Abc_Lit2Var
(
pFan
->
Value
);
if
(
i
ObjNew
==
0
)
if
(
i
FanNew
==
0
||
iFanNew
==
iObjNew
)
continue
;
continue
;
Vec_IntPushUniqueOrder
(
vLeaves
,
i
Obj
New
);
Vec_IntPushUniqueOrder
(
vLeaves
,
i
Fan
New
);
}
}
assert
(
Vec_IntSize
(
vLeaves
)
<=
p
->
pPars
->
nLutSize
);
assert
(
Vec_IntSize
(
vLeaves
)
<=
p
->
pPars
->
nLutSize
);
//assert( Vec_IntSize(vLeaves) > 1 );
//assert( Vec_IntSize(vLeaves) > 1 );
...
...
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