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
424b86a5
Commit
424b86a5
authored
Apr 05, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance bug fix in SOP balancing.
parent
6ab0d68d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
30 deletions
+2
-30
src/map/if/ifMap.c
+1
-4
src/map/if/ifTime.c
+1
-26
No files found.
src/map/if/ifMap.c
View file @
424b86a5
...
...
@@ -392,10 +392,7 @@ void If_ObjPerformMappingChoice( If_Man_t * p, If_Obj_t * pObj, int Mode, int fP
if
(
Mode
&&
pCut
->
Delay
>
pObj
->
Required
+
p
->
fEpsilon
)
continue
;
// set the phase attribute
assert
(
pCut
->
fCompl
==
0
);
pCut
->
fCompl
^=
(
pObj
->
fPhase
^
pTemp
->
fPhase
);
// why ^= ?
if
(
p
->
pPars
->
fDelayOpt
&&
pCut
->
fCompl
)
continue
;
pCut
->
fCompl
=
pObj
->
fPhase
^
pTemp
->
fPhase
;
// compute area of the cut (this area may depend on the application specific cost)
pCut
->
Area
=
(
Mode
==
2
)
?
If_CutAreaDerefed
(
p
,
pCut
)
:
If_CutAreaFlow
(
p
,
pCut
);
if
(
p
->
pPars
->
fEdge
)
...
...
src/map/if/ifTime.c
View file @
424b86a5
...
...
@@ -267,33 +267,8 @@ Vec_Wrd_t * If_CutDelaySopArray( If_Man_t * p, If_Cut_t * pCut )
assert
(
RetValue
==
0
||
RetValue
==
1
);
clk
=
Abc_Clock
();
vAnds
=
If_CutDelaySopAnds
(
p
,
pCut
,
p
->
vCover
,
RetValue
^
pCut
->
fCompl
);
vAnds
=
If_CutDelaySopAnds
(
p
,
pCut
,
p
->
vCover
,
RetValue
);
s_timeOld
+=
Abc_Clock
()
-
clk
;
/*
if ( pCut->nLeaves <= 5 )
{
if ( *If_CutTruth(pCut) != (unsigned)If_AndVerifyArray(vAnds, pCut->nLeaves) )
{
unsigned Truth0 = *If_CutTruth(pCut);
unsigned Truth1 = (unsigned)If_AndVerifyArray(vAnds, pCut->nLeaves);
printf( "\n" );
Extra_PrintBinary( stdout, &Truth0, 32 ); printf( "\n" );
Extra_PrintBinary( stdout, &Truth1, 32 ); printf( "\n" );
printf( "Verification failed for %d vars.\n", pCut->nLeaves );
}
// else
// printf( "Verification passed for %d vars.\n", pCut->nLeaves );
}
else if ( pCut->nLeaves == 6 )
{
if ( *((word *)If_CutTruth(pCut)) != If_AndVerifyArray(vAnds, pCut->nLeaves) )
printf( "Verification failed for %d vars.\n", pCut->nLeaves );
// else
// printf( "Verification passed for %d vars.\n", pCut->nLeaves );
}
*/
return
vAnds
;
}
...
...
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