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
dbc5f8a3
Commit
dbc5f8a3
authored
Oct 21, 2021
by
Maciej Kurc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added including unconnected carry-outs in the carry-chain connection list.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
parent
456e381a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletions
+24
-1
src/aig/gia/giaSweep.c
+24
-1
No files found.
src/aig/gia/giaSweep.c
View file @
dbc5f8a3
...
@@ -388,6 +388,14 @@ Vec_Int_t * Gia_ManComputeCarryOuts( Gia_Man_t * p )
...
@@ -388,6 +388,14 @@ Vec_Int_t * Gia_ManComputeCarryOuts( Gia_Man_t * p )
Tim_Man_t
*
pManTime
=
(
Tim_Man_t
*
)
p
->
pManTime
;
Tim_Man_t
*
pManTime
=
(
Tim_Man_t
*
)
p
->
pManTime
;
int
i
,
iLast
,
iBox
,
nBoxes
=
Tim_ManBoxNum
(
pManTime
);
int
i
,
iLast
,
iBox
,
nBoxes
=
Tim_ManBoxNum
(
pManTime
);
Vec_Int_t
*
vCarryOuts
=
Vec_IntAlloc
(
nBoxes
);
Vec_Int_t
*
vCarryOuts
=
Vec_IntAlloc
(
nBoxes
);
// Create and populare reference count (and free later) only if not already
// done.
int
createRefs
=
(
p
->
pRefs
==
NULL
);
if
(
createRefs
)
{
Gia_ManCreateRefs
(
p
);
}
for
(
i
=
0
;
i
<
nBoxes
;
i
++
)
for
(
i
=
0
;
i
<
nBoxes
;
i
++
)
{
{
iLast
=
Tim_ManBoxInputLast
(
pManTime
,
i
);
iLast
=
Tim_ManBoxInputLast
(
pManTime
,
i
);
...
@@ -398,9 +406,24 @@ Vec_Int_t * Gia_ManComputeCarryOuts( Gia_Man_t * p )
...
@@ -398,9 +406,24 @@ Vec_Int_t * Gia_ManComputeCarryOuts( Gia_Man_t * p )
if
(
iBox
==
-
1
)
if
(
iBox
==
-
1
)
continue
;
continue
;
assert
(
Gia_ObjIsCi
(
pObj
)
);
assert
(
Gia_ObjIsCi
(
pObj
)
);
if
(
Gia_ObjCioId
(
pObj
)
==
Tim_ManBoxOutputLast
(
pManTime
,
iBox
)
)
if
(
Gia_ObjCioId
(
pObj
)
==
Tim_ManBoxOutputLast
(
pManTime
,
iBox
)
)
{
Vec_IntPush
(
vCarryOuts
,
Gia_ObjId
(
p
,
pObj
)
);
Vec_IntPush
(
vCarryOuts
,
Gia_ObjId
(
p
,
pObj
)
);
// We have identified a carry connection. Check if the carry out
// of the destination box is unconnected. If so then add it to
// the carry list as well.
iLast
=
Tim_ManBoxOutputLast
(
pManTime
,
i
);
pObj
=
Gia_ManCi
(
p
,
iLast
);
if
(
Gia_ObjRefNum
(
p
,
pObj
)
==
0
)
{
Vec_IntPush
(
vCarryOuts
,
Gia_ObjId
(
p
,
pObj
)
);
}
}
}
if
(
createRefs
)
{
ABC_FREE
(
p
->
pRefs
);
}
}
return
vCarryOuts
;
return
vCarryOuts
;
}
}
...
...
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