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
215d62f4
Commit
215d62f4
authored
Jan 19, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New hierarchy manager.
parent
fffd733f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
21 deletions
+29
-21
src/base/abc/abcHieNew.c
+13
-16
src/base/abci/abc.c
+16
-5
No files found.
src/base/abc/abcHieNew.c
View file @
215d62f4
...
...
@@ -1337,7 +1337,11 @@ Gia_Man_t * Au_ManDeriveTest( Abc_Ntk_t * pRoot )
// select network
if
(
pModelName
)
{
pNtk
=
Au_ManFindNtkP
(
pMan
,
pModelName
);
if
(
pNtk
==
NULL
)
printf
(
"Could not find module
\"
%s
\"
.
\n
"
,
pModelName
);
}
if
(
pNtk
==
NULL
)
pNtk
=
(
Au_Ntk_t
*
)
pRoot
->
pData
;
...
...
@@ -1376,13 +1380,11 @@ Gia_Man_t * Au_ManDeriveTest( Abc_Ntk_t * pRoot )
SeeAlso []
***********************************************************************/
Gia_Man_t
*
Abc_NtkHieCecTest2
(
char
*
pFileName
,
int
fVerbose
)
Gia_Man_t
*
Abc_NtkHieCecTest2
(
char
*
pFileName
,
char
*
pModelName
,
int
fVerbose
)
{
// char * pModelName = NULL;
char
*
pModelName
=
"path_0_r_x_lhs"
;
Gia_Man_t
*
pGia
=
NULL
;
Au_Ntk_t
*
pNtk
,
*
pNtkClp
=
NULL
;
int
clk1
=
0
,
clk
2
=
0
,
clk3
=
0
,
clk
=
clock
();
int
clk1
=
0
,
clk
=
clock
();
// read hierarchical netlist
pNtk
=
Au_NtkParseCBlif
(
pFileName
);
...
...
@@ -1411,22 +1413,17 @@ Gia_Man_t * Abc_NtkHieCecTest2( char * pFileName, int fVerbose )
if
(
pNtkClp
==
NULL
)
pNtkClp
=
pNtk
;
// check if the model is recursive
Au_NtkCheckRecursive
(
pNtkClp
);
if
(
!
Au_NtkCheckRecursive
(
pNtkClp
)
);
// COMMA!!!
{
clk1
=
clock
();
pGia
=
Au_NtkDeriveFlatGia
(
pNtkClp
);
clk3
=
clock
()
-
clk1
;
}
// collapse
clk1
=
clock
();
pGia
=
Au_NtkDeriveFlatGia
(
pNtkClp
);
Abc_PrintTime
(
1
,
"Time GIA "
,
clock
()
-
clk1
);
// delete
Au_ManDelete
(
pNtk
->
pMan
);
clk2
+=
clock
()
-
clk1
;
Abc_PrintTime
(
1
,
"Time all "
,
clock
()
-
clk
);
Abc_PrintTime
(
1
,
"Time new "
,
clk2
);
Abc_PrintTime
(
1
,
"Time GIA "
,
clk3
);
return
pGia
;
}
...
...
src/base/abci/abc.c
View file @
215d62f4
...
...
@@ -24567,18 +24567,28 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9ReadCBlif
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Gia_Man_t
*
Abc_NtkHieCecTest2
(
char
*
pFileName
,
int
fVerbose
);
extern
Gia_Man_t
*
Abc_NtkHieCecTest2
(
char
*
pFileName
,
char
*
pModelName
,
int
fVerbose
);
Gia_Man_t
*
pAig
;
FILE
*
pFile
;
char
**
pArgvNew
;
char
*
FileName
,
*
pTemp
;
char
*
pModelName
=
NULL
;
int
nArgcNew
;
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
M
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'M'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-M
\"
should be followed by a file name.
\n
"
);
goto
usage
;
}
pModelName
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -24610,13 +24620,14 @@ int Abc_CommandAbc9ReadCBlif( Abc_Frame_t * pAbc, int argc, char ** argv )
}
fclose
(
pFile
);
pAig
=
Abc_NtkHieCecTest2
(
FileName
,
fVerbose
);
pAig
=
Abc_NtkHieCecTest2
(
FileName
,
pModelName
,
fVerbose
);
Abc_CommandUpdate9
(
pAbc
,
pAig
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &read_cblif [-vh] <file>
\n
"
);
Abc_Print
(
-
2
,
"
\t
reads the current AIG from a hierarchical CBLIF file
\n
"
);
Abc_Print
(
-
2
,
"usage: &read_cblif [-M name] [-vh] <file>
\n
"
);
Abc_Print
(
-
2
,
"
\t
reads CBLIF file and collapse it into an AIG
\n
"
);
Abc_Print
(
-
2
,
"
\t
-M name: module name to collapse [default = <root_module>]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles additional verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
<file> : the file name
\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