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
c80fce00
Commit
c80fce00
authored
Apr 18, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled reading the EXDC network by the default BLIF reader.
parent
96b784ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
src/base/io/ioReadBlifMv.c
+28
-4
src/base/io/ioUtil.c
+1
-1
No files found.
src/base/io/ioReadBlifMv.c
View file @
c80fce00
...
...
@@ -143,7 +143,7 @@ Abc_Ntk_t * Io_ReadBlifMv( char * pFileName, int fBlifMv, int fCheck )
{
FILE
*
pFile
;
Io_MvMan_t
*
p
;
Abc_Ntk_t
*
pNtk
;
Abc_Ntk_t
*
pNtk
,
*
pExdc
;
Abc_Lib_t
*
pDesign
=
NULL
;
char
*
pDesignName
;
int
RetValue
,
i
;
...
...
@@ -205,6 +205,23 @@ Abc_Ntk_t * Io_ReadBlifMv( char * pFileName, int fBlifMv, int fCheck )
//Abc_LibPrint( pDesign );
// check if there is an EXDC network
if
(
Vec_PtrSize
(
pDesign
->
vModules
)
>
1
)
{
pNtk
=
(
Abc_Ntk_t
*
)
Vec_PtrEntry
(
pDesign
->
vModules
,
0
);
Vec_PtrForEachEntryStart
(
Abc_Ntk_t
*
,
pDesign
->
vModules
,
pExdc
,
i
,
1
)
if
(
!
strcmp
(
pExdc
->
pName
,
"exdc"
)
)
{
assert
(
pNtk
->
pExdc
==
NULL
);
pNtk
->
pExdc
=
pExdc
;
Vec_PtrRemove
(
pDesign
->
vModules
,
pExdc
);
pExdc
->
pDesign
=
NULL
;
i
--
;
}
else
pNtk
=
pExdc
;
}
// detect top-level model
RetValue
=
Abc_LibFindTopLevelModels
(
pDesign
);
pNtk
=
(
Abc_Ntk_t
*
)
Vec_PtrEntry
(
pDesign
->
vTops
,
0
);
...
...
@@ -661,11 +678,12 @@ static void Io_MvReadPreparse( Io_MvMan_t * p )
}
else
if
(
!
strncmp
(
pCur
,
"exdc"
,
4
)
)
{
fprintf
(
stdout
,
"Line %d: Skipping EXDC network.
\n
"
,
Io_MvGetLine
(
p
,
pCur
)
);
// break;
fprintf
(
stdout
,
"Line %d: The design contains EXDC network (warning only).
\n
"
,
Io_MvGetLine
(
p
,
pCur
)
);
if
(
p
->
pLatest
)
Vec_PtrPush
(
p
->
vModels
,
p
->
pLatest
);
p
->
pLatest
=
NULL
;
p
->
pLatest
=
Io_MvModAlloc
();
p
->
pLatest
->
pName
=
NULL
;
p
->
pLatest
->
pMan
=
p
;
}
else
if
(
!
strncmp
(
pCur
,
"attrib"
,
6
)
)
{}
...
...
@@ -907,6 +925,12 @@ static int Io_MvParseLineModel( Io_MvMod_t * p, char * pLine )
{
Vec_Ptr_t
*
vTokens
=
p
->
pMan
->
vTokens
;
char
*
pToken
,
*
pPivot
;
if
(
pLine
==
NULL
)
{
p
->
pNtk
=
Abc_NtkAlloc
(
ABC_NTK_NETLIST
,
ABC_FUNC_SOP
,
1
);
p
->
pNtk
->
pName
=
Extra_UtilStrsav
(
"exdc"
);
return
1
;
}
Io_MvSplitIntoTokens
(
vTokens
,
pLine
,
'\0'
);
pToken
=
(
char
*
)
Vec_PtrEntry
(
vTokens
,
0
);
assert
(
!
strcmp
(
pToken
,
"model"
)
);
...
...
src/base/io/ioUtil.c
View file @
c80fce00
...
...
@@ -229,9 +229,9 @@ Abc_Ntk_t * Io_Read( char * pFileName, Io_FileType_t FileType, int fCheck )
Vec_Ptr_t
*
vLtl
;
// get the netlist
pNtk
=
Io_ReadNetlist
(
pFileName
,
FileType
,
fCheck
);
vLtl
=
temporaryLtlStore
(
pNtk
);
if
(
pNtk
==
NULL
)
return
NULL
;
vLtl
=
temporaryLtlStore
(
pNtk
);
if
(
!
Abc_NtkIsNetlist
(
pNtk
)
)
return
pNtk
;
// flatten logic hierarchy
...
...
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