mirror of https://github.com/YosysHQ/abc.git
Minor fixes
This commit is contained in:
parent
b3d2419d9a
commit
7dcc10a254
|
|
@ -174,7 +174,7 @@ public:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
generate_decomposition();
|
generate_decomposition();
|
||||||
return get_decomposition_abc( decompArray );
|
get_decomposition_abc( decompArray );
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -264,9 +264,12 @@ private:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* estimation on number of LUTs */
|
/* estimation on number of LUTs */
|
||||||
pst->num_luts = best_multiplicity <= 2 ? 2 : best_multiplicity <= 4 ? 3
|
if ( pst )
|
||||||
: best_multiplicity <= 8 ? 4
|
{
|
||||||
: 5;
|
pst->num_luts = best_multiplicity <= 2 ? 2 : best_multiplicity <= 4 ? 3
|
||||||
|
: best_multiplicity <= 8 ? 4
|
||||||
|
: 5;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -799,7 +802,7 @@ private:
|
||||||
best_iset_offset.push_back( offset );
|
best_iset_offset.push_back( offset );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pst != nullptr )
|
if ( pst )
|
||||||
{
|
{
|
||||||
pst->num_luts = num_luts;
|
pst->num_luts = num_luts;
|
||||||
pst->num_levels = num_levels;
|
pst->num_levels = num_levels;
|
||||||
|
|
@ -868,7 +871,7 @@ private:
|
||||||
best_iset_offset.push_back( offset );
|
best_iset_offset.push_back( offset );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pst != nullptr )
|
if ( pst )
|
||||||
{
|
{
|
||||||
pst->num_luts = num_luts;
|
pst->num_luts = num_luts;
|
||||||
pst->num_levels = num_levels;
|
pst->num_levels = num_levels;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue