I have two interfaces with modports and another interface which combines these two interfaces as shown below:
interface my_interface1
// Some signals
modport tb_to_dut (
// Signal directions specified
)
endinterface
interface my_interface2
// Some signals
modport tb_to_dut (
// Signal directions specified
)
endinterface
interface my_combined_interface
my_interface1 inf1
my_interface2 inf2
endinterface
I wanted to specify a modport for the combined interface which in turn calls/uses the modport of the individual interfaces. The idea is as shown below.
interface my_combined_interface
my_interface1 inf1
my_interface2 inf2
modport tb_to_dut (
inf1.tb_to_dut,
inf2.tb_to_dut
)
endinterface
This currently results in a syntax error. Is there a way by which I can specify the modport in the combined interface such that it percolates down to the individual interfaces?