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
e37bd1fb
Commit
e37bd1fb
authored
Jul 14, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved bit-blasting of various operators in Wlc_Ntk_t; added SQRT operator (@).
parent
92b85b16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
+13
-5
src/base/wlc/wlc.h
+4
-2
src/base/wlc/wlcBlast.c
+0
-0
src/base/wlc/wlcNtk.c
+4
-2
src/base/wlc/wlcReadVer.c
+3
-1
src/base/wlc/wlcWriteVer.c
+2
-0
No files found.
src/base/wlc/wlc.h
View file @
e37bd1fb
...
...
@@ -85,9 +85,11 @@ typedef enum {
WLC_OBJ_ARI_MODULUS
,
// 41: arithmetic modulus
WLC_OBJ_ARI_POWER
,
// 42: arithmetic power
WLC_OBJ_ARI_MINUS
,
// 43: arithmetic minus
WLC_OBJ_TABLE
,
// 44: bit table
WLC_OBJ_NUMBER
// 45: unused
WLC_OBJ_ARI_SQRT
,
// 44: integer square root
WLC_OBJ_TABLE
,
// 45: bit table
WLC_OBJ_NUMBER
// 46: unused
}
Wlc_ObjType_t
;
// when adding new types, remember to update table Wlc_Names in "wlcNtk.c"
// Unlike AIG managers and logic networks in ABC, this network treats POs and FIs
...
...
src/base/wlc/wlcBlast.c
View file @
e37bd1fb
This diff is collapsed.
Click to expand it.
src/base/wlc/wlcNtk.c
View file @
e37bd1fb
...
...
@@ -73,10 +73,12 @@ static char * Wlc_Names[WLC_OBJ_NUMBER+1] = {
"%"
,
// 41: arithmetic modulus
"**"
,
// 42: arithmetic power
"-"
,
// 43: arithmetic minus
"table"
,
// 44: bit table
NULL
// 45: unused
"sqrt"
,
// 44: integer square root
"table"
,
// 45: bit table
NULL
// 46: unused
};
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
...
...
src/base/wlc/wlcReadVer.c
View file @
e37bd1fb
...
...
@@ -653,12 +653,14 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
return
0
;
Type
=
WLC_OBJ_CONST
;
}
else
if
(
pStr
[
0
]
==
'!'
||
pStr
[
0
]
==
'~'
)
else
if
(
pStr
[
0
]
==
'!'
||
pStr
[
0
]
==
'~'
||
pStr
[
0
]
==
'@'
)
{
if
(
pStr
[
0
]
==
'!'
)
Type
=
WLC_OBJ_LOGIC_NOT
;
else
if
(
pStr
[
0
]
==
'~'
)
Type
=
WLC_OBJ_BIT_NOT
;
else
if
(
pStr
[
0
]
==
'@'
)
Type
=
WLC_OBJ_ARI_SQRT
;
else
assert
(
0
);
// skip parentheses
pStr
=
Wlc_PrsSkipSpaces
(
pStr
+
1
);
...
...
src/base/wlc/wlcWriteVer.c
View file @
e37bd1fb
...
...
@@ -324,6 +324,8 @@ void Wlc_WriteVerInt( FILE * pFile, Wlc_Ntk_t * p, int fNoFlops )
fprintf
(
pFile
,
"%%"
);
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_POWER
)
fprintf
(
pFile
,
"**"
);
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_SQRT
)
fprintf
(
pFile
,
"@"
);
else
assert
(
0
);
fprintf
(
pFile
,
" %s"
,
Wlc_ObjName
(
p
,
Wlc_ObjFaninId
(
pObj
,
1
))
);
}
...
...
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