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
d415a1ad
Commit
d415a1ad
authored
Feb 17, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrating packing information.
parent
baa944e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
3 deletions
+8
-3
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaAiger.c
+4
-2
src/aig/gia/giaAigerExt.c
+1
-1
src/aig/gia/giaIf.c
+0
-0
src/aig/gia/giaMan.c
+2
-0
No files found.
src/aig/gia/gia.h
View file @
d415a1ad
...
@@ -900,6 +900,7 @@ extern void Gia_ManHashProfile( Gia_Man_t * p );
...
@@ -900,6 +900,7 @@ extern void Gia_ManHashProfile( Gia_Man_t * p );
extern
int
Gia_ManHashLookup
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
p0
,
Gia_Obj_t
*
p1
);
extern
int
Gia_ManHashLookup
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
p0
,
Gia_Obj_t
*
p1
);
/*=== giaIf.c ===========================================================*/
/*=== giaIf.c ===========================================================*/
extern
void
Gia_ManPrintMappingStats
(
Gia_Man_t
*
p
);
extern
void
Gia_ManPrintMappingStats
(
Gia_Man_t
*
p
);
extern
void
Gia_ManPrintPackingStats
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutFaninCount
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutFaninCount
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutSizeMax
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutSizeMax
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutNum
(
Gia_Man_t
*
p
);
extern
int
Gia_ManLutNum
(
Gia_Man_t
*
p
);
...
...
src/aig/gia/giaAiger.c
View file @
d415a1ad
...
@@ -582,9 +582,11 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
...
@@ -582,9 +582,11 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
else
if
(
*
pCur
==
'k'
)
else
if
(
*
pCur
==
'k'
)
{
{
extern
Vec_Int_t
*
Gia_AigerReadPacking
(
unsigned
char
**
ppPos
,
int
nSize
);
extern
Vec_Int_t
*
Gia_AigerReadPacking
(
unsigned
char
**
ppPos
,
int
nSize
);
int
nSize
;
pCur
++
;
pCur
++
;
pCurTemp
=
pCur
+
Gia_AigerReadInt
(
pCur
)
+
4
;
pCur
+=
4
;
nSize
=
Gia_AigerReadInt
(
pCur
);
pNew
->
vPacking
=
Gia_AigerReadPacking
(
&
pCur
,
pCurTemp
-
pCur
);
pCurTemp
=
pCur
+
nSize
+
4
;
pCur
+=
4
;
pNew
->
vPacking
=
Gia_AigerReadPacking
(
&
pCur
,
nSize
);
assert
(
pCur
==
pCurTemp
);
assert
(
pCur
==
pCurTemp
);
if
(
fVerbose
)
printf
(
"Finished reading extension
\"
k
\"
.
\n
"
);
if
(
fVerbose
)
printf
(
"Finished reading extension
\"
k
\"
.
\n
"
);
}
}
...
...
src/aig/gia/giaAigerExt.c
View file @
d415a1ad
...
@@ -253,7 +253,7 @@ Vec_Int_t * Gia_AigerReadPacking( unsigned char ** ppPos, int nSize )
...
@@ -253,7 +253,7 @@ Vec_Int_t * Gia_AigerReadPacking( unsigned char ** ppPos, int nSize )
Vec_Str_t
*
Gia_WritePacking
(
Vec_Int_t
*
vPacking
)
Vec_Str_t
*
Gia_WritePacking
(
Vec_Int_t
*
vPacking
)
{
{
Vec_Str_t
*
vBuffer
=
Vec_StrStart
(
4
*
Vec_IntSize
(
vPacking
)
);
Vec_Str_t
*
vBuffer
=
Vec_StrStart
(
4
*
Vec_IntSize
(
vPacking
)
);
memcpy
(
Vec_StrArray
(
vBuffer
),
Vec_IntArray
(
vPacking
),
4
*
sizeof
(
int
)
);
memcpy
(
Vec_StrArray
(
vBuffer
),
Vec_IntArray
(
vPacking
),
4
*
Vec_IntSize
(
vPacking
)
);
return
vBuffer
;
return
vBuffer
;
}
}
...
...
src/aig/gia/giaIf.c
View file @
d415a1ad
This diff is collapsed.
Click to expand it.
src/aig/gia/giaMan.c
View file @
d415a1ad
...
@@ -330,6 +330,8 @@ void Gia_ManPrintStats( Gia_Man_t * p, int fTents, int fSwitch, int fCut )
...
@@ -330,6 +330,8 @@ void Gia_ManPrintStats( Gia_Man_t * p, int fTents, int fSwitch, int fCut )
Gia_ManPrintChoiceStats
(
p
);
Gia_ManPrintChoiceStats
(
p
);
if
(
p
->
pMapping
)
if
(
p
->
pMapping
)
Gia_ManPrintMappingStats
(
p
);
Gia_ManPrintMappingStats
(
p
);
if
(
p
->
vPacking
)
Gia_ManPrintPackingStats
(
p
);
if
(
p
->
pPlacement
)
if
(
p
->
pPlacement
)
Gia_ManPrintPlacement
(
p
);
Gia_ManPrintPlacement
(
p
);
// print register classes
// print register classes
...
...
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