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
ff997b1b
Commit
ff997b1b
authored
Mar 09, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to LUT mappers.
parent
c97a9c0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
src/base/abci/abc.c
+46
-0
src/map/if/if.h
+1
-0
src/map/if/ifDsd.c
+7
-0
No files found.
src/base/abci/abc.c
View file @
ff997b1b
...
@@ -238,6 +238,7 @@ static int Abc_CommandDsdFree ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -238,6 +238,7 @@ static int Abc_CommandDsdFree ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandDsdPs
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdPs
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdTune
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdTune
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdMerge
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdMerge
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandDsdClean
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandScut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandScut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandInit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandInit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -799,6 +800,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -799,6 +800,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_ps"
,
Abc_CommandDsdPs
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_ps"
,
Abc_CommandDsdPs
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_tune"
,
Abc_CommandDsdTune
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_tune"
,
Abc_CommandDsdTune
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_merge"
,
Abc_CommandDsdMerge
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_merge"
,
Abc_CommandDsdMerge
,
0
);
Cmd_CommandAdd
(
pAbc
,
"DSD manager"
,
"dsd_clean"
,
Abc_CommandDsdClean
,
0
);
// Cmd_CommandAdd( pAbc, "Sequential", "scut", Abc_CommandScut, 0 );
// Cmd_CommandAdd( pAbc, "Sequential", "scut", Abc_CommandScut, 0 );
Cmd_CommandAdd
(
pAbc
,
"Sequential"
,
"init"
,
Abc_CommandInit
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Sequential"
,
"init"
,
Abc_CommandInit
,
1
);
...
@@ -15737,6 +15739,50 @@ usage:
...
@@ -15737,6 +15739,50 @@ usage:
return
1
;
return
1
;
}
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandDsdClean
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
!
Abc_FrameReadManDsd
()
)
{
Abc_Print
(
1
,
"The DSD manager is not started.
\n
"
);
return
0
;
}
If_DsdManClean
(
(
If_DsdMan_t
*
)
Abc_FrameReadManDsd
(),
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: dsd_clean [-K num] [-vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
cleans the occurrence counters
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
/**Function*************************************************************
/**Function*************************************************************
src/map/if/if.h
View file @
ff997b1b
...
@@ -524,6 +524,7 @@ extern void If_DsdManFree( If_DsdMan_t * p, int fVerbose );
...
@@ -524,6 +524,7 @@ extern void If_DsdManFree( If_DsdMan_t * p, int fVerbose );
extern
void
If_DsdManSave
(
If_DsdMan_t
*
p
,
char
*
pFileName
);
extern
void
If_DsdManSave
(
If_DsdMan_t
*
p
,
char
*
pFileName
);
extern
If_DsdMan_t
*
If_DsdManLoad
(
char
*
pFileName
);
extern
If_DsdMan_t
*
If_DsdManLoad
(
char
*
pFileName
);
extern
void
If_DsdManMerge
(
If_DsdMan_t
*
p
,
If_DsdMan_t
*
pNew
);
extern
void
If_DsdManMerge
(
If_DsdMan_t
*
p
,
If_DsdMan_t
*
pNew
);
extern
void
If_DsdManClean
(
If_DsdMan_t
*
p
,
int
fVerbose
);
extern
int
If_DsdManCompute
(
If_DsdMan_t
*
p
,
word
*
pTruth
,
int
nLeaves
,
unsigned
char
*
pPerm
,
char
*
pLutStruct
);
extern
int
If_DsdManCompute
(
If_DsdMan_t
*
p
,
word
*
pTruth
,
int
nLeaves
,
unsigned
char
*
pPerm
,
char
*
pLutStruct
);
extern
char
*
If_DsdManFileName
(
If_DsdMan_t
*
p
);
extern
char
*
If_DsdManFileName
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManVarNum
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManVarNum
(
If_DsdMan_t
*
p
);
...
...
src/map/if/ifDsd.c
View file @
ff997b1b
...
@@ -860,6 +860,13 @@ void If_DsdManMerge( If_DsdMan_t * p, If_DsdMan_t * pNew )
...
@@ -860,6 +860,13 @@ void If_DsdManMerge( If_DsdMan_t * p, If_DsdMan_t * pNew )
assert
(
Vec_IntSize
(
vMap
)
==
Vec_PtrSize
(
pNew
->
vObjs
)
);
assert
(
Vec_IntSize
(
vMap
)
==
Vec_PtrSize
(
pNew
->
vObjs
)
);
Vec_IntFree
(
vMap
);
Vec_IntFree
(
vMap
);
}
}
void
If_DsdManClean
(
If_DsdMan_t
*
p
,
int
fVerbose
)
{
If_DsdObj_t
*
pObj
;
int
i
;
If_DsdVecForEachObj
(
p
->
vObjs
,
pObj
,
i
)
pObj
->
Count
=
0
;
}
/**Function*************************************************************
/**Function*************************************************************
...
...
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