From 4c8df2a370fb3b155968b718278fead1afc48f88 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Wed, 18 Jul 2007 12:45:04 -0700 Subject: [PATCH] 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 --- elab_net.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/elab_net.cc b/elab_net.cc index 2fd5a6ced..99f604ed3 100644 --- a/elab_net.cc +++ b/elab_net.cc @@ -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) {