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
c9128752
Commit
c9128752
authored
Jun 17, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New command 'phase_map'.
parent
92a448e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletions
+56
-1
src/base/abci/abc.c
+55
-0
src/opt/sfm/sfmArea.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
c9128752
...
...
@@ -242,6 +242,7 @@ static int Abc_CommandRecMerge3 ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandMap
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAmap
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPhaseMap
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandUnmap
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAttach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandSuperChoice
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -876,6 +877,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"map"
,
Abc_CommandMap
,
1
);
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"amap"
,
Abc_CommandAmap
,
1
);
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"phase_map"
,
Abc_CommandPhaseMap
,
1
);
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"unmap"
,
Abc_CommandUnmap
,
1
);
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"attach"
,
Abc_CommandAttach
,
1
);
Cmd_CommandAdd
(
pAbc
,
"SC mapping"
,
"superc"
,
Abc_CommandSuperChoice
,
1
);
...
...
@@ -15565,6 +15567,59 @@ usage:
return
1
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandPhaseMap
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Abc_NtkChangePerform
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
fVerbose
=
0
,
c
;
// set defaults
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
pNtk
==
NULL
)
{
Abc_Print
(
-
1
,
"Empty network.
\n
"
);
return
1
;
}
if
(
!
Abc_NtkHasMapping
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"Cannot unmap the network that is not mapped.
\n
"
);
return
1
;
}
Abc_NtkChangePerform
(
pNtk
,
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: phase_map [-vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
tries to replace each gate by its complement (area-only)
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
/**Function*************************************************************
src/opt/sfm/sfmArea.c
View file @
c9128752
...
...
@@ -295,7 +295,7 @@ void Abc_ObjChangePerform( Abc_Obj_t * pObj, Vec_Int_t * vInfo, Vec_Int_t * vFir
assert
(
Abc_ObjFanoutNum
(
pObj
)
==
0
);
Abc_NtkDeleteObj
(
pObj
);
pObj
=
pFanin
;
assert
(
fUseInv
==
0
);
//
assert( fUseInv == 0 );
}
else
Abc_ObjChangeUpdate
(
pObj
,
iFanin
,
pCells
,
pNodeInfo
,
vTemp
);
...
...
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