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
82102903
Commit
82102903
authored
Aug 16, 2016
by
Mathias Soeken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used wrong truth table function in exact synthesis.
parent
077f8bdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/base/abci/abcExact.c
+3
-3
No files found.
src/base/abci/abcExact.c
View file @
82102903
...
@@ -237,7 +237,7 @@ static inline int Ses_StoreTableHash( word * pTruth, int nVars )
...
@@ -237,7 +237,7 @@ static inline int Ses_StoreTableHash( word * pTruth, int nVars )
static
int
s_Primes
[
4
]
=
{
1291
,
1699
,
1999
,
2357
};
static
int
s_Primes
[
4
]
=
{
1291
,
1699
,
1999
,
2357
};
int
i
;
int
i
;
unsigned
uHash
=
0
;
unsigned
uHash
=
0
;
for
(
i
=
0
;
i
<
Kit_Truth
WordNum
(
nVars
);
++
i
)
for
(
i
=
0
;
i
<
Abc_Tt
WordNum
(
nVars
);
++
i
)
uHash
^=
pTruth
[
i
]
*
s_Primes
[
i
&
0xf
];
uHash
^=
pTruth
[
i
]
*
s_Primes
[
i
&
0xf
];
return
(
int
)(
uHash
%
SES_STORE_TABLE_SIZE
);
return
(
int
)(
uHash
%
SES_STORE_TABLE_SIZE
);
}
}
...
@@ -249,7 +249,7 @@ static inline int Ses_StoreTruthEqual( Ses_TruthEntry_t * pEntry, word * pTruth,
...
@@ -249,7 +249,7 @@ static inline int Ses_StoreTruthEqual( Ses_TruthEntry_t * pEntry, word * pTruth,
if
(
pEntry
->
nVars
!=
nVars
)
if
(
pEntry
->
nVars
!=
nVars
)
return
0
;
return
0
;
for
(
i
=
0
;
i
<
Kit_Truth
WordNum
(
nVars
);
++
i
)
for
(
i
=
0
;
i
<
Abc_Tt
WordNum
(
nVars
);
++
i
)
if
(
pEntry
->
pTruth
[
i
]
!=
pTruth
[
i
]
)
if
(
pEntry
->
pTruth
[
i
]
!=
pTruth
[
i
]
)
return
0
;
return
0
;
return
1
;
return
1
;
...
@@ -259,7 +259,7 @@ static inline void Ses_StoreTruthCopy( Ses_TruthEntry_t * pEntry, word * pTruthS
...
@@ -259,7 +259,7 @@ static inline void Ses_StoreTruthCopy( Ses_TruthEntry_t * pEntry, word * pTruthS
{
{
int
i
;
int
i
;
pEntry
->
nVars
=
nVars
;
pEntry
->
nVars
=
nVars
;
for
(
i
=
0
;
i
<
Kit_Truth
WordNum
(
nVars
);
++
i
)
for
(
i
=
0
;
i
<
Abc_Tt
WordNum
(
nVars
);
++
i
)
pEntry
->
pTruth
[
i
]
=
pTruthSrc
[
i
];
pEntry
->
pTruth
[
i
]
=
pTruthSrc
[
i
];
}
}
...
...
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