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
c97a9c0d
Commit
c97a9c0d
authored
Mar 09, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to LUT mappers.
parent
024715ed
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
src/aig/gia/giaIf.c
+1
-1
src/base/io/io.c
+4
-0
src/map/if/if.h
+1
-1
src/map/if/ifDsd.c
+4
-6
src/map/if/ifMap.c
+1
-1
No files found.
src/aig/gia/giaIf.c
View file @
c97a9c0d
...
@@ -1193,7 +1193,7 @@ int Gia_ManFromIfLogicFindLut( If_Man_t * pIfMan, Gia_Man_t * pNew, If_Cut_t * p
...
@@ -1193,7 +1193,7 @@ int Gia_ManFromIfLogicFindLut( If_Man_t * pIfMan, Gia_Man_t * pNew, If_Cut_t * p
return
RetValue
;
return
RetValue
;
}
}
// find the bound set
// find the bound set
uSetOld
=
If_DsdManCheckXY
(
pIfMan
->
pIfDsdMan
,
pCutBest
->
iCutDsd
,
nLutSize
,
1
,
0
);
uSetOld
=
If_DsdManCheckXY
(
pIfMan
->
pIfDsdMan
,
pCutBest
->
iCutDsd
,
nLutSize
,
1
,
1
,
0
);
// remap bound set
// remap bound set
uSetNew
=
0
;
uSetNew
=
0
;
for
(
k
=
0
;
k
<
If_CutLeaveNum
(
pCutBest
);
k
++
)
for
(
k
=
0
;
k
<
If_CutLeaveNum
(
pCutBest
);
k
++
)
...
...
src/base/io/io.c
View file @
c97a9c0d
...
@@ -216,6 +216,8 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -216,6 +216,8 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
sprintf
(
Command
,
"read_constr %s"
,
pFileName
);
sprintf
(
Command
,
"read_constr %s"
,
pFileName
);
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"c"
)
)
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"c"
)
)
sprintf
(
Command
,
"so %s"
,
pFileName
);
sprintf
(
Command
,
"so %s"
,
pFileName
);
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"dsd"
)
)
sprintf
(
Command
,
"dsd_load %s"
,
pFileName
);
if
(
Command
[
0
]
)
if
(
Command
[
0
]
)
{
{
Cmd_CommandExecute
(
pAbc
,
Command
);
Cmd_CommandExecute
(
pAbc
,
Command
);
...
@@ -1330,6 +1332,8 @@ int IoCommandWrite( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -1330,6 +1332,8 @@ int IoCommandWrite( Abc_Frame_t * pAbc, int argc, char **argv )
sprintf
(
Command
,
"write_genlib %s"
,
pFileName
);
sprintf
(
Command
,
"write_genlib %s"
,
pFileName
);
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"lib"
)
)
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"lib"
)
)
sprintf
(
Command
,
"write_liberty %s"
,
pFileName
);
sprintf
(
Command
,
"write_liberty %s"
,
pFileName
);
else
if
(
!
strcmp
(
Extra_FileNameExtension
(
pFileName
),
"dsd"
)
)
sprintf
(
Command
,
"dsd_save %s"
,
pFileName
);
if
(
Command
[
0
]
)
if
(
Command
[
0
]
)
{
{
Cmd_CommandExecute
(
pAbc
,
Command
);
Cmd_CommandExecute
(
pAbc
,
Command
);
...
...
src/map/if/if.h
View file @
c97a9c0d
...
@@ -529,7 +529,7 @@ extern char * If_DsdManFileName( If_DsdMan_t * p );
...
@@ -529,7 +529,7 @@ extern char * If_DsdManFileName( If_DsdMan_t * p );
extern
int
If_DsdManVarNum
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManVarNum
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManLutSize
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManLutSize
(
If_DsdMan_t
*
p
);
extern
int
If_DsdManCheckDec
(
If_DsdMan_t
*
p
,
int
iDsd
);
extern
int
If_DsdManCheckDec
(
If_DsdMan_t
*
p
,
int
iDsd
);
extern
unsigned
If_DsdManCheckXY
(
If_DsdMan_t
*
p
,
int
iDsd
,
int
LutSize
,
int
fDerive
,
int
fVerbose
);
extern
unsigned
If_DsdManCheckXY
(
If_DsdMan_t
*
p
,
int
iDsd
,
int
LutSize
,
int
fDerive
,
int
f
HighEffort
,
int
f
Verbose
);
/*=== ifLib.c =============================================================*/
/*=== ifLib.c =============================================================*/
extern
If_LibLut_t
*
If_LibLutRead
(
char
*
FileName
);
extern
If_LibLut_t
*
If_LibLutRead
(
char
*
FileName
);
extern
If_LibLut_t
*
If_LibLutDup
(
If_LibLut_t
*
p
);
extern
If_LibLut_t
*
If_LibLutDup
(
If_LibLut_t
*
p
);
...
...
src/map/if/ifDsd.c
View file @
c97a9c0d
...
@@ -684,7 +684,7 @@ int If_DsdObjCreate( If_DsdMan_t * p, int Type, int * pLits, int nLits, int trut
...
@@ -684,7 +684,7 @@ int If_DsdObjCreate( If_DsdMan_t * p, int Type, int * pLits, int nLits, int trut
}
}
*/
*/
// check decomposability
// check decomposability
if
(
p
->
LutSize
&&
!
If_DsdManCheckXY
(
p
,
Abc_Var2Lit
(
pObj
->
Id
,
0
),
p
->
LutSize
,
0
,
0
)
)
if
(
p
->
LutSize
&&
!
If_DsdManCheckXY
(
p
,
Abc_Var2Lit
(
pObj
->
Id
,
0
),
p
->
LutSize
,
0
,
0
,
0
)
)
If_DsdVecObjSetMark
(
p
->
vObjs
,
pObj
->
Id
);
If_DsdVecObjSetMark
(
p
->
vObjs
,
pObj
->
Id
);
return
pObj
->
Id
;
return
pObj
->
Id
;
}
}
...
@@ -1551,11 +1551,10 @@ unsigned If_DsdManCheckXY_int( If_DsdMan_t * p, int iDsd, int LutSize, int fDeri
...
@@ -1551,11 +1551,10 @@ unsigned If_DsdManCheckXY_int( If_DsdMan_t * p, int iDsd, int LutSize, int fDeri
// If_DsdManPrintOne( stdout, p, Abc_Lit2Var(iDsd), NULL, 1 );
// If_DsdManPrintOne( stdout, p, Abc_Lit2Var(iDsd), NULL, 1 );
return
0
;
return
0
;
}
}
unsigned
If_DsdManCheckXY
(
If_DsdMan_t
*
p
,
int
iDsd
,
int
LutSize
,
int
fDerive
,
int
fVerbose
)
unsigned
If_DsdManCheckXY
(
If_DsdMan_t
*
p
,
int
iDsd
,
int
LutSize
,
int
fDerive
,
int
f
HighEffort
,
int
f
Verbose
)
{
{
unsigned
uSet
=
If_DsdManCheckXY_int
(
p
,
iDsd
,
LutSize
,
fDerive
,
fVerbose
);
unsigned
uSet
=
If_DsdManCheckXY_int
(
p
,
iDsd
,
LutSize
,
fDerive
,
fVerbose
);
/*
if
(
uSet
==
0
&&
fHighEffort
)
if ( uSet == 0 )
{
{
abctime
clk
=
Abc_Clock
();
abctime
clk
=
Abc_Clock
();
int
nVars
=
If_DsdVecLitSuppSize
(
p
->
vObjs
,
iDsd
);
int
nVars
=
If_DsdVecLitSuppSize
(
p
->
vObjs
,
iDsd
);
...
@@ -1569,7 +1568,6 @@ unsigned If_DsdManCheckXY( If_DsdMan_t * p, int iDsd, int LutSize, int fDerive,
...
@@ -1569,7 +1568,6 @@ unsigned If_DsdManCheckXY( If_DsdMan_t * p, int iDsd, int LutSize, int fDerive,
// Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
// Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
p
->
timeCheck2
+=
Abc_Clock
()
-
clk
;
p
->
timeCheck2
+=
Abc_Clock
()
-
clk
;
}
}
*/
return
uSet
;
return
uSet
;
}
}
...
@@ -1698,7 +1696,7 @@ void If_DsdManTune( If_DsdMan_t * p, int LutSize, int fFast, int fAdd, int fSpec
...
@@ -1698,7 +1696,7 @@ void If_DsdManTune( If_DsdMan_t * p, int LutSize, int fFast, int fAdd, int fSpec
if
(
fAdd
&&
!
pObj
->
fMark
)
if
(
fAdd
&&
!
pObj
->
fMark
)
continue
;
continue
;
pObj
->
fMark
=
0
;
pObj
->
fMark
=
0
;
if
(
If_DsdManCheckXY
(
p
,
Abc_Var2Lit
(
i
,
0
),
LutSize
,
0
,
0
)
)
if
(
If_DsdManCheckXY
(
p
,
Abc_Var2Lit
(
i
,
0
),
LutSize
,
0
,
0
,
0
)
)
continue
;
continue
;
if
(
fFast
)
if
(
fFast
)
Value
=
0
;
Value
=
0
;
...
...
src/map/if/ifMap.c
View file @
c97a9c0d
...
@@ -313,7 +313,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
...
@@ -313,7 +313,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
z = If_Dec6Perform( t, 1 );
z = If_Dec6Perform( t, 1 );
If_DecPrintConfig( z );
If_DecPrintConfig( z );
s = If_DsdManCheckXY( p->pIfDsdMan, pCut->iCutDsd, 4, 0, 1 );
s = If_DsdManCheckXY( p->pIfDsdMan, pCut->iCutDsd, 4, 0,
0,
1 );
printf( "Confirm %d\n", s );
printf( "Confirm %d\n", s );
s = 0;
s = 0;
}
}
...
...
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