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
4bd7efa6
Commit
4bd7efa6
authored
Jan 13, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added counting hits and misses during structural hashing.
parent
edbff75f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
src/aig/gia/gia.h
+2
-0
src/aig/gia/giaHash.c
+5
-1
src/aig/gia/giaMan.c
+1
-0
src/base/abc/abcHieNew.c
+2
-1
No files found.
src/aig/gia/gia.h
View file @
4bd7efa6
...
...
@@ -149,6 +149,8 @@ struct Gia_Man_t_
Vec_Flt_t
*
vTiming
;
// arrival/required/slack
void
*
pManTime
;
// the timing manager
void
*
pLutLib
;
// LUT library
word
nHashHit
;
// hash table hit
word
nHashMiss
;
// hash table miss
};
...
...
src/aig/gia/giaHash.c
View file @
4bd7efa6
...
...
@@ -490,8 +490,12 @@ int Gia_ManHashAnd( Gia_Man_t * p, int iLit0, int iLit1 )
iLit0
^=
iLit1
,
iLit1
^=
iLit0
,
iLit0
^=
iLit1
;
{
int
*
pPlace
=
Gia_ManHashFind
(
p
,
iLit0
,
iLit1
);
if
(
*
pPlace
)
if
(
*
pPlace
)
{
p
->
nHashHit
++
;
return
*
pPlace
;
}
p
->
nHashMiss
++
;
if
(
p
->
nObjs
<
p
->
nObjsAlloc
)
return
*
pPlace
=
Gia_ManAppendAnd
(
p
,
iLit0
,
iLit1
);
else
...
...
src/aig/gia/giaMan.c
View file @
4bd7efa6
...
...
@@ -70,6 +70,7 @@ Gia_Man_t * Gia_ManStart( int nObjsMax )
***********************************************************************/
void
Gia_ManStop
(
Gia_Man_t
*
p
)
{
printf
(
"Hash table hits = %12u. Hash table misses = %12u.
\n
"
,
(
int
)
p
->
nHashHit
,
(
int
)
p
->
nHashMiss
);
Tim_ManStopP
(
(
Tim_Man_t
**
)
&
p
->
pManTime
);
assert
(
p
->
pManTime
==
NULL
);
Vec_PtrFreeFree
(
p
->
vNamesIn
);
...
...
src/base/abc/abcHieNew.c
View file @
4bd7efa6
...
...
@@ -369,7 +369,8 @@ int Au_NtkAllocObj( Au_Ntk_t * p, int nFanins, int Type )
{
int
nObjInt2
=
63
+
64
*
(((
nObjInt
-
63
)
>>
6
)
+
(((
nObjInt
-
63
)
&
63
)
>
0
));
assert
(
nObjInt2
>=
nObjInt
);
p
->
nUseful
+=
nObjInt
-
nObjInt2
;
// if ( nObjInt2 + 64 < (1 << 12) )
// p->nUseful += nObjInt - nObjInt2;
nObjInt
=
nObjInt2
;
}
...
...
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