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
3c3a770a
Commit
3c3a770a
authored
Jun 16, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New multi-output PLA reader and preprocessor (read_plamo) (added dist-1 merge).
parent
e06c04a3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/base/io/io.c
+9
-5
src/base/io/ioReadPlaMo.c
+0
-0
No files found.
src/base/io/io.c
View file @
3c3a770a
...
...
@@ -1043,14 +1043,17 @@ usage:
***********************************************************************/
int
IoCommandReadPlaMo
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Abc_Ntk_t
*
Mop_ManTest
(
char
*
pFileName
,
int
fVerbose
);
extern
Abc_Ntk_t
*
Mop_ManTest
(
char
*
pFileName
,
int
f
Merge
,
int
f
Verbose
);
Abc_Ntk_t
*
pNtk
;
int
c
,
fVerbose
=
0
;
int
c
,
f
Merge
=
0
,
f
Verbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
m
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'm'
:
fMerge
^=
1
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -1063,7 +1066,7 @@ int IoCommandReadPlaMo( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
argc
!=
globalUtilOptind
+
1
)
goto
usage
;
// get the input file name
pNtk
=
Mop_ManTest
(
argv
[
globalUtilOptind
],
fVerbose
);
pNtk
=
Mop_ManTest
(
argv
[
globalUtilOptind
],
f
Merge
,
f
Verbose
);
if
(
pNtk
==
NULL
)
return
1
;
// replace the current network
...
...
@@ -1072,8 +1075,9 @@ int IoCommandReadPlaMo( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
fprintf
(
pAbc
->
Err
,
"usage: read_plamo [-vh] <file>
\n
"
);
fprintf
(
pAbc
->
Err
,
"usage: read_plamo [-
m
vh] <file>
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
reads the network in multi-output PLA
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
-m : toggle dist-1 merge for cubes with identical outputs [default = %s]
\n
"
,
fMerge
?
"yes"
:
"no"
);
fprintf
(
pAbc
->
Err
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
fprintf
(
pAbc
->
Err
,
"
\t
-h : prints the command summary
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
file : the name of a file to read
\n
"
);
...
...
src/base/io/ioReadPlaMo.c
View file @
3c3a770a
This diff is collapsed.
Click to expand it.
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