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
68d360c2
Commit
68d360c2
authored
Oct 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move truth table code into a separte file.
parent
f5a8cf99
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
303 deletions
+12
-303
abclib.dsp
+4
-0
src/base/abci/abcRec3.c
+1
-42
src/map/if/if.h
+1
-1
src/map/if/ifTruth.c
+6
-260
src/misc/util/utilTruth.h
+0
-0
No files found.
abclib.dsp
View file @
68d360c2
...
@@ -2709,6 +2709,10 @@ SOURCE=.\src\misc\util\utilSignal.h
...
@@ -2709,6 +2709,10 @@ SOURCE=.\src\misc\util\utilSignal.h
SOURCE=.\src\misc\util\utilSort.c
SOURCE=.\src\misc\util\utilSort.c
# End Source File
# End Source File
# Begin Source File
SOURCE=.\src\misc\util\utilTruth.h
# End Source File
# End Group
# End Group
# Begin Group "nm"
# Begin Group "nm"
...
...
src/base/abci/abcRec3.c
View file @
68d360c2
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "aig/gia/giaAig.h"
#include "aig/gia/giaAig.h"
#include "misc/vec/vecMem.h"
#include "misc/vec/vecMem.h"
#include "bool/lucky/lucky.h"
#include "bool/lucky/lucky.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -407,48 +408,6 @@ void Lms_GiaProfilesPrint( Gia_Man_t * p )
...
@@ -407,48 +408,6 @@ void Lms_GiaProfilesPrint( Gia_Man_t * p )
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Stretch truthtable to have more input variables.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static
void
Abc_TtStretch5
(
unsigned
*
pInOut
,
int
nVarS
,
int
nVarB
)
{
int
w
,
i
,
step
,
nWords
;
if
(
nVarS
==
nVarB
)
return
;
assert
(
nVarS
<
nVarB
);
step
=
Abc_TruthWordNum
(
nVarS
);
nWords
=
Abc_TruthWordNum
(
nVarB
);
if
(
step
==
nWords
)
return
;
assert
(
step
<
nWords
);
for
(
w
=
0
;
w
<
nWords
;
w
+=
step
)
for
(
i
=
0
;
i
<
step
;
i
++
)
pInOut
[
w
+
i
]
=
pInOut
[
i
];
}
static
void
Abc_TtStretch6
(
word
*
pInOut
,
int
nVarS
,
int
nVarB
)
{
int
w
,
i
,
step
,
nWords
;
if
(
nVarS
==
nVarB
)
return
;
assert
(
nVarS
<
nVarB
);
step
=
Abc_Truth6WordNum
(
nVarS
);
nWords
=
Abc_Truth6WordNum
(
nVarB
);
if
(
step
==
nWords
)
return
;
assert
(
step
<
nWords
);
for
(
w
=
0
;
w
<
nWords
;
w
+=
step
)
for
(
i
=
0
;
i
<
step
;
i
++
)
pInOut
[
w
+
i
]
=
pInOut
[
i
];
}
/**Function*************************************************************
Synopsis [Compute support sizes for each CO.]
Synopsis [Compute support sizes for each CO.]
Description []
Description []
...
...
src/map/if/if.h
View file @
68d360c2
...
@@ -535,7 +535,7 @@ extern void If_ObjPrint( If_Obj_t * pObj );
...
@@ -535,7 +535,7 @@ extern void If_ObjPrint( If_Obj_t * pObj );
/*=== abcRec3.c ============================================================*/
/*=== abcRec3.c ============================================================*/
extern
int
If_CutDelayRecCost
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost2
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost2
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost
2
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
int
If_CutDelayRecCost
3
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
If_Obj_t
*
pObj
);
extern
ABC_DLL
int
Abc_NtkRecIsRunning
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning2
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning2
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning3
();
extern
ABC_DLL
int
Abc_NtkRecIsRunning3
();
...
...
src/map/if/ifTruth.c
View file @
68d360c2
This diff is collapsed.
Click to expand it.
src/misc/util/utilTruth.h
0 → 100644
View file @
68d360c2
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