passed virtual interface as a argument but got this error
** at …/env/apb4_env/lofs/…/env/apb4_slave_agent/mcs_apb4_slave_driver.sv(142): (vlog-2400) Identifier (‘mcs_apb4_slave_interface’) found where a type or type identifier is required.
** at …/env/apb4_env/lofs/…/env/apb4_slave_agent/mcs_apb4_slave_driver.sv(142): (vlog-2400) Identifier (‘mcs_apb4_slave_interface’) found where a type or type identifier is required.
Can you please show some code around your task apb_enable, especially wher is the virtual interface declared.
You are missing the virtual
keyword in front of mcs_apb4_slave_interface
in declaring a virtual interface variable
Also, please try to post your code as formatted text </>, not a picture.
sorry for the picture format @dave_59 now it’s working fine thanks a lot for your observation and replying.