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
1f0c5153
Unverified
Commit
1f0c5153
authored
Sep 05, 2023
by
alanminko
Committed by
GitHub
Sep 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #232 from phsauter/fix-retime-segfault
fix Segfault in retime command
parents
4c718f7b
0fa51fd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/map/scl/sclSize.c
+14
-2
No files found.
src/map/scl/sclSize.c
View file @
1f0c5153
...
@@ -140,6 +140,9 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
...
@@ -140,6 +140,9 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
Abc_Obj_t
*
pObj
,
*
pPivot
=
Abc_SclFindCriticalCo
(
p
,
&
fRise
);
Abc_Obj_t
*
pObj
,
*
pPivot
=
Abc_SclFindCriticalCo
(
p
,
&
fRise
);
float
maxDelay
=
Abc_SclObjTimeOne
(
p
,
pPivot
,
fRise
);
float
maxDelay
=
Abc_SclObjTimeOne
(
p
,
pPivot
,
fRise
);
p
->
ReportDelay
=
maxDelay
;
p
->
ReportDelay
=
maxDelay
;
// used for Floyds cycle detection algorithm
unsigned
int
tortoiseIndex
=
0
;
int
tortoiseStep
=
0
;
#ifdef WIN32
#ifdef WIN32
printf
(
"WireLoad =
\"
%s
\"
"
,
p
->
pWLoadUsed
?
p
->
pWLoadUsed
->
pName
:
"none"
);
printf
(
"WireLoad =
\"
%s
\"
"
,
p
->
pWLoadUsed
?
p
->
pWLoadUsed
->
pName
:
"none"
);
...
@@ -197,7 +200,7 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
...
@@ -197,7 +200,7 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
while
(
pObj
&&
Abc_ObjIsNode
(
pObj
)
)
while
(
pObj
&&
Abc_ObjIsNode
(
pObj
)
)
{
{
i
++
;
i
++
;
nLength
=
Abc_MaxInt
(
nLength
,
Abc_SclObjCell
(
pObj
)
?
strlen
(
Abc_SclObjCell
(
pObj
)
->
pName
)
:
2
/* strlen("pi") */
);
nLength
=
Abc_MaxInt
(
nLength
,
strlen
(
Abc_SclObjCell
(
pObj
)
->
pName
)
);
pObj
=
Abc_SclFindMostCriticalFanin
(
p
,
&
fRise
,
pObj
);
pObj
=
Abc_SclFindMostCriticalFanin
(
p
,
&
fRise
,
pObj
);
}
}
...
@@ -221,10 +224,18 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
...
@@ -221,10 +224,18 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
Vec_PtrPush
(
vPath
,
pPivot
);
Vec_PtrPush
(
vPath
,
pPivot
);
pObj
=
Abc_ObjFanin0
(
pPivot
);
pObj
=
Abc_ObjFanin0
(
pPivot
);
while
(
pObj
)
//&& Abc_ObjIsNode(pObj) )
while
(
pObj
)
//&& Abc_ObjIsNode(pObj) )
{
{
Vec_PtrPush
(
vPath
,
pObj
);
Vec_PtrPush
(
vPath
,
pObj
);
pPrev
=
pObj
;
pPrev
=
pObj
;
pObj
=
Abc_SclFindMostCriticalFanin
(
p
,
&
fRise
,
pObj
);
pObj
=
Abc_SclFindMostCriticalFanin
(
p
,
&
fRise
,
pObj
);
// move the tortoise at half the speed (trailing)
tortoiseStep
=
(
tortoiseStep
+
1
)
%
2
;
tortoiseIndex
+=
tortoiseStep
;
// if they see the same element, we are in a loop
if
(
vPath
->
pArray
[
tortoiseIndex
]
==
pObj
)
{
break
;
}
}
}
Vec_PtrForEachEntryReverse
(
Abc_Obj_t
*
,
vPath
,
pObj
,
i
)
Vec_PtrForEachEntryReverse
(
Abc_Obj_t
*
,
vPath
,
pObj
,
i
)
{
{
...
@@ -913,3 +924,4 @@ void Abc_SclPrintBuffers( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fVerbose )
...
@@ -913,3 +924,4 @@ void Abc_SclPrintBuffers( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fVerbose )
ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_END
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