[sv-bc] rules for interface module port used in nested instantation as port for another module

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Mon Jul 13 2009 - 02:44:06 PDT
I've doubts for below sample. I haven't found in LRM rules for conecting
interface port to module instantation. Can anyone take a look a responce to
my doubts:

interface iface;
 reg r; 
 reg r1;
 modport slave (input r);
 modport master(input r1);
endinterface
 
module top;
 iface if_();
 sub uut(if_.slave);
endmodule
 
module sub(iface if_);
 sub1 uut1(if_.slave);// dillowed?  imho forbidden as this is already slave
 sub1 uut2(if_.master);// dillowed? imho forbidden as from slave we do not
have access to master
 sub1 uut3(if_);// if_ here is restricted with slave modport so in uut3
there will be also slave mopdort in use 
endmodule
 
module sub1(iface if_);
endmodule

DANiel

 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jul 13 02:49:04 2009

This archive was generated by hypermail 2.1.8 : Mon Jul 13 2009 - 02:50:12 PDT