V
vincent
Guest
Hi everyone,
I want to make optional port on an interface controlled by a parameter ie
interface foo #(F=0)
generate if (F>0) begin
logic foo;
modport sl(input foo);
end
...
endinterface
Is this legal systemverilog? From the spec it seems it is but NCSim doesn't seem to like it. Also it's not clear (to me) from the spec whether one can define modports in incremental fashion, ie
...
modport slv(input a);
modport slv(input b); etc.
is this possible or should one put all into a single modport?
thanks.
I want to make optional port on an interface controlled by a parameter ie
interface foo #(F=0)
generate if (F>0) begin
logic foo;
modport sl(input foo);
end
...
endinterface
Is this legal systemverilog? From the spec it seems it is but NCSim doesn't seem to like it. Also it's not clear (to me) from the spec whether one can define modports in incremental fashion, ie
...
modport slv(input a);
modport slv(input b); etc.
is this possible or should one put all into a single modport?
thanks.