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
14b7a520
Commit
14b7a520
authored
May 15, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in 'dsd_tune' when processing cells with 0-input LUTs.
parent
37b6b5f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/map/if/ifTune.c
+7
-2
No files found.
src/map/if/ifTune.c
View file @
14b7a520
...
...
@@ -1111,9 +1111,10 @@ int Ifn_NtkAddClauses( Ifn_Ntk_t * p, int * pValues, sat_solver * pSat )
int
i
,
f
,
v
,
nLits
,
pLits
[
IFN_INS
+
2
],
pLits2
[
IFN_INS
+
2
];
// assign new variables
int
nSatVars
=
sat_solver_nvars
(
pSat
);
for
(
i
=
0
;
i
<
p
->
nObjs
-
1
;
i
++
)
// for ( i = 0; i < p->nObjs-1; i++ )
for
(
i
=
0
;
i
<
p
->
nObjs
;
i
++
)
p
->
Nodes
[
i
].
Var
=
nSatVars
++
;
p
->
Nodes
[
p
->
nObjs
-
1
].
Var
=
0xFFFF
;
//
p->Nodes[p->nObjs-1].Var = 0xFFFF;
sat_solver_setnvars
(
pSat
,
nSatVars
);
// verify variable values
for
(
i
=
0
;
i
<
p
->
nVars
;
i
++
)
...
...
@@ -1237,6 +1238,10 @@ int Ifn_NtkAddClauses( Ifn_Ntk_t * p, int * pValues, sat_solver * pSat )
else
assert
(
0
);
//printf( "\n" );
}
// add last clause (not needed if the root node is IFN_DSD_PRIME)
pLits
[
0
]
=
Abc_Var2Lit
(
p
->
Nodes
[
p
->
nObjs
-
1
].
Var
,
pValues
[
p
->
nObjs
-
1
]
==
0
);
if
(
!
Ifn_AddClause
(
pSat
,
pLits
,
pLits
+
1
)
)
return
0
;
return
1
;
}
...
...
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