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
c2c9a5cf
Commit
c2c9a5cf
authored
Nov 28, 2010
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added command "swappos".
parent
a17a4e5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
src/base/abc/abcNtk.c
+30
-0
No files found.
src/base/abc/abcNtk.c
View file @
c2c9a5cf
...
...
@@ -1470,6 +1470,36 @@ void Abc_NtkDropOneOutput( Abc_Ntk_t * pNtk, int iOutput )
Abc_AigCleanup
(
(
Abc_Aig_t
*
)
pNtk
->
pManFunc
);
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Abc_NtkSwapOneOutput
(
Abc_Ntk_t
*
pNtk
,
int
iOutput
)
{
Abc_Obj_t
*
pObj1
,
*
pObj2
;
Abc_Obj_t
*
pChild1Old
,
*
pChild2Old
;
Abc_Obj_t
*
pChild1
,
*
pChild2
;
if
(
iOutput
==
0
)
return
;
pObj1
=
Abc_NtkPo
(
pNtk
,
0
);
pObj2
=
Abc_NtkPo
(
pNtk
,
iOutput
);
pChild1Old
=
Abc_ObjChild0
(
pObj1
);
pChild2Old
=
Abc_ObjChild0
(
pObj2
);
pChild1
=
Abc_ObjNotCond
(
pChild1Old
,
Abc_ObjFaninC0
(
pObj2
)
);
pChild2
=
Abc_ObjNotCond
(
pChild2Old
,
Abc_ObjFaninC0
(
pObj1
)
);
Abc_ObjPatchFanin
(
pObj1
,
Abc_ObjFanin0
(
pObj1
),
pChild2
);
Abc_ObjPatchFanin
(
pObj2
,
Abc_ObjFanin0
(
pObj2
),
pChild1
);
assert
(
Abc_ObjChild0
(
pObj1
)
==
pChild2Old
);
assert
(
Abc_ObjChild0
(
pObj2
)
==
pChild1Old
);
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
...
...
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