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
03b9f417
Commit
03b9f417
authored
Dec 02, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in blasting word-level flops.
parent
dfa34cc2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/aig/gia/giaSwitch.c
+8
-0
src/base/wlc/wlcBlast.c
+3
-3
No files found.
src/aig/gia/giaSwitch.c
View file @
03b9f417
...
@@ -795,6 +795,14 @@ float Gia_ManComputeSwitching( Gia_Man_t * p, int nFrames, int nPref, int fProbO
...
@@ -795,6 +795,14 @@ float Gia_ManComputeSwitching( Gia_Man_t * p, int nFrames, int nPref, int fProbO
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
SwiTotal
+=
pSwi
[
Gia_ObjFaninId0
(
pObj
,
i
)]
+
pSwi
[
Gia_ObjFaninId1
(
pObj
,
i
)];
SwiTotal
+=
pSwi
[
Gia_ObjFaninId0
(
pObj
,
i
)]
+
pSwi
[
Gia_ObjFaninId1
(
pObj
,
i
)];
}
}
if
(
0
)
{
Gia_ManForEachObj
(
p
,
pObj
,
i
)
{
printf
(
"Switch %6.2f "
,
pSwi
[
i
]
);
Gia_ObjPrint
(
p
,
pObj
);
}
}
Vec_IntFree
(
vSwitching
);
Vec_IntFree
(
vSwitching
);
return
SwiTotal
;
return
SwiTotal
;
}
}
...
...
src/base/wlc/wlcBlast.c
View file @
03b9f417
...
@@ -1930,9 +1930,9 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
...
@@ -1930,9 +1930,9 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
// create combinational outputs in the normal manager
// create combinational outputs in the normal manager
pFans0
=
Wlc_ObjFaninNum
(
pObj
)
>
0
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId0
(
pObj
))
)
:
NULL
;
pFans0
=
Wlc_ObjFaninNum
(
pObj
)
>
0
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId0
(
pObj
))
)
:
NULL
;
pFans1
=
Wlc_ObjFaninNum
(
pObj
)
>
1
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId1
(
pObj
))
)
:
NULL
;
pFans1
=
Wlc_ObjFaninNum
(
pObj
)
>
2
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId
(
pObj
,
2
))
)
:
NULL
;
// reset
pFans2
=
Wlc_ObjFaninNum
(
pObj
)
>
2
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId2
(
pObj
))
)
:
NULL
;
pFans2
=
Wlc_ObjFaninNum
(
pObj
)
>
3
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId
(
pObj
,
3
))
)
:
NULL
;
// set
pFans3
=
Wlc_ObjFaninNum
(
pObj
)
>
3
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId
(
pObj
,
3
))
)
:
NULL
;
pFans3
=
Wlc_ObjFaninNum
(
pObj
)
>
4
?
Vec_IntEntryP
(
vBits
,
Wlc_ObjCopy
(
p
,
Wlc_ObjFaninId
(
pObj
,
4
))
)
:
NULL
;
// enable
for
(
k
=
0
;
k
<
nRange
;
k
++
)
for
(
k
=
0
;
k
<
nRange
;
k
++
)
Gia_ManAppendCo
(
pNew
,
pFans0
[
k
]
);
Gia_ManAppendCo
(
pNew
,
pFans0
[
k
]
);
Gia_ManAppendCo
(
pNew
,
pFans1
[
0
]
);
Gia_ManAppendCo
(
pNew
,
pFans1
[
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