Hi,
Is it possible to create multi dimensional array of interfaces.
My requirement is mphy_interface m_intf[ENV_NUM]MAX_LANES;
Thanks&Regards,
Vamshi KRishna B
Hi,
Is it possible to create multi dimensional array of interfaces.
My requirement is mphy_interface m_intf[ENV_NUM]MAX_LANES;
Thanks&Regards,
Vamshi KRishna B
In reply to vamshikrishnaboosam:
Did you try it?
In reply to dave_59:
Yes,but i got some error.
In reply to vamshikrishnaboosam:
And the error was…?
In reply to dave_59:
Following Errors i am getting.
mphy_interface e_mphy_if[ENV_NUM]MAX_LANES;
|
ncvlog: *E,SVNOTY (/proj/mipi/GF22FDSOI/mipi-mphy/users/vboosam/mphy_22fdsoi_05_05/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/run/…/…/…/…/…/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/bench/mphy_top_ctrl/mphy_top.sv,43|13): Syntactically this identifier appears to begin a datatype but it does not refer to a visible datatype in the current scope.
mphy_interface e_mphy_if[ENV_NUM]MAX_LANES;
|
ncvlog: *E,SVPKSN (/proj/mipi/GF22FDSOI/mipi-mphy/users/vboosam/mphy_22fdsoi_05_05/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/run/…/…/…/…/…/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/bench/mphy_top_ctrl/mphy_top.sv,43|32): The single-bound form of a range is only allowed for array (i.e., unpacked) dimensions.
mphy_interface e_mphy_if[ENV_NUM]MAX_LANES;
|
ncvlog: *E,SVPKSN (/proj/mipi/GF22FDSOI/mipi-mphy/users/vboosam/mphy_22fdsoi_05_05/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/run/…/…/…/…/…/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/bench/mphy_top_ctrl/mphy_top.sv,43|43): The single-bound form of a range is only allowed for array (i.e., unpacked) dimensions.
mphy_interface e_mphy_if[ENV_NUM]MAX_LANES;
|
ncvlog: *E,EXPIDN (/proj/mipi/GF22FDSOI/mipi-mphy/users/vboosam/mphy_22fdsoi_05_05/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/run/…/…/…/…/…/MPHY/DIGITAL/VERIF/mphy_top_ctrl_tb/bench/mphy_top_ctrl/mphy_top.sv,43|44): expecting an identifier [3.2][3.8][3.9(IEEE)].
module worklib.mphy_top:sv
errors: 4, warnings: 0
Thanks,
Vamshi Krishna B
In reply to vamshikrishnaboosam:
Is mphy_interface defined in current scope? Please check the compilation order.
In reply to bdreku:
Hi,
It is in correct order only,if i use without multi dimensional it is working fine.
In reply to vamshikrishnaboosam:
Were you able to get this multi dimensional interfaces working?