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
71a52ae9
Commit
71a52ae9
authored
Nov 10, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming command 'detect' to be 'faultclasses'.
parent
460a5700
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
src/base/abci/abc.c
+11
-9
src/base/abci/abcDetect.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
71a52ae9
...
@@ -134,7 +134,7 @@ static int Abc_CommandRr ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -134,7 +134,7 @@ static int Abc_CommandRr ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandCascade
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCascade
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandExtract
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandExtract
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandVarMin
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandVarMin
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_Command
Detect
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_Command
FaultClasses
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandExact
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandExact
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandBmsStart
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandBmsStart
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandBmsStop
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandBmsStop
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -778,7 +778,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -778,7 +778,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"cascade"
,
Abc_CommandCascade
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"cascade"
,
Abc_CommandCascade
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"extract"
,
Abc_CommandExtract
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"extract"
,
Abc_CommandExtract
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"varmin"
,
Abc_CommandVarMin
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"varmin"
,
Abc_CommandVarMin
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"
detect"
,
Abc_CommandDetect
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"
faultclasses"
,
Abc_CommandFaultClasses
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"exact"
,
Abc_CommandExact
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"exact"
,
Abc_CommandExact
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Exact synthesis"
,
"bms_start"
,
Abc_CommandBmsStart
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Exact synthesis"
,
"bms_start"
,
Abc_CommandBmsStart
,
0
);
...
@@ -7235,7 +7235,7 @@ usage:
...
@@ -7235,7 +7235,7 @@ usage:
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
int
Abc_Command
Detect
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_Command
FaultClasses
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
extern
void
Abc_NtkDetectClassesTest
(
Abc_Ntk_t
*
pNtk
,
int
fSeq
,
int
fVerbose
,
int
fVeryVerbose
);
extern
void
Abc_NtkDetectClassesTest
(
Abc_Ntk_t
*
pNtk
,
int
fSeq
,
int
fVerbose
,
int
fVeryVerbose
);
extern
void
Abc_NtkGenFaultList
(
Abc_Ntk_t
*
pNtk
,
char
*
pFileName
);
extern
void
Abc_NtkGenFaultList
(
Abc_Ntk_t
*
pNtk
,
char
*
pFileName
);
...
@@ -7285,12 +7285,14 @@ int Abc_CommandDetect( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -7285,12 +7285,14 @@ int Abc_CommandDetect( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: detect [-gsvwh]
\n
"
);
Abc_Print
(
-
2
,
"usage: faultclasses [-gsvwh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
detects properties of internal nodes
\n
"
);
Abc_Print
(
-
2
,
"
\t
computes equivalence classes of faults in the given mapped netlist;
\n
"
);
Abc_Print
(
-
2
,
"
\t
-g : toggle generating fault list for the given network [default = %s]
\n
"
,
fGen
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
the fault list with faults in the format: <fault_id> <node_name> <fault_name>
\n
"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle using sequential circuit information [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
should be read by command
\"
read_fins
\"
before calling this command
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-g : toggle generating a fault list for the current mapped network [default = %s]
\n
"
,
fGen
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing equivalence classes [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle detecting sequential equivalence classes [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout during computation [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing of resulting fault equivalence classes [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
return
1
;
}
}
src/base/abci/abcDetect.c
View file @
71a52ae9
...
@@ -233,7 +233,7 @@ Vec_Int_t * Io_ReadFins( Abc_Ntk_t * pNtk, char * pFileName, int fVerbose )
...
@@ -233,7 +233,7 @@ Vec_Int_t * Io_ReadFins( Abc_Ntk_t * pNtk, char * pFileName, int fVerbose )
Vec_IntPushTwo
(
vPairs
,
Vec_IntEntry
(
vMap
,
iObj
),
Type
);
Vec_IntPushTwo
(
vPairs
,
Vec_IntEntry
(
vMap
,
iObj
),
Type
);
}
}
assert
(
Vec_IntSize
(
vPairs
)
==
2
*
nLines
);
assert
(
Vec_IntSize
(
vPairs
)
==
2
*
nLines
);
printf
(
"Finished reading %d lines
.
\n
"
,
nLines
-
1
);
printf
(
"Finished reading %d lines
from the fault list file
\"
%s
\"
.
\n
"
,
nLines
-
1
,
pFileName
);
// verify the reader by printing the results
// verify the reader by printing the results
if
(
fVerbose
)
if
(
fVerbose
)
...
...
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