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
a246882a
Commit
a246882a
authored
Sep 11, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scalable gate-level abstraction.
parent
1c865bf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
src/base/io/ioReadBlifMv.c
+30
-9
No files found.
src/base/io/ioReadBlifMv.c
View file @
a246882a
...
@@ -1954,6 +1954,14 @@ static int Io_MvParseLineNamesBlif( Io_MvMod_t * p, char * pLine )
...
@@ -1954,6 +1954,14 @@ static int Io_MvParseLineNamesBlif( Io_MvMod_t * p, char * pLine )
return
1
;
return
1
;
}
}
ABC_NAMESPACE_IMPL_END
#include "map/mio/mio.h"
#include "base/main/main.h"
ABC_NAMESPACE_IMPL_START
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Parses the nodes line.]
Synopsis [Parses the nodes line.]
...
@@ -1989,7 +1997,28 @@ static int Io_MvParseLineShortBlif( Io_MvMod_t * p, char * pLine )
...
@@ -1989,7 +1997,28 @@ static int Io_MvParseLineShortBlif( Io_MvMod_t * p, char * pLine )
// create fanins
// create fanins
pNode
=
Io_ReadCreateNode
(
p
->
pNtk
,
pName
,
(
char
**
)(
vTokens
->
pArray
+
1
),
1
);
pNode
=
Io_ReadCreateNode
(
p
->
pNtk
,
pName
,
(
char
**
)(
vTokens
->
pArray
+
1
),
1
);
// parse the table of this node
// parse the table of this node
pNode
->
pData
=
Abc_SopRegister
(
(
Mem_Flex_t
*
)
p
->
pNtk
->
pManFunc
,
"1 1
\n
"
);
if
(
p
->
pNtk
->
ntkFunc
==
ABC_FUNC_MAP
)
{
Mio_Library_t
*
pGenlib
;
Mio_Gate_t
*
pGate
;
// check that the library is available
pGenlib
=
(
Mio_Library_t
*
)
Abc_FrameReadLibGen
();
if
(
pGenlib
==
NULL
)
{
sprintf
(
p
->
pMan
->
sError
,
"Line %d: The current library is not available."
,
Io_MvGetLine
(
p
->
pMan
,
pName
)
);
return
0
;
}
// get the gate
pGate
=
Mio_LibraryReadBuf
(
pGenlib
);
if
(
pGate
==
NULL
)
{
sprintf
(
p
->
pMan
->
sError
,
"Line %d: Cannot find buffer gate in the library."
,
Io_MvGetLine
(
p
->
pMan
,
pName
)
);
return
0
;
}
Abc_ObjSetData
(
pNode
,
pGate
);
}
else
pNode
->
pData
=
Abc_SopRegister
(
(
Mem_Flex_t
*
)
p
->
pNtk
->
pManFunc
,
"1 1
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -2027,14 +2056,6 @@ Io_MvVar_t * Abc_NtkMvVarDup( Abc_Ntk_t * pNtk, Io_MvVar_t * pVar )
...
@@ -2027,14 +2056,6 @@ Io_MvVar_t * Abc_NtkMvVarDup( Abc_Ntk_t * pNtk, Io_MvVar_t * pVar )
return
pVarDup
;
return
pVarDup
;
}
}
ABC_NAMESPACE_IMPL_END
#include "map/mio/mio.h"
#include "base/main/main.h"
ABC_NAMESPACE_IMPL_START
/**Function*************************************************************
/**Function*************************************************************
Synopsis []
Synopsis []
...
...
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