Queue as a paramter

can we have a dynamic queue as a parameter?

module test;
parameter int q[$] = '{12,14,16};
initial begin
$display(“q = %p”, q);
end
endmodule

if no, what if i change it to a typedef
module test;
typedef int mytype[$]
parameter mytype q = '{12,14,16};
initial begin
$display(“q = %p”, q);
end
endmodule

Can you please elaborate on purpose of having a queue as a parameter ?

I doubt if we could have queue as a parameter, but if the purpose is known, we can suggest some options.

  • Ashith

In reply to Ashith:

No purpose, working on a compiler/simulator where in this one case that i’m not sure if we need to handle. So wanted to check if this is allowed?

In reply to vkoppu:

I doubt if this allowed as per LRM.

  • Ashith