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
3206a7fc
Commit
3206a7fc
authored
Aug 04, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
9de8a0b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
src/base/cba/cbaReadVer.c
+2
-2
src/base/cba/cbaWriteVer.c
+1
-9
No files found.
src/base/cba/cbaReadVer.c
View file @
3206a7fc
...
...
@@ -1207,7 +1207,7 @@ int Prs_CreateVerilogNtk( Cba_Ntk_t * p, Prs_Ntk_t * pNtk )
else
// box
{
Cba_Ntk_t
*
pBox
=
NULL
;
int
nInputs
,
nOutputs
=
1
;
char
**
pOutNames
,
*
pNtkName
=
Prs_NtkStr
(
pNtk
,
Prs_BoxNtk
(
pNtk
,
i
));
char
**
pOutNames
=
NULL
,
*
pNtkName
=
Prs_NtkStr
(
pNtk
,
Prs_BoxNtk
(
pNtk
,
i
));
Cba_ObjType_t
Type
=
Prs_ManFindType
(
pNtkName
,
&
nInputs
,
1
,
&
pOutNames
);
if
(
Type
==
CBA_OBJ_BOX
)
{
...
...
@@ -1297,7 +1297,7 @@ int Prs_CreateVerilogNtk( Cba_Ntk_t * p, Prs_Ntk_t * pNtk )
else
// box
{
int
nInputs
=
-
1
;
char
**
pInNames
,
*
pNtkName
=
Prs_NtkStr
(
pNtk
,
Prs_BoxNtk
(
pNtk
,
i
));
char
**
pInNames
=
NULL
,
*
pNtkName
=
Prs_NtkStr
(
pNtk
,
Prs_BoxNtk
(
pNtk
,
i
));
Cba_ObjType_t
Type
=
Prs_ManFindType
(
pNtkName
,
&
nInputs
,
0
,
&
pInNames
);
assert
(
Type
==
Cba_ObjType
(
p
,
iObj
)
);
// mark PI objects
...
...
src/base/cba/cbaWriteVer.c
View file @
3206a7fc
...
...
@@ -397,16 +397,8 @@ int Cba_ManWriteLineFile( Cba_Ntk_t * p, int iObj, int FileAttr, int LineAttr )
int
FileId
=
0
,
LineId
=
0
;
if
(
FileAttr
&&
(
FileId
=
Cba_ObjAttrValue
(
p
,
iObj
,
FileAttr
))
)
{
/*
LineId
=
Cba_ObjAttrValue
(
p
,
iObj
,
LineAttr
);
Vec_StrPrintStr( vStr, " // " );
Vec_StrPrintStr( vStr, Cba_NtkStr(p, FileId) );
Vec_StrPush( vStr, '(' );
Vec_StrPrintNum( vStr, LineId );
Vec_StrPush( vStr, ')' );
*/
Vec_StrPrintF
(
vStr
,
" // %s(%d)"
,
Cba_NtkStr
(
p
,
FileId
),
Cba_ObjAttrValue
(
p
,
iObj
,
LineAttr
)
);
Vec_StrPrintF
(
vStr
,
" // %s(%d)"
,
Cba_NtkStr
(
p
,
FileId
),
LineId
);
return
1
;
}
return
0
;
...
...
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