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
b9163754
Commit
b9163754
authored
Jan 20, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New hierarchy manager.
parent
ec1c45fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
src/base/abc/abcHieNew.c
+13
-7
No files found.
src/base/abc/abcHieNew.c
View file @
b9163754
...
...
@@ -103,7 +103,8 @@ struct Au_Man_t_
int
nRefs
;
// reference counter
// statistics
int
nGiaObjMax
;
// max number of GIA objects
double
nPortsC
;
// const ports
double
nPortsC0
;
// const ports
double
nPortsC1
;
// const ports
double
nPortsNC
;
// non-const ports
};
...
...
@@ -1328,8 +1329,10 @@ void Au_NtkTerSimulate_rec( Au_Ntk_t * p )
assert
(
Au_ObjGetXsim
(
pTerm
)
>
0
);
if
(
Au_ObjGetXsim
(
pTerm
)
==
AU_VALX
)
p
->
pMan
->
nPortsNC
++
;
else
if
(
Au_ObjGetXsim
(
pTerm
)
==
AU_VAL0
)
p
->
pMan
->
nPortsC0
++
;
else
p
->
pMan
->
nPortsC
++
;
p
->
pMan
->
nPortsC
1
++
;
}
if
(
strcmp
(
Au_NtkName
(
p
),
"ref_egcd"
)
==
0
)
{
...
...
@@ -1376,8 +1379,10 @@ void Au_NtkTerSimulate_rec( Au_Ntk_t * p )
assert
(
Au_ObjGetXsim
(
pTerm
)
>
0
);
if
(
Au_ObjGetXsim
(
pTerm
)
==
AU_VALX
)
p
->
pMan
->
nPortsNC
++
;
else
if
(
Au_ObjGetXsim
(
pTerm
)
==
AU_VAL0
)
p
->
pMan
->
nPortsC0
++
;
else
p
->
pMan
->
nPortsC
++
;
p
->
pMan
->
nPortsC
1
++
;
}
}
...
...
@@ -1402,7 +1407,8 @@ void Au_NtkTerSimulate( Au_Ntk_t * p )
Au_NtkForEachPi
(
p
,
pTerm
,
i
)
Au_ObjSetXsim
(
pTerm
,
AU_VALX
);
// recursively flatten hierarchy
p
->
pMan
->
nPortsC
=
0
;
p
->
pMan
->
nPortsC0
=
0
;
p
->
pMan
->
nPortsC1
=
0
;
p
->
pMan
->
nPortsNC
=
0
;
Au_NtkTerSimulate_rec
(
p
);
// analyze outputs
...
...
@@ -1414,8 +1420,8 @@ void Au_NtkTerSimulate( Au_Ntk_t * p )
// print results
printf
(
"Const0 outputs =%15d. Const1 outputs =%15d. Total outputs =%15d.
\n
"
,
Counter
[
0
],
Counter
[
1
],
Au_NtkPoNum
(
p
)
);
printf
(
"Const
ports =%15.0f. Non-const ports=%15.0f. Total ports =%15
.0f.
\n
"
,
p
->
pMan
->
nPortsC
,
p
->
pMan
->
nPortsNC
,
p
->
pMan
->
nPortsC
+
p
->
pMan
->
nPortsNC
);
printf
(
"Const
0 ports = %.0f. Const1 ports = %.0f. Non-const ports= %.0f. Total ports = %
.0f.
\n
"
,
p
->
pMan
->
nPortsC
0
,
p
->
pMan
->
nPortsC1
,
p
->
pMan
->
nPortsNC
,
p
->
pMan
->
nPortsC0
+
p
->
pMan
->
nPortsC1
+
p
->
pMan
->
nPortsNC
);
}
...
...
@@ -1561,7 +1567,7 @@ Gia_Man_t * Au_ManDeriveTest( Abc_Ntk_t * pRoot )
***********************************************************************/
Gia_Man_t
*
Abc_NtkHieCecTest2
(
char
*
pFileName
,
char
*
pModelName
,
int
fVerbose
)
{
int
fSimulation
=
1
;
int
fSimulation
=
0
;
Gia_Man_t
*
pGia
=
NULL
;
Au_Ntk_t
*
pNtk
,
*
pNtkClp
=
NULL
;
int
clk1
=
0
,
clk
=
clock
();
...
...
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