[Bug 328080] Re: Cryptic error message when passing events to functions.

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at users.sourceforge.net
Tue Sep 1 20:29:57 UTC 2009


Is this even valid ? I mean passing an event as an argument to a
function that expects a logic input ?

Btw, your code does not compile, not even with ModelSim.

I modified it as follows:

// Module.
module my_module;
   event my_event;
   reg x;

   // Function.
   function my_function;
      input my_args;
   begin
    $display("foo");
   end
   endfunction

   // Call function with event.
   initial
      x=my_function(my_event);

endmodule


And even this does not compile (neither with iverilog 0.9.1 nor with ModelSim).

Here's the ModelSim compile error:
** Error: t.v(16): (vlog-2110) Illegal reference to event "my_event".

And this is the iverilog 0.9.1 compile error:
(null):0:  vvp-tgt error: unhandled expr. type: 17 at eval_expr.c:2865

-- 
Cryptic error message when passing events to functions.
https://bugs.launchpad.net/bugs/328080
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list