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
501c3f0b
Commit
501c3f0b
authored
Sep 12, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
39c68e72
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
47 deletions
+47
-47
src/base/wlc/wlc.h
+1
-45
src/base/wlc/wlcBlast.c
+1
-1
src/base/wlc/wlcNtk.c
+44
-0
src/base/wlc/wlcWriteVer.c
+1
-1
No files found.
src/base/wlc/wlc.h
View file @
501c3f0b
...
@@ -81,51 +81,7 @@ typedef enum {
...
@@ -81,51 +81,7 @@ typedef enum {
WLC_OBJ_ARI_MODULUS
,
// 37: arithmetic modulus
WLC_OBJ_ARI_MODULUS
,
// 37: arithmetic modulus
WLC_OBJ_ARI_POWER
,
// 38: arithmetic power
WLC_OBJ_ARI_POWER
,
// 38: arithmetic power
WLC_OBJ_NUMBER
// 39: unused
WLC_OBJ_NUMBER
// 39: unused
}
Abc_ObjType_t
;
}
Wlc_ObjType_t
;
// object types
static
char
*
Wlc_Names
[
WLC_OBJ_NUMBER
+
1
]
=
{
NULL
,
// 00: unknown
"pi"
,
// 01: primary input
"po"
,
// 02: primary output
"bo"
,
// 03: box output
"bi"
,
// 04: box input
"ff"
,
// 05: flop
"const"
,
// 06: constant
"buf"
,
// 07: buffer
"mux"
,
// 08: multiplexer
">>"
,
// 09: shift right
">>>"
,
// 10: shift right (arithmetic)
"<<"
,
// 11: shift left
"<<<"
,
// 12: shift left (arithmetic)
"~"
,
// 13: bitwise NOT
"&"
,
// 14: bitwise AND
"|"
,
// 15: bitwise OR
"^"
,
// 16: bitwise XOR
"[:]"
,
// 17: bit selection
"{,}"
,
// 18: bit concatenation
"BitPad"
,
// 19: zero padding
"SgnExt"
,
// 20: sign extension
"!"
,
// 21: logic NOT
"&&"
,
// 22: logic AND
"||"
,
// 23: logic OR
"=="
,
// 24: compare equal
"!="
,
// 25: compare not equal
"<"
,
// 26: compare less
">"
,
// 27: compare more
"<="
,
// 28: compare less or equal
">="
,
// 29: compare more or equal
"&"
,
// 30: reduction AND
"|"
,
// 31: reduction OR
"^"
,
// 32: reduction XOR
"+"
,
// 33: arithmetic addition
"-"
,
// 34: arithmetic subtraction
"*"
,
// 35: arithmetic multiplier
"//"
,
// 36: arithmetic division
"%%"
,
// 37: arithmetic modulus
"**"
,
// 38: arithmetic power
NULL
// 39: unused
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
src/base/wlc/wlcBlast.c
View file @
501c3f0b
...
@@ -122,7 +122,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p )
...
@@ -122,7 +122,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p )
// create primary inputs
// create primary inputs
Wlc_NtkForEachObj
(
p
,
pObj
,
i
)
Wlc_NtkForEachObj
(
p
,
pObj
,
i
)
{
{
char
*
pName
=
Wlc_ObjName
(
p
,
i
);
//
char * pName = Wlc_ObjName(p, i);
nRange
=
Wlc_ObjRange
(
pObj
);
nRange
=
Wlc_ObjRange
(
pObj
);
nRange0
=
Wlc_ObjFaninNum
(
pObj
)
>
0
?
Wlc_ObjRange
(
Wlc_ObjFanin0
(
p
,
pObj
)
)
:
-
1
;
nRange0
=
Wlc_ObjFaninNum
(
pObj
)
>
0
?
Wlc_ObjRange
(
Wlc_ObjFanin0
(
p
,
pObj
)
)
:
-
1
;
nRange1
=
Wlc_ObjFaninNum
(
pObj
)
>
1
?
Wlc_ObjRange
(
Wlc_ObjFanin1
(
p
,
pObj
)
)
:
-
1
;
nRange1
=
Wlc_ObjFaninNum
(
pObj
)
>
1
?
Wlc_ObjRange
(
Wlc_ObjFanin1
(
p
,
pObj
)
)
:
-
1
;
...
...
src/base/wlc/wlcNtk.c
View file @
501c3f0b
...
@@ -27,6 +27,50 @@ ABC_NAMESPACE_IMPL_START
...
@@ -27,6 +27,50 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
// object types
static
char
*
Wlc_Names
[
WLC_OBJ_NUMBER
+
1
]
=
{
NULL
,
// 00: unknown
"pi"
,
// 01: primary input
"po"
,
// 02: primary output
"bo"
,
// 03: box output
"bi"
,
// 04: box input
"ff"
,
// 05: flop
"const"
,
// 06: constant
"buf"
,
// 07: buffer
"mux"
,
// 08: multiplexer
">>"
,
// 09: shift right
">>>"
,
// 10: shift right (arithmetic)
"<<"
,
// 11: shift left
"<<<"
,
// 12: shift left (arithmetic)
"~"
,
// 13: bitwise NOT
"&"
,
// 14: bitwise AND
"|"
,
// 15: bitwise OR
"^"
,
// 16: bitwise XOR
"[:]"
,
// 17: bit selection
"{,}"
,
// 18: bit concatenation
"BitPad"
,
// 19: zero padding
"SgnExt"
,
// 20: sign extension
"!"
,
// 21: logic NOT
"&&"
,
// 22: logic AND
"||"
,
// 23: logic OR
"=="
,
// 24: compare equal
"!="
,
// 25: compare not equal
"<"
,
// 26: compare less
">"
,
// 27: compare more
"<="
,
// 28: compare less or equal
">="
,
// 29: compare more or equal
"&"
,
// 30: reduction AND
"|"
,
// 31: reduction OR
"^"
,
// 32: reduction XOR
"+"
,
// 33: arithmetic addition
"-"
,
// 34: arithmetic subtraction
"*"
,
// 35: arithmetic multiplier
"//"
,
// 36: arithmetic division
"%%"
,
// 37: arithmetic modulus
"**"
,
// 38: arithmetic power
NULL
// 39: unused
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
src/base/wlc/wlcWriteVer.c
View file @
501c3f0b
...
@@ -168,7 +168,7 @@ void Wlc_WriteVerInt( FILE * pFile, Wlc_Ntk_t * p )
...
@@ -168,7 +168,7 @@ void Wlc_WriteVerInt( FILE * pFile, Wlc_Ntk_t * p )
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_DIVIDE
)
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_DIVIDE
)
fprintf
(
pFile
,
"//"
);
fprintf
(
pFile
,
"//"
);
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_MODULUS
)
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_MODULUS
)
fprintf
(
pFile
,
"%"
);
fprintf
(
pFile
,
"%
%
"
);
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_POWER
)
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_POWER
)
fprintf
(
pFile
,
"**"
);
fprintf
(
pFile
,
"**"
);
else
assert
(
0
);
else
assert
(
0
);
...
...
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