From d1e0c6a6c46eb24d23e80cdcfe89b21c8fe4573c Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Tue, 28 Apr 2020 19:52:42 -0500 Subject: fpga: sim: Fix get_slave_data_bfm method --- fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv') diff --git a/fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv b/fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv index 28dbeb893..4c8cc2ff6 100644 --- a/fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv +++ b/fpga/usrp3/sim/rfnoc/PkgRfnocBlockCtrlBfm.sv @@ -229,7 +229,7 @@ package PkgRfnocBlockCtrlBfm; // Return a handle to the indicated slave port BFM function ChdrIfaceBfm #(CHDR_W, ITEM_W) get_slave_data_bfm(int port); - assert (port >= 0 && port < m_data.size()) else begin + assert (port >= 0 && port < s_data.size()) else begin $fatal(1, "Invalid slave port number"); end return s_data[port]; -- cgit v1.2.3