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
723f85ef
Commit
723f85ef
authored
Sep 19, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending Liberty parser to handle multi-output cells.
parent
5dc50744
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/base/ver/verCore.c
+1
-1
src/map/amap/amapLiberty.c
+1
-1
src/map/mio/mioParse.c
+4
-4
src/map/mio/mioRead.c
+2
-2
No files found.
src/base/ver/verCore.c
View file @
723f85ef
...
...
@@ -2372,7 +2372,7 @@ void Ver_ParseReportUndefBoxes( Ver_Man_t * pMan )
if
(
pBox
->
pData
&&
!
Ver_NtkIsDefined
((
Abc_Ntk_t
*
)
pBox
->
pData
)
)
((
Abc_Ntk_t
*
)
pBox
->
pData
)
->
fHiePath
++
;
// print the stats
printf
(
"Warning: The design contains %d undefined objects interpreted as blackboxes:
\n
"
,
nBoxes
);
printf
(
"Warning: The design contains %d undefined object
type
s interpreted as blackboxes:
\n
"
,
nBoxes
);
Vec_PtrForEachEntry
(
Abc_Ntk_t
*
,
pMan
->
pDesign
->
vModules
,
pNtk
,
i
)
if
(
!
Ver_NtkIsDefined
(
pNtk
)
)
printf
(
"%s (%d) "
,
Abc_NtkName
(
pNtk
),
pNtk
->
fHiePath
);
...
...
src/map/amap/amapLiberty.c
View file @
723f85ef
...
...
@@ -454,7 +454,7 @@ int Amap_LibertyPrintGenlib( Amap_Tree_t * p, char * pFileName, int fVerbose )
fprintf
(
pFile
,
"%s="
,
Amap_LibertyGetString
(
p
,
pOutput
->
Head
)
);
fprintf
(
pFile
,
"%s;
\n
"
,
Amap_LibertyGetStringFormula
(
p
,
pFunc
->
Head
)
);
Amap_ItemForEachChild
(
p
,
pCell
,
pPin
)
if
(
pPin
!=
pOutput
&&
!
Amap_LibertyCompare
(
p
,
pPin
->
Key
,
"pin"
)
)
if
(
Vec_PtrFind
(
vOutputs
,
pPin
)
==
-
1
&&
!
Amap_LibertyCompare
(
p
,
pPin
->
Key
,
"pin"
)
)
fprintf
(
pFile
,
" PIN %13s UNKNOWN 1 999 1.00 0.00 1.00 0.00
\n
"
,
Amap_LibertyGetString
(
p
,
pPin
->
Head
)
);
}
Vec_PtrFree
(
vOutputs
);
...
...
src/map/mio/mioParse.c
View file @
723f85ef
...
...
@@ -410,7 +410,7 @@ int Mio_ParseCheckFormula( Mio_Gate_t * pGate, char * pForm )
Mio_Pin_t
*
pPin
;
char
*
pStr
;
int
i
,
iPin
,
fVisit
[
32
]
=
{
0
};
if
(
Mio_GateReadPins
(
pGate
)
==
NULL
)
if
(
Mio_GateReadPins
(
pGate
)
==
NULL
||
!
strcmp
(
Mio_PinReadName
(
Mio_GateReadPins
(
pGate
)),
"*"
)
)
return
1
;
/*
// find the equality sign
...
...
@@ -421,9 +421,9 @@ int Mio_ParseCheckFormula( Mio_Gate_t * pGate, char * pForm )
return 0;
}
*/
printf
(
"Checking gate %s
\n
"
,
pGate
->
pName
);
//
printf( "Checking gate %s\n", pGate->pName );
for
(
pStr
=
pForm
+
1
;
*
pStr
;
pStr
++
)
for
(
pStr
=
pForm
;
*
pStr
;
pStr
++
)
{
if
(
*
pStr
==
' '
||
*
pStr
==
MIO_EQN_SYM_OPEN
||
...
...
@@ -443,7 +443,7 @@ printf( "Checking gate %s\n", pGate->pName );
iPin
=
Mio_ParseCheckName
(
pGate
,
&
pStr
);
if
(
iPin
==
-
1
)
{
printf
(
"Skipping gate
\"
%s
\"
because substring
\"
%s
\"
does not match with a pin name.
\n
"
,
pGate
->
pName
,
*
pStr
);
printf
(
"Skipping gate
\"
%s
\"
because substring
\"
%s
\"
does not match with a pin name.
\n
"
,
pGate
->
pName
,
pStr
);
return
0
;
}
assert
(
iPin
<
32
);
...
...
src/map/mio/mioRead.c
View file @
723f85ef
...
...
@@ -209,14 +209,14 @@ int Mio_LibraryReadInternal( Mio_Library_t * pLib, char * pBuffer, int fExtended
pGate
=
Mio_LibraryReadGate
(
&
pToken
,
fExtendedFormat
);
if
(
pGate
==
NULL
)
return
1
;
/*
// skip the gate if its formula has problems
if
(
!
Mio_ParseCheckFormula
(
pGate
,
pGate
->
pForm
)
)
{
Mio_GateDelete
(
pGate
);
continue
;
}
*/
// set the library
pGate
->
pLib
=
pLib
;
...
...
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