LRM about refs says:
/Only the following shall be legal to pass by reference:/
/--- a variable,/
/--- a class property,/
/--- a member of an unpacked structure, or/
/--- an element of an unpacked array./
So only variables are allowed for ref ports (no word about const, parameter)
But then const ref was added to the standart.
IMHO there is no sensible argument to forbid parameters to be passed by
"const ref" like in below case.
module top;
parameter byte a = 1;
task automatic t (const ref byte a);
$display(a);
endtask
initial
t(a);
endmodule
Maybe LRM should allow parameters and const explicitly for const ref only.
Should I register a mantis - there is no similar yet?
DANiel
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Aug 24 05:31:04 2011
This archive was generated by hypermail 2.1.8 : Wed Aug 24 2011 - 05:31:16 PDT