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
1ba9536c
Commit
1ba9536c
authored
Sep 27, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with LUT structure mapping.
parent
1ba16ff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/aig/gia/giaOf.c
+3
-3
No files found.
src/aig/gia/giaOf.c
View file @
1ba9536c
...
@@ -120,8 +120,8 @@ static inline void Of_CutSetDelay2( int * pCut, int d )
...
@@ -120,8 +120,8 @@ static inline void Of_CutSetDelay2( int * pCut, int d )
static
inline
int
Of_CutVar
(
int
*
pCut
,
int
v
)
{
return
Abc_Lit2Var
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
int
Of_CutVar
(
int
*
pCut
,
int
v
)
{
return
Abc_Lit2Var
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
int
Of_CutFlag
(
int
*
pCut
,
int
v
)
{
return
Abc_LitIsCompl
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
int
Of_CutFlag
(
int
*
pCut
,
int
v
)
{
return
Abc_LitIsCompl
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
int
Of_CutCleanFlag
(
int
*
pCut
,
int
v
)
{
Of_CutLeaves
(
pCut
)[
v
]
=
Abc_LitRegular
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
void
Of_CutCleanFlag
(
int
*
pCut
,
int
v
)
{
Of_CutLeaves
(
pCut
)[
v
]
=
Abc_LitRegular
(
Of_CutLeaves
(
pCut
)[
v
]);
}
static
inline
int
Of_CutSetFlag
(
int
*
pCut
,
int
v
)
{
Of_CutLeaves
(
pCut
)[
v
]
|=
1
;
}
static
inline
void
Of_CutSetFlag
(
int
*
pCut
,
int
v
)
{
Of_CutLeaves
(
pCut
)[
v
]
|=
1
;
}
#define Of_SetForEachCut( pList, pCut, i ) for ( i = 0, pCut = pList + 1; i < pList[0]; i++, pCut += Of_CutSize(pCut) + OF_CUT_EXTRA )
#define Of_SetForEachCut( pList, pCut, i ) for ( i = 0, pCut = pList + 1; i < pList[0]; i++, pCut += Of_CutSize(pCut) + OF_CUT_EXTRA )
#define Of_ObjForEachCut( pCuts, i, nCuts ) for ( i = 0, i < nCuts; i++ )
#define Of_ObjForEachCut( pCuts, i, nCuts ) for ( i = 0, i < nCuts; i++ )
...
@@ -829,7 +829,7 @@ void Of_ManCutMatch( Of_Man_t * p, int iObj, int * pCut, int * pDelay1, int * pD
...
@@ -829,7 +829,7 @@ void Of_ManCutMatch( Of_Man_t * p, int iObj, int * pCut, int * pDelay1, int * pD
int
Delays
[
6
],
Perm
[
6
];
int
Delays
[
6
],
Perm
[
6
];
int
DelayLut1
=
p
->
pPars
->
nDelayLut1
;
int
DelayLut1
=
p
->
pPars
->
nDelayLut1
;
int
DelayLut2
=
p
->
pPars
->
nDelayLut2
;
int
DelayLut2
=
p
->
pPars
->
nDelayLut2
;
int
k
,
iVar
,
Flag
,
Delay
,
DelayMax
=
0
;
int
k
,
iVar
,
Flag
,
Delay
;
Of_CutForEachVarFlag
(
pCut
,
iVar
,
Flag
,
k
)
Of_CutForEachVarFlag
(
pCut
,
iVar
,
Flag
,
k
)
{
{
Delays
[
k
]
=
Of_ObjDelay1
(
p
,
iVar
)
+
DelayLut1
;
Delays
[
k
]
=
Of_ObjDelay1
(
p
,
iVar
)
+
DelayLut1
;
...
...
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