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
96e44e31
Commit
96e44e31
authored
Jul 15, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other changes to enable new features in the mapper (bug fix).
parent
2dd6b978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
src/base/abci/abcIf.c
+48
-0
No files found.
src/base/abci/abcIf.c
View file @
96e44e31
...
@@ -40,6 +40,7 @@ extern void Abc_NtkBddReorder( Abc_Ntk_t * pNtk, int fVerbose );
...
@@ -40,6 +40,7 @@ extern void Abc_NtkBddReorder( Abc_Ntk_t * pNtk, int fVerbose );
extern
void
Abc_NtkBidecResyn
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
extern
void
Abc_NtkBidecResyn
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
extern
void
Abc_NtkCollectPoDrivers
(
If_Man_t
*
p
,
Abc_Ntk_t
*
pNtk
);
extern
void
Abc_NtkCollectPoDrivers
(
If_Man_t
*
p
,
Abc_Ntk_t
*
pNtk
);
extern
void
Abc_NtkCreateChoiceDrivers
(
If_Man_t
*
p
);
extern
void
Abc_NtkFreePoDrivers
(
If_Man_t
*
p
,
Abc_Ntk_t
*
pNtk
);
extern
void
Abc_NtkFreePoDrivers
(
If_Man_t
*
p
,
Abc_Ntk_t
*
pNtk
);
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
@@ -139,6 +140,7 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
...
@@ -139,6 +140,7 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
// perform FPGA mapping
// perform FPGA mapping
if
(
pPars
->
fEnableRealPos
)
if
(
pPars
->
fEnableRealPos
)
Abc_NtkCollectPoDrivers
(
pIfMan
,
pNtk
);
Abc_NtkCollectPoDrivers
(
pIfMan
,
pNtk
);
Abc_NtkCreateChoiceDrivers
(
pIfMan
);
if
(
!
If_ManPerformMapping
(
pIfMan
)
)
if
(
!
If_ManPerformMapping
(
pIfMan
)
)
{
{
Abc_NtkFreePoDrivers
(
pIfMan
,
pNtk
);
Abc_NtkFreePoDrivers
(
pIfMan
,
pNtk
);
...
@@ -762,6 +764,52 @@ void Abc_NtkCollectPoDrivers( If_Man_t * p, Abc_Ntk_t * pNtk )
...
@@ -762,6 +764,52 @@ void Abc_NtkCollectPoDrivers( If_Man_t * p, Abc_Ntk_t * pNtk )
// printf( "\n" );
// printf( "\n" );
}
}
/**Function*************************************************************
Synopsis [Frees PO drivers.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Abc_NtkCreateChoiceDrivers
(
If_Man_t
*
p
)
{
Vec_Int_t
*
vVec
;
If_Obj_t
*
pObj
,
*
pTemp
;
int
i
,
Counter
=
0
;
if
(
p
->
pDriverCuts
==
NULL
)
return
;
If_ManForEachNode
(
p
,
pObj
,
i
)
{
// skip non-choice nodes
if
(
pObj
->
pEquiv
==
NULL
||
pObj
->
nRefs
==
0
)
continue
;
// find driver cut
vVec
=
NULL
;
for
(
pTemp
=
pObj
;
pTemp
;
pTemp
=
pTemp
->
pEquiv
)
if
(
p
->
pDriverCuts
[
pTemp
->
Id
]
!=
NULL
)
{
vVec
=
Vec_IntDup
(
p
->
pDriverCuts
[
pTemp
->
Id
]
);
break
;
}
if
(
vVec
==
NULL
)
continue
;
// transfer driver cut to the root node
for
(
pTemp
=
pObj
;
pTemp
;
pTemp
=
pTemp
->
pEquiv
)
{
Vec_IntFreeP
(
&
p
->
pDriverCuts
[
pTemp
->
Id
]
);
p
->
pDriverCuts
[
pTemp
->
Id
]
=
Vec_IntDup
(
vVec
);
}
Vec_IntFree
(
vVec
);
Counter
++
;
}
// printf( "Choice driver cut updates = %d.\n", Counter );
}
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Frees PO drivers.]
Synopsis [Frees PO drivers.]
...
...
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