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
61ce18e1
Commit
61ce18e1
authored
Feb 12, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding APIs to specified input/output arrival/required times.
parent
48e04c8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
src/aig/miniaig/abcapis.h
+4
-0
src/base/abci/abcMap.c
+41
-0
No files found.
src/aig/miniaig/abcapis.h
View file @
61ce18e1
...
@@ -53,6 +53,10 @@ extern int Cmd_CommandExecute( void * pAbc, char * pCommandLine );
...
@@ -53,6 +53,10 @@ extern int Cmd_CommandExecute( void * pAbc, char * pCommandLine );
extern
void
Abc_NtkInputMiniAig
(
void
*
pAbc
,
void
*
pMiniAig
);
extern
void
Abc_NtkInputMiniAig
(
void
*
pAbc
,
void
*
pMiniAig
);
extern
void
*
Abc_NtkOutputMiniAig
(
void
*
pAbc
);
extern
void
*
Abc_NtkOutputMiniAig
(
void
*
pAbc
);
// procedures to set CI/CO arrival/required times
extern
void
Abc_NtkSetCiArrivalTime
(
void
*
pAbc
,
int
iCi
,
float
Rise
,
float
Fall
);
extern
void
Abc_NtkSetCoRequiredTime
(
void
*
pAbc
,
int
iCo
,
float
Rise
,
float
Fall
);
// procedures to return the mapped network
// procedures to return the mapped network
extern
int
*
Abc_NtkOutputMiniMapping
(
void
*
pAbc
);
extern
int
*
Abc_NtkOutputMiniMapping
(
void
*
pAbc
);
extern
void
Abc_NtkPrintMiniMapping
(
int
*
pArray
);
extern
void
Abc_NtkPrintMiniMapping
(
int
*
pArray
);
...
...
src/base/abci/abcMap.c
View file @
61ce18e1
...
@@ -927,6 +927,47 @@ void Abc_NtkTestMiniMapping( Abc_Ntk_t * p )
...
@@ -927,6 +927,47 @@ void Abc_NtkTestMiniMapping( Abc_Ntk_t * p )
Vec_IntFree
(
vMapping
);
Vec_IntFree
(
vMapping
);
}
}
/**Function*************************************************************
Synopsis [These APIs set arriva/required times of CIs/COs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Abc_NtkSetCiArrivalTime
(
void
*
pAbc0
,
int
iCi
,
float
Rise
,
float
Fall
)
{
Abc_Frame_t
*
pAbc
=
(
Abc_Frame_t
*
)
pAbc0
;
Abc_Ntk_t
*
pNtk
;
Abc_Obj_t
*
pNode
;
if
(
pAbc
==
NULL
)
printf
(
"ABC framework is not initialized by calling Abc_Start()
\n
"
);
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
if
(
pNtk
==
NULL
)
printf
(
"Current network in ABC framework is not defined.
\n
"
);
if
(
iCi
<
0
||
iCi
>=
Abc_NtkCiNum
(
pNtk
)
)
printf
(
"CI index is not valid.
\n
"
);
pNode
=
Abc_NtkCi
(
pNtk
,
iCi
);
Abc_NtkTimeSetArrival
(
pNtk
,
Abc_ObjId
(
pNode
),
Rise
,
Fall
);
}
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
)
printf
(
"ABC framework is not initialized by calling Abc_Start()
\n
"
);
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
if
(
pNtk
==
NULL
)
printf
(
"Current network in ABC framework is not defined.
\n
"
);
if
(
iCo
<
0
||
iCo
>=
Abc_NtkCoNum
(
pNtk
)
)
printf
(
"CO index is not valid.
\n
"
);
pNode
=
Abc_NtkCo
(
pNtk
,
iCo
);
Abc_NtkTimeSetRequired
(
pNtk
,
Abc_ObjId
(
pNode
),
Rise
,
Fall
);
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
/// 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