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
645752f7
Commit
645752f7
authored
Apr 30, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making sure read_bench can read nodes up to 15 inputs.
parent
9b759067
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/base/io/ioReadBench.c
+2
-2
src/base/io/ioReadBlifMv.c
+4
-3
No files found.
src/base/io/ioReadBench.c
View file @
645752f7
...
...
@@ -88,7 +88,7 @@ Abc_Ntk_t * Io_ReadBenchNetwork( Extra_FileReader_t * p )
Abc_Ntk_t
*
pNtk
;
Abc_Obj_t
*
pNode
,
*
pNet
;
Vec_Str_t
*
vString
;
unsigned
uTruth
[
8
];
unsigned
uTruth
[
204
8
];
char
*
pType
,
**
ppNames
,
*
pString
;
int
iLine
,
nNames
,
nDigits
,
fLutsPresent
=
0
;
...
...
@@ -161,7 +161,7 @@ Abc_Ntk_t * Io_ReadBenchNetwork( Extra_FileReader_t * p )
ppNames
=
(
char
**
)
vTokens
->
pArray
+
3
;
nNames
=
vTokens
->
nSize
-
3
;
// check the number of inputs
if
(
nNames
>
8
)
if
(
nNames
>
15
)
{
printf
(
"%s: Currently cannot read truth tables with more than 8 inputs (%d).
\n
"
,
Extra_FileReaderGetFileName
(
p
),
nNames
);
Vec_StrFree
(
vString
);
...
...
src/base/io/ioReadBlifMv.c
View file @
645752f7
...
...
@@ -1351,7 +1351,8 @@ static int Io_MvParseLineSubckt( Io_MvMod_t * p, char * pLine )
Abc_Ntk_t
*
pModel
;
Abc_Obj_t
*
pBox
,
*
pNet
,
*
pTerm
;
char
*
pToken
,
*
pName
,
*
pName2
,
**
ppNames
;
int
nEquals
,
Last
,
i
,
k
;
int
nEquals
,
i
,
k
;
word
Last
;
// split the line into tokens
nEquals
=
Io_MvCountChars
(
pLine
,
'='
);
...
...
@@ -1404,9 +1405,9 @@ static int Io_MvParseLineSubckt( Io_MvMod_t * p, char * pLine )
pName2
=
NULL
;
pName
=
Abc_ObjName
(
Abc_ObjFanout0
(
pTerm
));
for
(
k
=
0
;
k
<
nEquals
;
k
++
)
if
(
!
strcmp
(
ppNames
[
2
*
((
k
+
Last
)
%
nEquals
)],
pName
)
)
if
(
!
strcmp
(
ppNames
[
2
*
(
int
)(
(
k
+
Last
)
%
nEquals
)],
pName
)
)
{
pName2
=
ppNames
[
2
*
((
k
+
Last
)
%
nEquals
)
+
1
];
pName2
=
ppNames
[
2
*
(
int
)(
(
k
+
Last
)
%
nEquals
)
+
1
];
Last
=
k
+
Last
+
1
;
break
;
}
...
...
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