I have a nested interface, something like the pseudo example
interface a();
logic a;
endinterface: a
interface B();
logic b;
a A();
alias b = A.a; // THIS throws an error
endinterface: b
I want to write assertions on interface a
from interface B
But it does not allow me to alias
the signal. What are other alternatives?
Any suggestions?
Variables and hierarchical references cannot be used in alias
statements.
Your alternatives are:
assign b = A.a;
instead of alias
A.a
in your assertionb
using the let
construct let b = A.a;
I suggest using the let
statement.