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
bb3eacf4
Commit
bb3eacf4
authored
Feb 27, 2017
by
Yen-Sheng Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small tweaks
parent
ff745ca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/base/wlc/wlcAbs.c
+6
-6
No files found.
src/base/wlc/wlcAbs.c
View file @
bb3eacf4
...
...
@@ -460,7 +460,7 @@ static int Wlc_NtkUpdateBlacks( Wlc_Ntk_t * p, Wlc_Par_t * pPars, Vec_Int_t ** p
*
pvBlacks
=
vBlacks
;
if
(
pPars
->
fVerbose
)
printf
(
"Abstraction engine marked %d adds/subs, %d muls/divs, %d muxes, and %d flops to be abstracted away.
\n
"
,
Count
[
0
],
Count
[
1
],
Count
[
2
],
Count
[
3
]
);
printf
(
"Abstraction engine marked %d adds/subs, %d muls/divs, %d muxes, and %d flops to be abstracted away.
\n
"
,
Count
[
0
],
Count
[
1
],
Count
[
2
],
Vec_IntSize
(
vBlacks
)
-
Count
[
0
]
-
Count
[
1
]
-
Count
[
2
]
);
return
0
;
}
...
...
@@ -526,13 +526,13 @@ static Vec_Int_t * Wlc_NtkGetBlacks( Wlc_Ntk_t * p, Wlc_Par_t * pPars, Vec_Bit_t
if
(
pObj
->
Type
==
WLC_OBJ_ARI_ADD
||
pObj
->
Type
==
WLC_OBJ_ARI_SUB
||
pObj
->
Type
==
WLC_OBJ_ARI_MINUS
)
{
if
(
Wlc_ObjRange
(
pObj
)
>=
pPars
->
nBitsAdd
)
Vec_IntPush
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
0
]
++
;
Vec_IntPush
UniqueOrder
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
0
]
++
;
continue
;
}
if
(
pObj
->
Type
==
WLC_OBJ_ARI_MULTI
||
pObj
->
Type
==
WLC_OBJ_ARI_DIVIDE
||
pObj
->
Type
==
WLC_OBJ_ARI_REM
||
pObj
->
Type
==
WLC_OBJ_ARI_MODULUS
)
{
if
(
Wlc_ObjRange
(
pObj
)
>=
pPars
->
nBitsMul
)
Vec_IntPush
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
1
]
++
;
Vec_IntPush
UniqueOrder
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
1
]
++
;
continue
;
}
if
(
pObj
->
Type
==
WLC_OBJ_MUX
)
...
...
@@ -540,16 +540,16 @@ static Vec_Int_t * Wlc_NtkGetBlacks( Wlc_Ntk_t * p, Wlc_Par_t * pPars, Vec_Bit_t
if
(
Wlc_ObjRange
(
pObj
)
>=
pPars
->
nBitsMux
)
{
if
(
vMuxMark
==
NULL
)
Vec_IntPush
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
2
]
++
;
Vec_IntPush
UniqueOrder
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
2
]
++
;
else
if
(
Vec_BitEntry
(
vMuxMark
,
i
)
)
Vec_IntPush
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
2
]
++
;
Vec_IntPush
UniqueOrder
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
2
]
++
;
}
continue
;
}
if
(
Wlc_ObjIsCi
(
pObj
)
&&
!
Wlc_ObjIsPi
(
pObj
)
)
{
if
(
Wlc_ObjRange
(
pObj
)
>=
pPars
->
nBitsFlop
)
Vec_IntPush
(
vBlacks
,
Wlc_ObjId
(
p
,
pObj
)
),
Count
[
3
]
++
;
Vec_IntPush
UniqueOrder
(
vBlacks
,
Wlc_ObjId
(
p
,
Wlc_ObjFo2Fi
(
p
,
pObj
)
)
),
Count
[
3
]
++
;
continue
;
}
}
...
...
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