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
302f41e9
Commit
302f41e9
authored
Apr 10, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added procedure to vector package and manager template file.
parent
93fef036
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
0 deletions
+113
-0
src/misc/vec/vecInt.h
+2
-0
src/template.c
+111
-0
No files found.
src/misc/vec/vecInt.h
View file @
302f41e9
...
...
@@ -61,6 +61,8 @@ struct Vec_Int_t_
for ( i = Start; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ )
#define Vec_IntForEachEntryReverse( vVec, pEntry, i ) \
for ( i = Vec_IntSize(vVec) - 1; (i >= 0) && (((pEntry) = Vec_IntEntry(vVec, i)), 1); i-- )
#define Vec_IntForEachEntryTwo( vVec1, vVec2, Entry1, Entry2, i ) \
for ( i = 0; (i < Vec_IntSize(vVec1)) && (((Entry1) = Vec_IntEntry(vVec1, i)), 1) && (((Entry2) = Vec_IntEntry(vVec2, i)), 1); i++ )
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
...
...
src/template.c
0 → 100644
View file @
302f41e9
/**CFile****************************************************************
FileName [.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName []
Synopsis []
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: .c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
#include "aig.h"
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
// parameter structure
typedef
struct
Xyz_ParTry_t_
Xyz_ParTry_t
;
struct
Xyz_ParTry_t_
{
int
Par
;
};
// operation manager
typedef
struct
Xyz_ManTry_t_
Xyz_ManTry_t
;
struct
Xyz_ManTry_t_
{
Xyz_ParTry_t
*
pPar
;
// parameters
Aig_Man_t
*
pAig
;
// user's AIG
};
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Xyz_ManTry_t
*
Xyz_ManTryAlloc
(
Aig_Man_t
*
pAig
,
Xyz_ParTry_t
*
pPar
)
{
Xyz_ManTry_t
*
p
;
p
=
ABC_CALLOC
(
Xyz_ManTry_t
,
1
);
p
->
pAig
=
pAig
;
p
->
pPar
=
pPar
;
return
p
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Xyz_ManTryFree
(
Xyz_ManTry_t
*
p
)
{
ABC_FREE
(
p
);
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Xyz_ManPerform
(
Aig_Man_t
*
pAig
,
Xyz_ParTry_t
*
pPar
)
{
Xyz_ManTry_t
*
p
;
int
RetValue
;
p
=
Xyz_ManTryAlloc
(
pAig
,
pPar
);
RetValue
=
1
;
Xyz_ManTryFree
(
p
);
return
RetValue
;
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
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