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
6eee09c5
Commit
6eee09c5
authored
Nov 29, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added switch -y to control blasting divide-by-zero condition.
parent
fa87d16b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
src/base/wlc/wlc.h
+2
-0
src/base/wlc/wlcBlast.c
+1
-1
src/base/wlc/wlcCom.c
+6
-2
No files found.
src/base/wlc/wlc.h
View file @
6eee09c5
...
...
@@ -217,6 +217,7 @@ struct Wlc_BstPar_t_
int
fBooth
;
int
fNonRest
;
int
fCla
;
int
fDivBy0
;
int
fNoCleanup
;
int
fCreateMiter
;
int
fCreateWordMiter
;
...
...
@@ -238,6 +239,7 @@ static inline void Wlc_BstParDefault( Wlc_BstPar_t * pPar )
pPar
->
fMulti
=
0
;
pPar
->
fBooth
=
0
;
pPar
->
fCla
=
0
;
pPar
->
fDivBy0
=
0
;
pPar
->
fCreateMiter
=
0
;
pPar
->
fCreateWordMiter
=
0
;
pPar
->
fDecMuxes
=
0
;
...
...
src/base/wlc/wlcBlast.c
View file @
6eee09c5
...
...
@@ -1815,7 +1815,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
else
Wlc_BlastDivider
(
pNew
,
pArg0
,
nRangeMax
,
pArg1
,
nRangeMax
,
pObj
->
Type
==
WLC_OBJ_ARI_DIVIDE
,
vRes
);
Vec_IntShrink
(
vRes
,
nRange
);
//if ( pObj->Type == WLC_OBJ_ARI_DIVIDE
)
if
(
!
pPar
->
fDivBy0
)
Wlc_BlastZeroCondition
(
pNew
,
pFans1
,
nRange1
,
vRes
);
}
else
if
(
pObj
->
Type
==
WLC_OBJ_ARI_MINUS
)
...
...
src/base/wlc/wlcCom.c
View file @
6eee09c5
...
...
@@ -1037,7 +1037,7 @@ int Abc_CommandBlast( Abc_Frame_t * pAbc, int argc, char ** argv )
Wlc_BstParDefault
(
pPar
);
pPar
->
nOutputRange
=
2
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"ORAMcombqadestnizvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"ORAMcombqa
y
destnizvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -1103,6 +1103,9 @@ int Abc_CommandBlast( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'a'
:
pPar
->
fCla
^=
1
;
break
;
case
'y'
:
pPar
->
fDivBy0
^=
1
;
break
;
case
'd'
:
pPar
->
fCreateMiter
^=
1
;
break
;
...
...
@@ -1198,7 +1201,7 @@ int Abc_CommandBlast( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_FrameUpdateGia
(
pAbc
,
pNew
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: %%blast [-ORAM num] [-combqadestnizvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: %%blast [-ORAM num] [-combqa
y
destnizvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs bit-blasting of the word-level design
\n
"
);
Abc_Print
(
-
2
,
"
\t
-O num : zero-based index of the first word-level PO to bit-blast [default = %d]
\n
"
,
pPar
->
iOutput
);
Abc_Print
(
-
2
,
"
\t
-R num : the total number of word-level POs to bit-blast [default = %d]
\n
"
,
pPar
->
nOutputRange
);
...
...
@@ -1210,6 +1213,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-b : toggle generating radix-4 Booth multipliers [default = %s]
\n
"
,
pPar
->
fBooth
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-q : toggle generating non-restoring square root [default = %s]
\n
"
,
pPar
->
fNonRest
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-a : toggle generating carry-look-ahead adder [default = %s]
\n
"
,
pPar
->
fCla
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-y : toggle creating different divide-by-0 condition [default = %s]
\n
"
,
pPar
->
fDivBy0
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual-output multi-output miter [default = %s]
\n
"
,
pPar
->
fCreateMiter
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-e : toggle creating miter with output word bits combined [default = %s]
\n
"
,
pPar
->
fCreateWordMiter
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle creating decoded MUXes [default = %s]
\n
"
,
pPar
->
fDecMuxes
?
"yes"
:
"no"
);
...
...
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