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
d8d82005
Commit
d8d82005
authored
Oct 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to LMS code.
parent
12dda470
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
14 deletions
+22
-14
src/base/abci/abcIf.c
+6
-3
src/map/if/if.h
+4
-1
src/map/if/ifMap.c
+12
-10
No files found.
src/base/abci/abcIf.c
View file @
d8d82005
...
...
@@ -494,10 +494,13 @@ Abc_Obj_t * Abc_NodeFromIf_rec( Abc_Ntk_t * pNtkNew, If_Man_t * pIfMan, If_Obj_t
{
extern
Hop_Obj_t
*
Abc_RecToHop
(
Hop_Man_t
*
pMan
,
If_Man_t
*
pIfMan
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pIfObj
);
extern
Hop_Obj_t
*
Abc_RecToHop2
(
Hop_Man_t
*
pMan
,
If_Man_t
*
pIfMan
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pIfObj
);
if
(
Abc_NtkRecIsRunning
())
pNodeNew
->
pData
=
Abc_RecToHop
(
(
Hop_Man_t
*
)
pNtkNew
->
pManFunc
,
pIfMan
,
pCutBest
,
pIfObj
);
else
extern
Hop_Obj_t
*
Abc_RecToHop3
(
Hop_Man_t
*
pMan
,
If_Man_t
*
pIfMan
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pIfObj
);
if
(
Abc_NtkRecIsRunning3
())
pNodeNew
->
pData
=
Abc_RecToHop3
(
(
Hop_Man_t
*
)
pNtkNew
->
pManFunc
,
pIfMan
,
pCutBest
,
pIfObj
);
else
if
(
Abc_NtkRecIsRunning2
())
pNodeNew
->
pData
=
Abc_RecToHop2
(
(
Hop_Man_t
*
)
pNtkNew
->
pManFunc
,
pIfMan
,
pCutBest
,
pIfObj
);
else
pNodeNew
->
pData
=
Abc_RecToHop
(
(
Hop_Man_t
*
)
pNtkNew
->
pManFunc
,
pIfMan
,
pCutBest
,
pIfObj
);
}
else
...
...
src/map/if/if.h
View file @
d8d82005
...
...
@@ -531,11 +531,14 @@ extern void If_CutTraverse( If_Man_t * p, If_Obj_t * pRoot, If_Cut_t
extern
void
If_ObjPrint
(
If_Obj_t
*
pObj
);
/*=== abcRec.c ============================================================*/
/*=== abcRec2.c ============================================================*/
/*=== abcRec3.c ============================================================*/
extern
int
If_CutDelayRecCost
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost2
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
/*=== abcRec2.c ============================================================*/
extern
int
If_CutDelayRecCost2
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
ABC_DLL
int
Abc_NtkRecIsRunning
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning2
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning3
();
// othe packages
extern
int
Bat_ManCellFuncLookup
(
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
);
...
...
src/map/if/ifMap.c
View file @
d8d82005
...
...
@@ -158,12 +158,13 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
/// pCut->Delay = If_CutDelayLutStruct( p, pCut, p->pPars->pLutStruct, p->pPars->WireDelay );
if
(
p
->
pPars
->
fUserRecLib
)
{
if
((
Abc_NtkRecIsRunning2
()
&&
Abc_NtkRecIsRunning
())
||
(
!
Abc_NtkRecIsRunning2
()
&&
!
Abc_NtkRecIsRunning
()))
assert
(
0
);
else
if
(
Abc_NtkRecIsRunning
())
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
,
pObj
);
assert
(
Abc_NtkRecIsRunning
()
+
Abc_NtkRecIsRunning2
()
+
Abc_NtkRecIsRunning3
()
==
1
);
if
(
Abc_NtkRecIsRunning3
()
)
pCut
->
Delay
=
If_CutDelayRecCost3
(
p
,
pCut
,
pObj
);
else
if
(
Abc_NtkRecIsRunning2
()
)
pCut
->
Delay
=
If_CutDelayRecCost2
(
p
,
pCut
,
pObj
);
else
pCut
->
Delay
=
If_CutDelayRecCost
2
(
p
,
pCut
,
pObj
);
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
,
pObj
);
}
else
if
(
p
->
pPars
->
fDelayOpt
)
pCut
->
Delay
=
If_CutDelaySopCost
(
p
,
pCut
);
...
...
@@ -239,12 +240,13 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
/// pCut->Delay = If_CutDelayLutStruct( p, pCut, p->pPars->pLutStruct, p->pPars->WireDelay );
if
(
p
->
pPars
->
fUserRecLib
)
{
if
((
Abc_NtkRecIsRunning2
()
&&
Abc_NtkRecIsRunning
())
||
(
!
Abc_NtkRecIsRunning2
()
&&
!
Abc_NtkRecIsRunning
()))
assert
(
0
);
else
if
(
Abc_NtkRecIsRunning
())
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
,
pObj
);
else
assert
(
Abc_NtkRecIsRunning
()
+
Abc_NtkRecIsRunning2
()
+
Abc_NtkRecIsRunning3
()
==
1
);
if
(
Abc_NtkRecIsRunning3
()
)
pCut
->
Delay
=
If_CutDelayRecCost3
(
p
,
pCut
,
pObj
);
else
if
(
Abc_NtkRecIsRunning2
()
)
pCut
->
Delay
=
If_CutDelayRecCost2
(
p
,
pCut
,
pObj
);
else
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
,
pObj
);
}
else
if
(
p
->
pPars
->
fDelayOpt
)
pCut
->
Delay
=
If_CutDelaySopCost
(
p
,
pCut
);
...
...
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