cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
7,915 Views
Registered: ‎12-18-2014

invoke axi bfm api inside class in systemverilog

Hello,

i am using axi bfm to verify my axi ip. now i want to model my ip with a class where the methods will do read/write of my ip. The methods should wrap the axi bfm api functions. But how to do this? I first thought of inheritance but this does not work.

 

Example:

class myip;

 

task setregister;
axi_bfm.write_burst(...); // axi-bfm api
endtask

 

endclass

 

Thanks

0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
7,907 Views
Registered: ‎06-14-2012

Re: invoke axi bfm api inside class in systemverilog

Hi 

You should get the entire hierarchy for this to work.

 

Regards

Sikta

0 Kudos
Highlighted
Moderator
Moderator
7,899 Views
Registered: ‎04-17-2011

Re: invoke axi bfm api inside class in systemverilog

It should be like, for example.
dut.bfm_processor.bfm_processor.cdn_axi4_lite_master_bfm_inst.SEND_WRITE_DATA(4'b1111,'h00000001);

If your method can maintain the hierarchy then you should be able to do this.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
7,891 Views
Registered: ‎06-14-2012

Re: invoke axi bfm api inside class in systemverilog

0 Kudos