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
73ab6aac
Commit
73ab6aac
authored
Oct 01, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes several defaults of 'super' to be infinite.
parent
a595fa85
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
17 deletions
+16
-17
src/map/mio/mio.c
+7
-5
src/map/mio/mioRead.c
+3
-6
src/map/mio/mioUtils.c
+1
-1
src/map/super/super.c
+5
-5
src/map/super/superGate.c
+0
-0
No files found.
src/map/mio/mio.c
View file @
73ab6aac
...
@@ -250,6 +250,7 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -250,6 +250,7 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
FILE
*
pFile
;
FILE
*
pFile
;
FILE
*
pOut
,
*
pErr
;
FILE
*
pOut
,
*
pErr
;
Mio_Library_t
*
pLib
;
Mio_Library_t
*
pLib
;
Amap_Lib_t
*
pLib2
;
Abc_Ntk_t
*
pNet
;
Abc_Ntk_t
*
pNet
;
char
*
pFileName
;
char
*
pFileName
;
char
*
pExcludeFile
=
NULL
;
char
*
pExcludeFile
=
NULL
;
...
@@ -323,6 +324,9 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -323,6 +324,9 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
fprintf
(
pErr
,
"Reading genlib library has failed.
\n
"
);
fprintf
(
pErr
,
"Reading genlib library has failed.
\n
"
);
return
1
;
return
1
;
}
}
if
(
fVerbose
)
printf
(
"Entered genlib library with %d gates from file
\"
%s
\"
.
\n
"
,
Mio_LibraryReadGateNum
(
pLib
),
pFileName
);
// add the fixed number (wire delay) to all delays in the library
// add the fixed number (wire delay) to all delays in the library
if
(
WireDelay
!=
0
.
0
)
if
(
WireDelay
!=
0
.
0
)
Mio_LibraryShiftDelay
(
pLib
,
WireDelay
);
Mio_LibraryShiftDelay
(
pLib
,
WireDelay
);
...
@@ -339,17 +343,15 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -339,17 +343,15 @@ int Mio_CommandReadGenlib( Abc_Frame_t * pAbc, int argc, char **argv )
Abc_FrameSetLibGen
(
pLib
);
Abc_FrameSetLibGen
(
pLib
);
// set the new network
// set the new network
pLib
=
(
Mio_Library_t
*
)
Amap_LibReadAndPrepare
(
pFileName
,
NULL
,
0
,
0
);
pLib
2
=
Amap_LibReadAndPrepare
(
pFileName
,
NULL
,
0
,
0
);
if
(
pLib
==
NULL
)
if
(
pLib
2
==
NULL
)
{
{
fprintf
(
pErr
,
"Reading genlib library has failed.
\n
"
);
fprintf
(
pErr
,
"Reading genlib library has failed.
\n
"
);
return
1
;
return
1
;
}
}
// replace the current library
// replace the current library
Amap_LibFree
(
(
Amap_Lib_t
*
)
Abc_FrameReadLibGen2
()
);
Amap_LibFree
(
(
Amap_Lib_t
*
)
Abc_FrameReadLibGen2
()
);
Abc_FrameSetLibGen2
(
pLib
);
Abc_FrameSetLibGen2
(
pLib2
);
if
(
fVerbose
)
printf
(
"Entered genlib library with %d gates from file
\"
%s
\"
.
\n
"
,
Mio_LibraryReadGateNum
(
pLib
),
pFileName
);
return
0
;
return
0
;
usage:
usage:
...
...
src/map/mio/mioRead.c
View file @
73ab6aac
...
@@ -154,8 +154,7 @@ Mio_Library_t * Mio_LibraryReadBuffer( char * pBuffer, int fExtendedFormat, st__
...
@@ -154,8 +154,7 @@ Mio_Library_t * Mio_LibraryReadBuffer( char * pBuffer, int fExtendedFormat, st__
Mio_Library_t
*
pLib
;
Mio_Library_t
*
pLib
;
// allocate the genlib structure
// allocate the genlib structure
pLib
=
ABC_ALLOC
(
Mio_Library_t
,
1
);
pLib
=
ABC_CALLOC
(
Mio_Library_t
,
1
);
memset
(
pLib
,
0
,
sizeof
(
Mio_Library_t
)
);
pLib
->
tName2Gate
=
st__init_table
(
strcmp
,
st__strhash
);
pLib
->
tName2Gate
=
st__init_table
(
strcmp
,
st__strhash
);
pLib
->
pMmFlex
=
Mem_FlexStart
();
pLib
->
pMmFlex
=
Mem_FlexStart
();
pLib
->
vCube
=
Vec_StrAlloc
(
100
);
pLib
->
vCube
=
Vec_StrAlloc
(
100
);
...
@@ -337,8 +336,7 @@ Mio_Gate_t * Mio_LibraryReadGate( char ** ppToken, int fExtendedFormat )
...
@@ -337,8 +336,7 @@ Mio_Gate_t * Mio_LibraryReadGate( char ** ppToken, int fExtendedFormat )
char
*
pToken
=
*
ppToken
;
char
*
pToken
=
*
ppToken
;
// allocate the gate structure
// allocate the gate structure
pGate
=
ABC_ALLOC
(
Mio_Gate_t
,
1
);
pGate
=
ABC_CALLOC
(
Mio_Gate_t
,
1
);
memset
(
pGate
,
0
,
sizeof
(
Mio_Gate_t
)
);
// read the name
// read the name
pToken
=
strtok
(
NULL
,
"
\t\r\n
"
);
pToken
=
strtok
(
NULL
,
"
\t\r\n
"
);
...
@@ -405,8 +403,7 @@ Mio_Pin_t * Mio_LibraryReadPin( char ** ppToken, int fExtendedFormat )
...
@@ -405,8 +403,7 @@ Mio_Pin_t * Mio_LibraryReadPin( char ** ppToken, int fExtendedFormat )
char
*
pToken
=
*
ppToken
;
char
*
pToken
=
*
ppToken
;
// allocate the gate structure
// allocate the gate structure
pPin
=
ABC_ALLOC
(
Mio_Pin_t
,
1
);
pPin
=
ABC_CALLOC
(
Mio_Pin_t
,
1
);
memset
(
pPin
,
0
,
sizeof
(
Mio_Pin_t
)
);
// read the name
// read the name
pToken
=
strtok
(
NULL
,
"
\t\r\n
"
);
pToken
=
strtok
(
NULL
,
"
\t\r\n
"
);
...
...
src/map/mio/mioUtils.c
View file @
73ab6aac
...
@@ -311,7 +311,7 @@ Mio_Gate_t ** Mio_CollectRoots( Mio_Library_t * pLib, int nInputs, float tDelay,
...
@@ -311,7 +311,7 @@ Mio_Gate_t ** Mio_CollectRoots( Mio_Library_t * pLib, int nInputs, float tDelay,
{
{
if
(
pGate
->
nInputs
>
nInputs
)
if
(
pGate
->
nInputs
>
nInputs
)
continue
;
continue
;
if
(
pGate
->
dDelayMax
>
(
double
)
tDelay
)
if
(
tDelay
>
0
.
0
&&
pGate
->
dDelayMax
>
(
double
)
tDelay
)
continue
;
continue
;
if
(
pGate
->
uTruth
==
0
||
pGate
->
uTruth
==
~
0
)
if
(
pGate
->
uTruth
==
0
||
pGate
->
uTruth
==
~
0
)
continue
;
continue
;
...
...
src/map/super/super.c
View file @
73ab6aac
...
@@ -166,11 +166,11 @@ int Super_CommandSupergates( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -166,11 +166,11 @@ int Super_CommandSupergates( Abc_Frame_t * pAbc, int argc, char **argv )
// set the defaults
// set the defaults
nVarsMax
=
5
;
nVarsMax
=
5
;
nLevels
=
3
;
nLevels
=
2
;
DelayLimit
=
3
.
5
;
DelayLimit
=
0
;
AreaLimit
=
9
;
AreaLimit
=
0
;
nGatesMax
=
100000
0
;
nGatesMax
=
0
;
TimeLimit
=
1
0
;
TimeLimit
=
0
;
fSkipInvs
=
1
;
fSkipInvs
=
1
;
fVerbose
=
0
;
fVerbose
=
0
;
fWriteOldFormat
=
0
;
fWriteOldFormat
=
0
;
...
...
src/map/super/superGate.c
View file @
73ab6aac
This diff is collapsed.
Click to expand it.
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