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
df6c9415
Commit
df6c9415
authored
Nov 04, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding procedure Abc_NtkSetAndGateDelay().
parent
ae96723a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
src/aig/miniaig/abcapis.h
+3
-0
src/base/abci/abcMap.c
+49
-2
No files found.
src/aig/miniaig/abcapis.h
View file @
df6c9415
...
...
@@ -58,6 +58,9 @@ extern void Abc_NtkSetFlopNum( void * pAbc, int nFlops );
extern
void
Abc_NtkSetCiArrivalTime
(
void
*
pAbc
,
int
iCi
,
float
Rise
,
float
Fall
);
extern
void
Abc_NtkSetCoRequiredTime
(
void
*
pAbc
,
int
iCo
,
float
Rise
,
float
Fall
);
// procedure to set AND-gate delay to tech-independent synthesis and mapping
extern
void
Abc_NtkSetAndGateDelay
(
void
*
pAbc
,
float
Delay
);
// procedures to return the mapped network
extern
int
*
Abc_NtkOutputMiniMapping
(
void
*
pAbc
);
extern
void
Abc_NtkPrintMiniMapping
(
int
*
pArray
);
...
...
src/base/abci/abcMap.c
View file @
df6c9415
...
...
@@ -918,7 +918,7 @@ void Abc_NtkTestMiniMapping( Abc_Ntk_t * p )
/**Function*************************************************************
Synopsis [These APIs set arriva/required times of CIs/COs.]
Synopsis [These APIs set arriva
l
/required times of CIs/COs.]
Description []
...
...
@@ -933,12 +933,21 @@ void Abc_NtkSetCiArrivalTime( void * pAbc0, int iCi, float Rise, float Fall )
Abc_Ntk_t
*
pNtk
;
Abc_Obj_t
*
pNode
;
if
(
pAbc
==
NULL
)
{
printf
(
"ABC framework is not initialized by calling Abc_Start()
\n
"
);
return
;
}
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
if
(
pNtk
==
NULL
)
{
printf
(
"Current network in ABC framework is not defined.
\n
"
);
return
;
}
if
(
iCi
<
0
||
iCi
>=
Abc_NtkCiNum
(
pNtk
)
)
{
printf
(
"CI index is not valid.
\n
"
);
return
;
}
pNode
=
Abc_NtkCi
(
pNtk
,
iCi
);
Abc_NtkTimeSetArrival
(
pNtk
,
Abc_ObjId
(
pNode
),
Rise
,
Fall
);
}
...
...
@@ -947,17 +956,55 @@ void Abc_NtkSetCoRequiredTime( void * pAbc0, int iCo, float Rise, float Fall )
Abc_Frame_t
*
pAbc
=
(
Abc_Frame_t
*
)
pAbc0
;
Abc_Ntk_t
*
pNtk
;
Abc_Obj_t
*
pNode
;
if
(
pAbc
==
NULL
)
if
(
pAbc
==
NULL
)
\
{
printf
(
"ABC framework is not initialized by calling Abc_Start()
\n
"
);
return
;
}
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
if
(
pNtk
==
NULL
)
{
printf
(
"Current network in ABC framework is not defined.
\n
"
);
return
;
}
if
(
iCo
<
0
||
iCo
>=
Abc_NtkCoNum
(
pNtk
)
)
{
printf
(
"CO index is not valid.
\n
"
);
return
;
}
pNode
=
Abc_NtkCo
(
pNtk
,
iCo
);
Abc_NtkTimeSetRequired
(
pNtk
,
Abc_ObjId
(
pNode
),
Rise
,
Fall
);
}
/**Function*************************************************************
Synopsis [This APIs set AND gate delay.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Abc_NtkSetAndGateDelay
(
void
*
pAbc0
,
float
Delay
)
{
Abc_Frame_t
*
pAbc
=
(
Abc_Frame_t
*
)
pAbc0
;
Abc_Ntk_t
*
pNtk
;
if
(
pAbc
==
NULL
)
{
printf
(
"ABC framework is not initialized by calling Abc_Start()
\n
"
);
return
;
}
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
if
(
pNtk
==
NULL
)
{
printf
(
"Current network in ABC framework is not defined.
\n
"
);
return
;
}
pNtk
->
AndGateDelay
=
Delay
;
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
...
...
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