No system functions in continuous assignments.

Do not support (in 0.8) system functions in continuous assignments.
Make a better error message.

Signed-off-by: Stephen Williams <steve@wing.icarus.com>
This commit is contained in:
Stephen Williams 2007-07-18 12:45:04 -07:00
parent eed0885dd0
commit 4c8df2a370
1 changed files with 7 additions and 0 deletions

View File

@ -1216,6 +1216,13 @@ NetNet* PECallFunction::elaborate_net(Design*des, NetScope*scope,
return sub;
}
if (path_.peek_name(0)[0] == '$') {
cerr << get_line() << ": sorry: System functions " << path_ <<
" not supported in continuous assignments." << endl;
des->errors += 1;
return 0;
}
/* Look up the function definition. */
NetFuncDef*def = des->find_function(scope, path_);
if (def == 0) {