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:
parent
eed0885dd0
commit
4c8df2a370
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue