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
734435f4
Commit
734435f4
authored
Oct 04, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deriving cell mapping with &if -kz.
parent
24083998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/base/abci/abc.c
+6
-1
src/map/if/ifDsd.c
+9
-2
No files found.
src/base/abci/abc.c
View file @
734435f4
...
...
@@ -15426,6 +15426,11 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"LUT size (%d) is more than the number of variables in the DSD manager (%d).
\n
"
,
pPars
->
nLutSize
,
If_DsdManVarNum
(
pDsdMan
)
);
return
1
;
}
if
(
pPars
->
fDeriveLuts
&&
If_DsdManGetCellStr
(
pDsdMan
)
==
NULL
)
{
Abc_Print
(
-
1
,
"DSD manager is not matched with any particular cell.
\n
"
);
return
1
;
}
pPars
->
fCutMin
=
1
;
pPars
->
fUseDsd
=
1
;
If_DsdManSetNewAsUseless
(
pDsdMan
);
...
...
@@ -16143,7 +16148,7 @@ int Abc_CommandDsdMatch( Abc_Frame_t * pAbc, int argc, char ** argv )
char
*
pStructCur
=
If_DsdManGetCellStr
(
pDsdMan
);
if
(
pStructCur
&&
strcmp
(
pStructCur
,
pStruct
)
)
{
Abc_Print
(
-
1
,
"DSD manager matched with cell %s
needs to be cleaned
before matching with cell %s.
\n
"
,
pStructCur
,
pStruct
);
Abc_Print
(
-
1
,
"DSD manager matched with cell %s
should be cleaned by
\"
dsd_filter -m
\"
before matching with cell %s.
\n
"
,
pStructCur
,
pStruct
);
return
0
;
}
Id_DsdManTuneStr
(
pDsdMan
,
pStruct
,
nConfls
,
nProcs
,
fVerbose
);
src/map/if/ifDsd.c
View file @
734435f4
...
...
@@ -1160,13 +1160,13 @@ If_DsdMan_t * If_DsdManLoad( char * pFileName )
}
ABC_FREE
(
pTruth
);
RetValue
=
fread
(
&
Num
,
4
,
1
,
pFile
);
if
(
Num
)
if
(
RetValue
&&
Num
)
{
p
->
vPerms
=
Vec_WrdStart
(
Num
);
RetValue
=
fread
(
Vec_WrdArray
(
p
->
vPerms
),
sizeof
(
word
)
*
Num
,
1
,
pFile
);
}
RetValue
=
fread
(
&
Num
,
4
,
1
,
pFile
);
if
(
Num
)
if
(
RetValue
&&
Num
)
{
p
->
pCellStr
=
ABC_CALLOC
(
char
,
Num
+
1
);
RetValue
=
fread
(
p
->
pCellStr
,
sizeof
(
char
)
*
Num
,
1
,
pFile
);
...
...
@@ -1196,6 +1196,8 @@ void If_DsdManMerge( If_DsdMan_t * p, If_DsdMan_t * pNew )
vMap
=
Vec_IntAlloc
(
Vec_PtrSize
(
&
pNew
->
vObjs
)
);
Vec_IntPush
(
vMap
,
0
);
Vec_IntPush
(
vMap
,
1
);
if
(
p
->
vPerms
&&
pNew
->
vPerms
)
Vec_WrdFillExtra
(
p
->
vPerms
,
Vec_PtrSize
(
&
p
->
vObjs
)
+
Vec_PtrSize
(
&
pNew
->
vObjs
),
0
);
If_DsdVecForEachNode
(
&
pNew
->
vObjs
,
pObj
,
i
)
{
If_DsdObjForEachFaninLit
(
&
pNew
->
vObjs
,
pObj
,
iFanin
,
k
)
...
...
@@ -1203,10 +1205,14 @@ void If_DsdManMerge( If_DsdMan_t * p, If_DsdMan_t * pNew )
Id
=
If_DsdObjFindOrAdd
(
p
,
pObj
->
Type
,
pFanins
,
pObj
->
nFans
,
pObj
->
Type
==
IF_DSD_PRIME
?
If_DsdObjTruth
(
pNew
,
pObj
)
:
NULL
);
if
(
pObj
->
fMark
)
If_DsdVecObjSetMark
(
&
p
->
vObjs
,
Id
);
if
(
p
->
vPerms
&&
pNew
->
vPerms
&&
i
<
Vec_WrdSize
(
pNew
->
vPerms
)
)
Vec_WrdFillExtra
(
p
->
vPerms
,
Id
,
Vec_WrdEntry
(
pNew
->
vPerms
,
i
)
);
Vec_IntPush
(
vMap
,
Id
);
}
assert
(
Vec_IntSize
(
vMap
)
==
Vec_PtrSize
(
&
pNew
->
vObjs
)
);
Vec_IntFree
(
vMap
);
if
(
p
->
vPerms
&&
pNew
->
vPerms
)
Vec_WrdShrink
(
p
->
vPerms
,
Vec_PtrSize
(
&
p
->
vObjs
)
);
}
void
If_DsdManCleanOccur
(
If_DsdMan_t
*
p
,
int
fVerbose
)
{
...
...
@@ -1220,6 +1226,7 @@ void If_DsdManCleanMarks( If_DsdMan_t * p, int fVerbose )
If_DsdObj_t
*
pObj
;
int
i
;
ABC_FREE
(
p
->
pCellStr
);
Vec_WrdFreeP
(
&
p
->
vPerms
);
If_DsdVecForEachObj
(
&
p
->
vObjs
,
pObj
,
i
)
pObj
->
fMark
=
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