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
a0cc6215
Commit
a0cc6215
authored
May 06, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to fix a mysterious bug in reading the library files.
parent
80d161af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
src/base/abci/abcMap.c
+4
-4
src/base/seq/seqMapCore.c
+2
-2
src/map/mapper/mapperLib.c
+14
-15
No files found.
src/base/abci/abcMap.c
View file @
a0cc6215
...
...
@@ -78,8 +78,8 @@ Abc_Ntk_t * Abc_NtkMap( Abc_Ntk_t * pNtk, double DelayTarget, int fRecovery, int
// derive the supergate library
if
(
Abc_FrameReadLibSuper
()
==
NULL
&&
Abc_FrameReadLibGen
()
)
{
printf
(
"A simple supergate library is derived from gate library
\"
%s
\"
.
\n
"
,
Mio_LibraryReadName
((
Mio_Library_t
*
)
Abc_FrameReadLibGen
())
);
//
printf( "A simple supergate library is derived from gate library \"%s\".\n",
//
Mio_LibraryReadName((Mio_Library_t *)Abc_FrameReadLibGen()) );
Map_SuperLibDeriveFromGenlib
(
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
()
);
}
...
...
@@ -432,8 +432,8 @@ Abc_Ntk_t * Abc_NtkSuperChoice( Abc_Ntk_t * pNtk )
// derive the supergate library
if
(
Abc_FrameReadLibSuper
()
==
NULL
&&
Abc_FrameReadLibGen
()
)
{
printf
(
"A simple supergate library is derived from gate library
\"
%s
\"
.
\n
"
,
Mio_LibraryReadName
((
Mio_Library_t
*
)
Abc_FrameReadLibGen
())
);
//
printf( "A simple supergate library is derived from gate library \"%s\".\n",
//
Mio_LibraryReadName((Mio_Library_t *)Abc_FrameReadLibGen()) );
Map_SuperLibDeriveFromGenlib
(
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
()
);
}
...
...
src/base/seq/seqMapCore.c
View file @
a0cc6215
...
...
@@ -67,8 +67,8 @@ Abc_Ntk_t * Seq_MapRetime( Abc_Ntk_t * pNtk, int nMaxIters, int fVerbose )
// derive the supergate library
if
(
Abc_FrameReadLibSuper
()
==
NULL
&&
Abc_FrameReadLibGen
()
)
{
printf
(
"A simple supergate library is derived from gate library
\"
%s
\"
.
\n
"
,
Mio_LibraryReadName
(
Abc_FrameReadLibGen
())
);
//
printf( "A simple supergate library is derived from gate library \"%s\".\n",
//
Mio_LibraryReadName(Abc_FrameReadLibGen()) );
Map_SuperLibDeriveFromGenlib
(
Abc_FrameReadLibGen
()
);
}
p
->
pSuperLib
=
Abc_FrameReadLibSuper
();
...
...
src/map/mapper/mapperLib.c
View file @
a0cc6215
...
...
@@ -202,7 +202,7 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib )
pNameGeneric
=
Extra_FileNameGeneric
(
Mio_LibraryReadName
(
pLib
)
);
sprintf
(
FileNameSuper
,
"%s.super"
,
pNameGeneric
);
ABC_FREE
(
pNameGeneric
);
sprintf
(
CommandSuper
,
"super -l 1 -i 5 -d 10000000 -a 10000000 -t 100 %s"
,
FileNameGenlib
);
if
(
Cmd_CommandExecute
(
pAbc
,
CommandSuper
)
)
{
...
...
@@ -218,15 +218,17 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib )
//#else
// unlink( FileNameGenlib );
//#endif
printf
(
"A simple supergate library is derived from gate library
\"
%s
\"
.
\n
"
,
Mio_LibraryReadName
(
pLib
)
);
fflush
(
stdout
);
sprintf
(
CommandRead
,
"read_super %s"
,
FileNameSuper
);
if
(
Cmd_CommandExecute
(
pAbc
,
CommandRead
)
)
{
#ifdef WIN32
_unlink
(
FileNameSuper
);
#else
unlink
(
FileNameSuper
);
#endif
//
#ifdef WIN32
//
_unlink( FileNameSuper );
//
#else
//
unlink( FileNameSuper );
//
#endif
fprintf
(
stdout
,
"Cannot execute command
\"
%s
\"
.
\n
"
,
CommandRead
);
ABC_FREE
(
FileNameGenlib
);
ABC_FREE
(
FileNameSuper
);
...
...
@@ -234,19 +236,16 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib )
ABC_FREE
(
CommandRead
);
return
0
;
}
/* // don't remove the intermediate file
#ifdef WIN32
_unlink( FileNameSuper );
#else
unlink( FileNameSuper );
#endif
*/
//#ifdef WIN32
// _unlink( FileNameSuper );
//#else
// unlink( FileNameSuper );
//#endif
ABC_FREE
(
FileNameGenlib
);
ABC_FREE
(
FileNameSuper
);
ABC_FREE
(
CommandSuper
);
ABC_FREE
(
CommandRead
);
return
1
;
return
1
;
}
...
...
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