mirror of https://github.com/YosysHQ/abc.git
67 lines
1.8 KiB
C
67 lines
1.8 KiB
C
/**CFile****************************************************************
|
|
|
|
FileName [cbaReadSmt.c]
|
|
|
|
SystemName [ABC: Logic synthesis and verification system.]
|
|
|
|
PackageName [Hierarchical word-level netlist.]
|
|
|
|
Synopsis [BLIF parser.]
|
|
|
|
Author [Alan Mishchenko]
|
|
|
|
Affiliation [UC Berkeley]
|
|
|
|
Date [Ver. 1.0. Started - November 29, 2014.]
|
|
|
|
Revision [$Id: cbaReadSmt.c,v 1.00 2014/11/29 00:00:00 alanmi Exp $]
|
|
|
|
***********************************************************************/
|
|
|
|
#include "cba.h"
|
|
#include "cbaPrs.h"
|
|
|
|
ABC_NAMESPACE_IMPL_START
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// DECLARATIONS ///
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// FUNCTION DEFINITIONS ///
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
/**Function*************************************************************
|
|
|
|
Synopsis []
|
|
|
|
Description []
|
|
|
|
SideEffects []
|
|
|
|
SeeAlso []
|
|
|
|
***********************************************************************/
|
|
Vec_Ptr_t * Prs_ManReadSmt( char * pFileName )
|
|
{
|
|
Vec_Ptr_t * vPrs = NULL;
|
|
Prs_Man_t * p = Prs_ManAlloc( pFileName );
|
|
if ( p == NULL )
|
|
return NULL;
|
|
// Prs_ManReadLines( p );
|
|
if ( Prs_ManErrorPrint(p) )
|
|
ABC_SWAP( Vec_Ptr_t *, vPrs, p->vNtks );
|
|
Prs_ManFree( p );
|
|
return vPrs;
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// END OF FILE ///
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
ABC_NAMESPACE_IMPL_END
|
|
|