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
ddda9320
Commit
ddda9320
authored
Jul 21, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding new GIA duplication API.
parent
d332e670
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletions
+38
-1
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaDup.c
+36
-0
src/base/cba/cbaCom.c
+1
-1
No files found.
src/aig/gia/gia.h
View file @
ddda9320
...
@@ -1133,6 +1133,7 @@ extern Gia_Man_t * Gia_ManDupTimes( Gia_Man_t * p, int nTimes );
...
@@ -1133,6 +1133,7 @@ extern Gia_Man_t * Gia_ManDupTimes( Gia_Man_t * p, int nTimes );
extern
Gia_Man_t
*
Gia_ManDupDfs
(
Gia_Man_t
*
p
);
extern
Gia_Man_t
*
Gia_ManDupDfs
(
Gia_Man_t
*
p
);
extern
Gia_Man_t
*
Gia_ManDupCofactorVar
(
Gia_Man_t
*
p
,
int
iVar
,
int
Value
);
extern
Gia_Man_t
*
Gia_ManDupCofactorVar
(
Gia_Man_t
*
p
,
int
iVar
,
int
Value
);
extern
Gia_Man_t
*
Gia_ManDupCofactorObj
(
Gia_Man_t
*
p
,
int
iObj
,
int
Value
);
extern
Gia_Man_t
*
Gia_ManDupCofactorObj
(
Gia_Man_t
*
p
,
int
iObj
,
int
Value
);
extern
Gia_Man_t
*
Gia_ManDupBlock
(
Gia_Man_t
*
p
,
int
nBlock
);
extern
Gia_Man_t
*
Gia_ManDupExist
(
Gia_Man_t
*
p
,
int
iVar
);
extern
Gia_Man_t
*
Gia_ManDupExist
(
Gia_Man_t
*
p
,
int
iVar
);
extern
Gia_Man_t
*
Gia_ManDupDfsSkip
(
Gia_Man_t
*
p
);
extern
Gia_Man_t
*
Gia_ManDupDfsSkip
(
Gia_Man_t
*
p
);
extern
Gia_Man_t
*
Gia_ManDupDfsCone
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
extern
Gia_Man_t
*
Gia_ManDupDfsCone
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
...
...
src/aig/gia/giaDup.c
View file @
ddda9320
...
@@ -1417,6 +1417,42 @@ Gia_Man_t * Gia_ManDupCofactorObj( Gia_Man_t * p, int iObj, int Value )
...
@@ -1417,6 +1417,42 @@ Gia_Man_t * Gia_ManDupCofactorObj( Gia_Man_t * p, int iObj, int Value )
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Reduce bit-width of GIA assuming it is Boolean.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Gia_Man_t
*
Gia_ManDupBlock
(
Gia_Man_t
*
p
,
int
nBlock
)
{
Gia_Man_t
*
pNew
,
*
pTemp
;
Gia_Obj_t
*
pObj
;
int
i
;
assert
(
Gia_ManCiNum
(
p
)
%
nBlock
==
0
);
assert
(
Gia_ManCoNum
(
p
)
%
nBlock
==
0
);
pNew
=
Gia_ManStart
(
Gia_ManObjNum
(
p
)
);
pNew
->
pName
=
Abc_UtilStrsav
(
p
->
pName
);
pNew
->
pSpec
=
Abc_UtilStrsav
(
p
->
pSpec
);
Gia_ManFillValue
(
p
);
Gia_ManConst0
(
p
)
->
Value
=
0
;
Gia_ManForEachCi
(
p
,
pObj
,
i
)
pObj
->
Value
=
(
i
%
nBlock
==
0
)
?
Gia_ManAppendCi
(
pNew
)
:
0
;
Gia_ManHashAlloc
(
pNew
);
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
pObj
->
Value
=
Gia_ManHashAnd
(
pNew
,
Gia_ObjFanin0Copy
(
pObj
),
Gia_ObjFanin1Copy
(
pObj
)
);
Gia_ManForEachCo
(
p
,
pObj
,
i
)
if
(
i
%
nBlock
==
0
)
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pObj
)
);
Gia_ManSetRegNum
(
pNew
,
Gia_ManRegNum
(
p
)
/
nBlock
);
pNew
=
Gia_ManCleanup
(
pTemp
=
pNew
);
Gia_ManStop
(
pTemp
);
return
pNew
;
}
/**Function*************************************************************
Synopsis [Existentially quantified given variable.]
Synopsis [Existentially quantified given variable.]
Description []
Description []
...
...
src/base/cba/cbaCom.c
View file @
ddda9320
...
@@ -501,7 +501,7 @@ int Cba_CommandGet( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -501,7 +501,7 @@ int Cba_CommandGet( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: @get [-mvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: @get [-mvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
extrac
ts AIG or mapped network into the hierarchical design
\n
"
);
Abc_Print
(
-
2
,
"
\t
inser
ts AIG or mapped network into the hierarchical design
\n
"
);
Abc_Print
(
-
2
,
"
\t
-m : toggle using mapped network from main-space [default = %s]
\n
"
,
fMapped
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-m : toggle using mapped network from main-space [default = %s]
\n
"
,
fMapped
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
...
...
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