diff options
Diffstat (limited to 'src/map/fpga/fpgaUtils.c')
-rw-r--r-- | src/map/fpga/fpgaUtils.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/map/fpga/fpgaUtils.c b/src/map/fpga/fpgaUtils.c index a5b2cb32..fc67d52b 100644 --- a/src/map/fpga/fpgaUtils.c +++ b/src/map/fpga/fpgaUtils.c @@ -493,6 +493,32 @@ float Fpga_MappingSetRefsAndArea_rec( Fpga_Man_t * pMan, Fpga_Node_t * pNode ) /**Function************************************************************* + Synopsis [Collect the referenced nodes.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +Fpga_NodeVec_t * Fpga_MappingCollectRefed( Fpga_Man_t * pMan ) +{ + Fpga_NodeVec_t * vNodes; + int i; + vNodes = Fpga_NodeVecAlloc( 100 ); + for ( i = 0; i < pMan->vNodesAll->nSize; i++ ) + { + if ( Fpga_NodeIsVar(pMan->vNodesAll->pArray[i]) ) + continue; + if ( pMan->vNodesAll->pArray[i]->nRefs ) + Fpga_NodeVecPush( vNodes, pMan->vNodesAll->pArray[i] ); + } + return vNodes; +} + +/**Function************************************************************* + Synopsis [Computes the number of logic levels not counting PIs/POs.] Description [] |