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
736c2245
Commit
736c2245
authored
Oct 26, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding MAJ gate to GIA package.
parent
836723cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaHash.c
+19
-0
No files found.
src/aig/gia/gia.h
View file @
736c2245
...
...
@@ -1174,6 +1174,7 @@ extern int Gia_ManHashAnd( Gia_Man_t * p, int iLit0, int iLit1 )
extern
int
Gia_ManHashOr
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
int
Gia_ManHashXor
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
int
Gia_ManHashMux
(
Gia_Man_t
*
p
,
int
iCtrl
,
int
iData1
,
int
iData0
);
extern
int
Gia_ManHashMaj
(
Gia_Man_t
*
p
,
int
iData0
,
int
iData1
,
int
iData2
);
extern
int
Gia_ManHashAndTry
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
Gia_Man_t
*
Gia_ManRehash
(
Gia_Man_t
*
p
,
int
fAddStrash
);
extern
void
Gia_ManHashProfile
(
Gia_Man_t
*
p
);
...
...
src/aig/gia/giaHash.c
View file @
736c2245
...
...
@@ -688,6 +688,25 @@ int Gia_ManHashMux( Gia_Man_t * p, int iCtrl, int iData1, int iData0 )
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Gia_ManHashMaj
(
Gia_Man_t
*
p
,
int
iData0
,
int
iData1
,
int
iData2
)
{
int
iTemp0
=
Gia_ManHashOr
(
p
,
iData1
,
iData2
);
int
iTemp1
=
Gia_ManHashAnd
(
p
,
iData0
,
iTemp0
);
int
iTemp2
=
Gia_ManHashAnd
(
p
,
iData1
,
iData2
);
return
Gia_ManHashOr
(
p
,
iTemp1
,
iTemp2
);
}
/**Function*************************************************************
Synopsis [Rehashes AIG.]
Description []
...
...
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