ivl_lpm_selects() is obsolete for IVL_LPM_CONCAT

IVL_LPM_CONCAT should use ivl_lpm_size() instead of ivl_lpm_selects.
This is a requirement in development so add a warning and make using
ivl_lpmp_selects() with a IVL_LPM_CONCAT fatal.
This commit is contained in:
Cary R 2009-09-02 10:52:14 -07:00 committed by Stephen Williams
parent 4cd790a2d2
commit bd5593df23
1 changed files with 2 additions and 1 deletions

View File

@ -1196,7 +1196,8 @@ extern "C" unsigned ivl_lpm_selects(ivl_lpm_t net)
case IVL_LPM_ARRAY:
return net->u_.array.swid;
case IVL_LPM_CONCAT:
return net->u_.concat.inputs;
cerr << "error: ivl_lpm_selects() is no longer supported for "
"IVL_LPM_CONCAT, use ivl_lpm_size() instead." << endl;
default:
assert(0);
return 0;