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
55e7dd16
Commit
55e7dd16
authored
Apr 24, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suggested fixes to compile with 'gcc -x c++'.
parent
9e20b301
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
8 deletions
+10
-8
src/base/cba/cba.h
+1
-0
src/base/cba/cbaBlast.c
+1
-1
src/base/cba/cbaPrsBuild.c
+1
-1
src/base/cba/cbaPtr.c
+3
-2
src/base/cba/cbaWriteBlif.c
+1
-1
src/base/cba/cbaWriteVer.c
+1
-1
src/base/wlc/wlcReadSmt.c
+2
-2
No files found.
src/base/cba/cba.h
View file @
55e7dd16
...
@@ -982,6 +982,7 @@ extern void Cba_ManDeriveFanout( Cba_Man_t * p );
...
@@ -982,6 +982,7 @@ extern void Cba_ManDeriveFanout( Cba_Man_t * p );
//extern void Cba_ManAssignInternNames( Cba_Man_t * p );
//extern void Cba_ManAssignInternNames( Cba_Man_t * p );
extern
void
Cba_ManAssignInternWordNames
(
Cba_Man_t
*
p
);
extern
void
Cba_ManAssignInternWordNames
(
Cba_Man_t
*
p
);
extern
Cba_Man_t
*
Cba_ManCollapse
(
Cba_Man_t
*
p
);
extern
Cba_Man_t
*
Cba_ManCollapse
(
Cba_Man_t
*
p
);
extern
void
Cba_ManSetupTypes
(
char
**
pNames
,
char
**
pSymbs
);
/*=== cbaPtr.c ===============================================================*/
/*=== cbaPtr.c ===============================================================*/
extern
void
Cba_PtrFree
(
Vec_Ptr_t
*
vDes
);
extern
void
Cba_PtrFree
(
Vec_Ptr_t
*
vDes
);
extern
int
Cba_PtrMemory
(
Vec_Ptr_t
*
vDes
);
extern
int
Cba_PtrMemory
(
Vec_Ptr_t
*
vDes
);
...
...
src/base/cba/cbaBlast.c
View file @
55e7dd16
...
@@ -509,7 +509,7 @@ void Cba_NtkPrepareLibrary( Cba_Man_t * p, Mio_Library_t * pLib )
...
@@ -509,7 +509,7 @@ void Cba_NtkPrepareLibrary( Cba_Man_t * p, Mio_Library_t * pLib )
int
Cba_NtkBuildLibrary
(
Cba_Man_t
*
p
)
int
Cba_NtkBuildLibrary
(
Cba_Man_t
*
p
)
{
{
int
RetValue
=
1
;
int
RetValue
=
1
;
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
if
(
pLib
==
NULL
)
if
(
pLib
==
NULL
)
printf
(
"The standard cell library is not available.
\n
"
),
RetValue
=
0
;
printf
(
"The standard cell library is not available.
\n
"
),
RetValue
=
0
;
else
else
...
...
src/base/cba/cbaPrsBuild.c
View file @
55e7dd16
...
@@ -47,7 +47,7 @@ ABC_NAMESPACE_IMPL_START
...
@@ -47,7 +47,7 @@ ABC_NAMESPACE_IMPL_START
int
Prs_ManIsMapped
(
Prs_Ntk_t
*
pNtk
)
int
Prs_ManIsMapped
(
Prs_Ntk_t
*
pNtk
)
{
{
Vec_Int_t
*
vSigs
;
int
iBox
;
Vec_Int_t
*
vSigs
;
int
iBox
;
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
if
(
pLib
==
NULL
)
if
(
pLib
==
NULL
)
return
0
;
return
0
;
Prs_NtkForEachBox
(
pNtk
,
vSigs
,
iBox
)
Prs_NtkForEachBox
(
pNtk
,
vSigs
,
iBox
)
...
...
src/base/cba/cbaPtr.c
View file @
55e7dd16
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "base/abc/abc.h"
#include "base/abc/abc.h"
#include "base/main/mainInt.h"
#include "base/main/mainInt.h"
#include "map/mio/mio.h"
#include "map/mio/mio.h"
#include "cba.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -321,7 +322,7 @@ Vec_Ptr_t * Cba_ManCollectGateNamesByTruth( Mio_Library_t * pLib )
...
@@ -321,7 +322,7 @@ Vec_Ptr_t * Cba_ManCollectGateNamesByTruth( Mio_Library_t * pLib )
void
Cba_PtrUpdateBox
(
Vec_Ptr_t
*
vBox
,
Vec_Ptr_t
*
vGatesNames
)
void
Cba_PtrUpdateBox
(
Vec_Ptr_t
*
vBox
,
Vec_Ptr_t
*
vGatesNames
)
{
{
Mio_Gate_t
*
pGate
;
Mio_Pin_t
*
pPin
;
int
i
=
1
;
Mio_Gate_t
*
pGate
;
Mio_Pin_t
*
pPin
;
int
i
=
1
;
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
// update gate name
// update gate name
char
*
pNameNew
,
*
pName
=
(
char
*
)
Vec_PtrEntry
(
vBox
,
0
);
char
*
pNameNew
,
*
pName
=
(
char
*
)
Vec_PtrEntry
(
vBox
,
0
);
if
(
!
strcmp
(
pName
,
"Const0T"
)
)
if
(
!
strcmp
(
pName
,
"Const0T"
)
)
...
@@ -419,7 +420,7 @@ Vec_Ptr_t * Cba_PtrTransformTest( Vec_Ptr_t * vDes )
...
@@ -419,7 +420,7 @@ Vec_Ptr_t * Cba_PtrTransformTest( Vec_Ptr_t * vDes )
printf
(
"ABC framework is not started.
\n
"
);
printf
(
"ABC framework is not started.
\n
"
);
return
NULL
;
return
NULL
;
}
}
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
if
(
pLib
==
NULL
)
if
(
pLib
==
NULL
)
{
{
printf
(
"Standard cell library is not entered.
\n
"
);
printf
(
"Standard cell library is not entered.
\n
"
);
...
...
src/base/cba/cbaWriteBlif.c
View file @
55e7dd16
...
@@ -169,7 +169,7 @@ void Cba_ManWriteBlifLines( FILE * pFile, Cba_Ntk_t * p )
...
@@ -169,7 +169,7 @@ void Cba_ManWriteBlifLines( FILE * pFile, Cba_Ntk_t * p )
else
if
(
Cba_ObjIsGate
(
p
,
i
)
)
else
if
(
Cba_ObjIsGate
(
p
,
i
)
)
{
{
char
*
pGateName
=
Abc_NamStr
(
p
->
pDesign
->
pMods
,
Cba_BoxNtkId
(
p
,
i
));
char
*
pGateName
=
Abc_NamStr
(
p
->
pDesign
->
pMods
,
Cba_BoxNtkId
(
p
,
i
));
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
Mio_Gate_t
*
pGate
=
Mio_LibraryReadGateByName
(
pLib
,
pGateName
,
NULL
);
Mio_Gate_t
*
pGate
=
Mio_LibraryReadGateByName
(
pLib
,
pGateName
,
NULL
);
fprintf
(
pFile
,
".gate %s"
,
pGateName
);
fprintf
(
pFile
,
".gate %s"
,
pGateName
);
Cba_BoxForEachBi
(
p
,
i
,
iTerm
,
k
)
Cba_BoxForEachBi
(
p
,
i
,
iTerm
,
k
)
...
...
src/base/cba/cbaWriteVer.c
View file @
55e7dd16
...
@@ -395,7 +395,7 @@ static inline void Cba_ManWriteGate( Cba_Ntk_t * p, int iObj )
...
@@ -395,7 +395,7 @@ static inline void Cba_ManWriteGate( Cba_Ntk_t * p, int iObj )
{
{
Vec_Str_t
*
vStr
=
p
->
pDesign
->
vOut
;
int
iTerm
,
k
;
Vec_Str_t
*
vStr
=
p
->
pDesign
->
vOut
;
int
iTerm
,
k
;
char
*
pGateName
=
Abc_NamStr
(
p
->
pDesign
->
pMods
,
Cba_BoxNtkId
(
p
,
iObj
));
char
*
pGateName
=
Abc_NamStr
(
p
->
pDesign
->
pMods
,
Cba_BoxNtkId
(
p
,
iObj
));
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
(
Abc_FrameGetGlobalFrame
()
);
Mio_Library_t
*
pLib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
Mio_Gate_t
*
pGate
=
Mio_LibraryReadGateByName
(
pLib
,
pGateName
,
NULL
);
Mio_Gate_t
*
pGate
=
Mio_LibraryReadGateByName
(
pLib
,
pGateName
,
NULL
);
Vec_StrPrintStr
(
vStr
,
" "
);
Vec_StrPrintStr
(
vStr
,
" "
);
Vec_StrPrintStr
(
vStr
,
pGateName
);
Vec_StrPrintStr
(
vStr
,
pGateName
);
...
...
src/base/wlc/wlcReadSmt.c
View file @
55e7dd16
...
@@ -83,7 +83,7 @@ static Smt_Pair_t s_Types[SMT_PRS_END] =
...
@@ -83,7 +83,7 @@ static Smt_Pair_t s_Types[SMT_PRS_END] =
};
};
static
inline
char
*
Smt_GetTypeName
(
Smt_LineType_t
Type
)
static
inline
char
*
Smt_GetTypeName
(
Smt_LineType_t
Type
)
{
{
Smt_LineType_
t
i
;
in
t
i
;
for
(
i
=
1
;
i
<
SMT_PRS_END
;
i
++
)
for
(
i
=
1
;
i
<
SMT_PRS_END
;
i
++
)
if
(
s_Types
[
i
].
Type
==
Type
)
if
(
s_Types
[
i
].
Type
==
Type
)
return
s_Types
[
i
].
pName
;
return
s_Types
[
i
].
pName
;
...
@@ -91,7 +91,7 @@ static inline char * Smt_GetTypeName( Smt_LineType_t Type )
...
@@ -91,7 +91,7 @@ static inline char * Smt_GetTypeName( Smt_LineType_t Type )
}
}
static
inline
void
Smt_AddTypes
(
Abc_Nam_t
*
p
)
static
inline
void
Smt_AddTypes
(
Abc_Nam_t
*
p
)
{
{
Smt_LineType_
t
Type
;
in
t
Type
;
for
(
Type
=
1
;
Type
<
SMT_PRS_END
;
Type
++
)
for
(
Type
=
1
;
Type
<
SMT_PRS_END
;
Type
++
)
Abc_NamStrFindOrAdd
(
p
,
Smt_GetTypeName
(
Type
),
NULL
);
Abc_NamStrFindOrAdd
(
p
,
Smt_GetTypeName
(
Type
),
NULL
);
assert
(
Abc_NamObjNumMax
(
p
)
==
SMT_PRS_END
);
assert
(
Abc_NamObjNumMax
(
p
)
==
SMT_PRS_END
);
...
...
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