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
ed1bf000
Commit
ed1bf000
authored
Sep 30, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to bit-blaster.
parent
69519f86
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
src/base/cmd/cmd.c
+3
-2
src/base/wlc/wlcBlast.c
+0
-0
src/base/wlc/wlcNtk.c
+6
-1
src/misc/extra/extraBddKmap.c
+2
-0
No files found.
src/base/cmd/cmd.c
View file @
ed1bf000
...
@@ -1440,11 +1440,12 @@ int CmdCommandRenameFiles( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -1440,11 +1440,12 @@ int CmdCommandRenameFiles( Abc_Frame_t * pAbc, int argc, char **argv )
// sort by number
// sort by number
pOrder
=
Abc_QuickSortCost
(
Vec_IntArray
(
vNums
),
Vec_IntSize
(
vNums
),
0
);
pOrder
=
Abc_QuickSortCost
(
Vec_IntArray
(
vNums
),
Vec_IntSize
(
vNums
),
0
);
// rename files in that order
// rename files in that order
nDigits
=
Abc_Base10Log
(
nBase
+
Vec_IntSize
(
vNums
)
);
// nDigits = Abc_Base10Log( nBase + Vec_IntSize(vNums) );
nDigits
=
Abc_Base10Log
(
nBase
+
Vec_IntEntry
(
vNums
,
pOrder
[
Vec_IntSize
(
vNums
)
-
1
])
+
1
);
for
(
i
=
0
;
i
<
Vec_IntSize
(
vNums
);
i
++
)
for
(
i
=
0
;
i
<
Vec_IntSize
(
vNums
);
i
++
)
{
{
pOldName
=
(
char
*
)
Vec_PtrEntry
(
vNames
,
pOrder
[
i
]
);
pOldName
=
(
char
*
)
Vec_PtrEntry
(
vNames
,
pOrder
[
i
]
);
sprintf
(
pNewName
,
"%s%0*d.%s"
,
pNameNew
?
pNameNew
:
""
,
nDigits
,
nBase
+
i
,
pNameExt
);
sprintf
(
pNewName
,
"%s%0*d.%s"
,
pNameNew
?
pNameNew
:
""
,
nDigits
,
nBase
+
Vec_IntEntry
(
vNums
,
pOrder
[
i
])
,
pNameExt
);
printf
(
"%s -> %s
\n
"
,
pOldName
,
pNewName
);
printf
(
"%s -> %s
\n
"
,
pOldName
,
pNewName
);
rename
(
pOldName
,
pNewName
);
rename
(
pOldName
,
pNewName
);
}
}
...
...
src/base/wlc/wlcBlast.c
View file @
ed1bf000
This diff is collapsed.
Click to expand it.
src/base/wlc/wlcNtk.c
View file @
ed1bf000
...
@@ -295,8 +295,13 @@ void Wlc_NtkPrintDistrib( Wlc_Ntk_t * p, int fVerbose )
...
@@ -295,8 +295,13 @@ void Wlc_NtkPrintDistrib( Wlc_Ntk_t * p, int fVerbose )
pObj
->
Type
==
WLC_OBJ_BIT_NOT
||
pObj
->
Type
==
WLC_OBJ_LOGIC_NOT
||
pObj
->
Type
==
WLC_OBJ_ARI_MINUS
)
pObj
->
Type
==
WLC_OBJ_BIT_NOT
||
pObj
->
Type
==
WLC_OBJ_LOGIC_NOT
||
pObj
->
Type
==
WLC_OBJ_ARI_MINUS
)
Sign
=
Wlc_NtkPrintDistribMakeSign
(
Wlc_ObjSign
(
pObj
),
Wlc_ObjSign
(
Wlc_ObjFanin0
(
p
,
pObj
)),
0
);
Sign
=
Wlc_NtkPrintDistribMakeSign
(
Wlc_ObjSign
(
pObj
),
Wlc_ObjSign
(
Wlc_ObjFanin0
(
p
,
pObj
)),
0
);
// 2-input types (including MUX)
// 2-input types (including MUX)
else
else
if
(
Wlc_ObjFaninNum
(
pObj
)
==
1
)
Sign
=
Wlc_NtkPrintDistribMakeSign
(
Wlc_ObjSign
(
pObj
),
Wlc_ObjSign
(
Wlc_ObjFanin0
(
p
,
pObj
)),
0
);
else
{
assert
(
Wlc_ObjFaninNum
(
pObj
)
>=
2
);
Sign
=
Wlc_NtkPrintDistribMakeSign
(
Wlc_ObjSign
(
pObj
),
Wlc_ObjSign
(
Wlc_ObjFanin0
(
p
,
pObj
)),
Wlc_ObjSign
(
Wlc_ObjFanin1
(
p
,
pObj
))
);
Sign
=
Wlc_NtkPrintDistribMakeSign
(
Wlc_ObjSign
(
pObj
),
Wlc_ObjSign
(
Wlc_ObjFanin0
(
p
,
pObj
)),
Wlc_ObjSign
(
Wlc_ObjFanin1
(
p
,
pObj
))
);
}
// add to storage
// add to storage
Wlc_NtkPrintDistribAddOne
(
vTypes
,
vOccurs
,
pObj
->
Type
,
Sign
);
Wlc_NtkPrintDistribAddOne
(
vTypes
,
vOccurs
,
pObj
->
Type
,
Sign
);
}
}
...
...
src/misc/extra/extraBddKmap.c
View file @
ed1bf000
...
@@ -222,6 +222,8 @@ void Extra_PrintKMap(
...
@@ -222,6 +222,8 @@ void Extra_PrintKMap(
fprintf
(
Output
,
"PrintKMap(): The on-set and the off-set overlap
\n
"
);
fprintf
(
Output
,
"PrintKMap(): The on-set and the off-set overlap
\n
"
);
return
;
return
;
}
}
if
(
nVars
==
0
)
{
printf
(
"Function is constant %d.
\n
"
,
!
Cudd_IsComplement
(
OnSet
)
);
return
;
}
// print truth table for debugging
// print truth table for debugging
if
(
fPrintTruth
)
if
(
fPrintTruth
)
...
...
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