Hi,
In my example
module M;
intf intfinst();
endmodule
interface intf;
signal s1;
signal s2;
modport M1(input s1);
modport M2(output s1,input s2);
modport M3(output s2);
endinterface
Now inside the module M I can access the signal of interface intf by
following ways
a) intfinst.s1
b) intfinst.M1.s1
My question is towards the difference between accessing the 'a' & 'b'.
Do the users mean that while accessing as intfinst.M1.s1, I am saying
that it has to be use as input only and is always a better way of
writing?
OR, they both are aliases and one should avoid writing 'b' as modports
based access should only be done when interface is passed as modport.
Also it is confusing if same signal is passed to different modports and
in the module M we are accessing same signal in different manner
intfinst.s1/intfinst.M1.s1/intfinst.M2.s1
Thanks,
Abhishek
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Mar 10 22:58:11 2011
This archive was generated by hypermail 2.1.8 : Thu Mar 10 2011 - 23:00:12 PST