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
8de4d919
Commit
8de4d919
authored
Apr 01, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revising the timing manager.
parent
6f598455
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
src/base/abci/abcTiming.c
+12
-9
No files found.
src/base/abci/abcTiming.c
View file @
8de4d919
...
@@ -160,21 +160,23 @@ float Abc_NodeReadOutputLoadWorst( Abc_Ntk_t * pNtk, int iPo )
...
@@ -160,21 +160,23 @@ float Abc_NodeReadOutputLoadWorst( Abc_Ntk_t * pNtk, int iPo )
***********************************************************************/
***********************************************************************/
void
Abc_NtkTimeSetDefaultArrival
(
Abc_Ntk_t
*
pNtk
,
float
Rise
,
float
Fall
)
void
Abc_NtkTimeSetDefaultArrival
(
Abc_Ntk_t
*
pNtk
,
float
Rise
,
float
Fall
)
{
{
if
(
Rise
==
0
.
0
&&
Fall
==
0
.
0
)
Abc_Obj_t
*
pObj
;
int
i
;
return
;
if
(
pNtk
->
pManTime
==
NULL
)
if
(
pNtk
->
pManTime
==
NULL
)
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
->
tArrDef
.
Rise
=
Rise
;
pNtk
->
pManTime
->
tArrDef
.
Rise
=
Rise
;
pNtk
->
pManTime
->
tArrDef
.
Fall
=
Fall
;
pNtk
->
pManTime
->
tArrDef
.
Fall
=
Fall
;
Abc_NtkForEachCi
(
pNtk
,
pObj
,
i
)
Abc_NtkTimeSetArrival
(
pNtk
,
Abc_ObjId
(
pObj
),
Rise
,
Fall
);
}
}
void
Abc_NtkTimeSetDefaultRequired
(
Abc_Ntk_t
*
pNtk
,
float
Rise
,
float
Fall
)
void
Abc_NtkTimeSetDefaultRequired
(
Abc_Ntk_t
*
pNtk
,
float
Rise
,
float
Fall
)
{
{
if
(
Rise
==
0
.
0
&&
Fall
==
0
.
0
)
Abc_Obj_t
*
pObj
;
int
i
;
return
;
if
(
pNtk
->
pManTime
==
NULL
)
if
(
pNtk
->
pManTime
==
NULL
)
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
->
tReqDef
.
Rise
=
Rise
;
pNtk
->
pManTime
->
tReqDef
.
Rise
=
Rise
;
pNtk
->
pManTime
->
tReqDef
.
Fall
=
Fall
;
pNtk
->
pManTime
->
tReqDef
.
Fall
=
Fall
;
Abc_NtkForEachCo
(
pNtk
,
pObj
,
i
)
Abc_NtkTimeSetRequired
(
pNtk
,
Abc_ObjId
(
pObj
),
Rise
,
Fall
);
}
}
/**Function*************************************************************
/**Function*************************************************************
...
@@ -194,8 +196,6 @@ void Abc_NtkTimeSetArrival( Abc_Ntk_t * pNtk, int ObjId, float Rise, float Fall
...
@@ -194,8 +196,6 @@ void Abc_NtkTimeSetArrival( Abc_Ntk_t * pNtk, int ObjId, float Rise, float Fall
Abc_Time_t
*
pTime
;
Abc_Time_t
*
pTime
;
if
(
pNtk
->
pManTime
==
NULL
)
if
(
pNtk
->
pManTime
==
NULL
)
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
//if ( pNtk->pManTime->tArrDef.Rise == Rise && pNtk->pManTime->tArrDef.Fall == Fall )
// return;
Abc_ManTimeExpand
(
pNtk
->
pManTime
,
ObjId
+
1
,
1
);
Abc_ManTimeExpand
(
pNtk
->
pManTime
,
ObjId
+
1
,
1
);
// set the arrival time
// set the arrival time
vTimes
=
pNtk
->
pManTime
->
vArrs
;
vTimes
=
pNtk
->
pManTime
->
vArrs
;
...
@@ -209,8 +209,6 @@ void Abc_NtkTimeSetRequired( Abc_Ntk_t * pNtk, int ObjId, float Rise, float Fall
...
@@ -209,8 +209,6 @@ void Abc_NtkTimeSetRequired( Abc_Ntk_t * pNtk, int ObjId, float Rise, float Fall
Abc_Time_t
*
pTime
;
Abc_Time_t
*
pTime
;
if
(
pNtk
->
pManTime
==
NULL
)
if
(
pNtk
->
pManTime
==
NULL
)
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
pNtk
->
pManTime
=
Abc_ManTimeStart
(
pNtk
);
//if ( pNtk->pManTime->tReqDef.Rise == Rise && pNtk->pManTime->tReqDef.Fall == Fall )
// return;
Abc_ManTimeExpand
(
pNtk
->
pManTime
,
ObjId
+
1
,
1
);
Abc_ManTimeExpand
(
pNtk
->
pManTime
,
ObjId
+
1
,
1
);
// set the required time
// set the required time
vTimes
=
pNtk
->
pManTime
->
vReqs
;
vTimes
=
pNtk
->
pManTime
->
vReqs
;
...
@@ -487,13 +485,18 @@ void Abc_NtkTimePrepare( Abc_Ntk_t * pNtk )
...
@@ -487,13 +485,18 @@ void Abc_NtkTimePrepare( Abc_Ntk_t * pNtk )
Abc_ManTime_t
*
Abc_ManTimeStart
(
Abc_Ntk_t
*
pNtk
)
Abc_ManTime_t
*
Abc_ManTimeStart
(
Abc_Ntk_t
*
pNtk
)
{
{
Abc_ManTime_t
*
p
;
Abc_ManTime_t
*
p
;
p
=
ABC_ALLOC
(
Abc_ManTime_t
,
1
);
Abc_Obj_t
*
pObj
;
int
i
;
p
=
pNtk
->
pManTime
=
ABC_ALLOC
(
Abc_ManTime_t
,
1
);
memset
(
p
,
0
,
sizeof
(
Abc_ManTime_t
)
);
memset
(
p
,
0
,
sizeof
(
Abc_ManTime_t
)
);
p
->
vArrs
=
Vec_PtrAlloc
(
0
);
p
->
vArrs
=
Vec_PtrAlloc
(
0
);
p
->
vReqs
=
Vec_PtrAlloc
(
0
);
p
->
vReqs
=
Vec_PtrAlloc
(
0
);
p
->
tReqDef
.
Rise
=
ABC_INFINITY
;
p
->
tReqDef
.
Rise
=
ABC_INFINITY
;
p
->
tReqDef
.
Fall
=
ABC_INFINITY
;
p
->
tReqDef
.
Fall
=
ABC_INFINITY
;
Abc_ManTimeExpand
(
p
,
Abc_NtkObjNumMax
(
pNtk
)
+
1
,
0
);
Abc_ManTimeExpand
(
p
,
Abc_NtkObjNumMax
(
pNtk
)
+
1
,
0
);
Abc_NtkForEachCi
(
pNtk
,
pObj
,
i
)
Abc_NtkTimeSetArrival
(
pNtk
,
Abc_ObjId
(
pObj
),
p
->
tArrDef
.
Rise
,
p
->
tArrDef
.
Rise
);
Abc_NtkForEachCo
(
pNtk
,
pObj
,
i
)
Abc_NtkTimeSetArrival
(
pNtk
,
Abc_ObjId
(
pObj
),
p
->
tReqDef
.
Rise
,
p
->
tReqDef
.
Rise
);
return
p
;
return
p
;
}
}
...
...
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