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
e32026cf
Commit
e32026cf
authored
Jan 31, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
6ec4680e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
src/base/cba/cbaPrs.h
+2
-1
src/base/cba/cbaReadBlif.c
+1
-1
src/base/cba/cbaReadVer.c
+1
-1
No files found.
src/base/cba/cbaPrs.h
View file @
e32026cf
...
...
@@ -102,6 +102,7 @@ struct Prs_Man_t_
static
inline
Prs_Ntk_t
*
Prs_ManNtk
(
Vec_Ptr_t
*
vPrs
,
int
i
)
{
return
(
Prs_Ntk_t
*
)
Vec_PtrEntry
(
vPrs
,
i
);
}
static
inline
Prs_Ntk_t
*
Prs_ManRoot
(
Vec_Ptr_t
*
vPrs
)
{
return
Prs_ManNtk
(
vPrs
,
0
);
}
static
inline
Abc_Nam_t
*
Prs_ManNameMan
(
Vec_Ptr_t
*
vPrs
)
{
return
Prs_ManRoot
(
vPrs
)
->
pStrs
;
}
static
inline
int
Prs_NtkId
(
Prs_Ntk_t
*
p
)
{
return
p
->
iModuleName
;
}
static
inline
int
Prs_NtkPioNum
(
Prs_Ntk_t
*
p
)
{
return
Vec_IntSize
(
&
p
->
vInouts
);
}
...
...
@@ -322,7 +323,7 @@ static inline int Prs_ManMemory( Vec_Ptr_t * vPrs )
int
nMem
=
Vec_PtrMemory
(
vPrs
);
Vec_PtrForEachEntry
(
Prs_Ntk_t
*
,
vPrs
,
pNtk
,
i
)
nMem
+=
Prs_NtkMemory
(
pNtk
);
nMem
+=
Abc_NamMemUsed
(
pNtk
->
pStrs
);
nMem
+=
Abc_NamMemUsed
(
Prs_ManNameMan
(
vPrs
)
);
return
nMem
;
}
...
...
src/base/cba/cbaReadBlif.c
View file @
e32026cf
...
...
@@ -422,7 +422,7 @@ void Prs_ManReadBlifTest()
Vec_Ptr_t
*
vPrs
=
Prs_ManReadBlif
(
"c/hie/dump/1/netlist_1_out8.blif"
);
if
(
!
vPrs
)
return
;
printf
(
"Finished reading %d networks. "
,
Vec_PtrSize
(
vPrs
)
);
printf
(
"NameIDs = %d. "
,
Abc_NamObjNumMax
(
Prs_Man
Root
(
vPrs
)
->
pStrs
)
);
printf
(
"NameIDs = %d. "
,
Abc_NamObjNumMax
(
Prs_Man
NameMan
(
vPrs
)
)
);
printf
(
"Memory = %.2f MB. "
,
1
.
0
*
Prs_ManMemory
(
vPrs
)
/
(
1
<<
20
)
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clk
);
// Abc_NamPrint( p->pStrs );
...
...
src/base/cba/cbaReadVer.c
View file @
e32026cf
...
...
@@ -791,7 +791,7 @@ void Prs_ManReadVerilogTest( char * pFileName )
// Vec_Ptr_t * vPrs = Prs_ManReadVerilog( "aga/ray/ray_wide.v" );
if
(
!
vPrs
)
return
;
printf
(
"Finished reading %d networks. "
,
Vec_PtrSize
(
vPrs
)
);
printf
(
"NameIDs = %d. "
,
Abc_NamObjNumMax
(
Prs_Man
Root
(
vPrs
)
->
pStrs
)
);
printf
(
"NameIDs = %d. "
,
Abc_NamObjNumMax
(
Prs_Man
NameMan
(
vPrs
)
)
);
printf
(
"Memory = %.2f MB. "
,
1
.
0
*
Prs_ManMemory
(
vPrs
)
/
(
1
<<
20
)
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clk
);
Prs_ManWriteVerilog
(
"c/hie/dump/1/netlist_1_out_new.v"
,
vPrs
);
...
...
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