V
vijay
Guest
I have an interface declaration as below
interface i #(parameter width=4);
logic [width:0] a;
modport out (output a);
modport in ( input a);
endinterface
//Now I want to create a module as follows
module b ( i#(.width(10)).in x, i#(.width(20)).out y);
assign y.a=x.a;
endmodule;
Compiling this with dc results in the following error message
test.sv:7: Syntax error at or near token '#'.
Any insight on what I am doing wrong and how to resolve this?
Regards
Vijay
interface i #(parameter width=4);
logic [width:0] a;
modport out (output a);
modport in ( input a);
endinterface
//Now I want to create a module as follows
module b ( i#(.width(10)).in x, i#(.width(20)).out y);
assign y.a=x.a;
endmodule;
Compiling this with dc results in the following error message
test.sv:7: Syntax error at or near token '#'.
Any insight on what I am doing wrong and how to resolve this?
Regards
Vijay