Re: [sv-bc] how to access an interface paramter

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Sat Apr 08 2006 - 11:39:09 PDT
In http://www.eda.org/sv-bc/hm/4269.html , Paul asks whether a
hierarchical name rooted at an interface-type port reference can be used
to access parameters in the connected interface instance.  For example,

 
    module cpu(interface bus);
        var logic [bus.N-1:0] scratch;
        ...

    endmodule:cpu

 

According to the current BNF, it can't.  Yet, as pointed out in
http://www.eda.org/sv-bc/hm/3348.html, there is a backdoor way to the
get the same effect.

 

So should the back door be closed, or should the BNF add a front door? 

 

Personally, I'd prefer to add the front door.  According to Dave in
http://www.eda.org/sv-bc/hm/4282.html, this front door would be safe.

 

I was unable to open a Mantis item about this, but will do so later.

 

-- Brad

 

 
Received on Sat Apr 8 11:39:21 2006

This archive was generated by hypermail 2.1.8 : Sat Apr 08 2006 - 11:39:44 PDT