`ifndef WB_EBR_CTRL_FILE `define WB_EBR_CTRL_FILE `include "system_conf.v" `define EBR_ADDR_DEPTH 512 `define EBR_ADDR_WIDTH 9 `define EBR_DATA_WIDTH 32 `define INIT_FILE_NAME "none" `define INIT_FILE_FORMAT "hex" `define CLKEN_TIE1 module wb_ebr_ctrl #( parameter SIZE = 4096, parameter INIT_FILE_FORMAT = "hex", parameter INIT_FILE_NAME = "none" ) ( input CLK_I, input RST_I, input [31:0] EBR_ADR_I, input [31:0] EBR_DAT_I, input EBR_WE_I, input EBR_CYC_I, input EBR_STB_I, input [3:0] EBR_SEL_I, input [2:0] EBR_CTI_I, input [1:0] EBR_BTE_I, input EBR_LOCK_I, output reg [31:0] EBR_DAT_O, output reg EBR_ACK_O, output reg EBR_ERR_O, output reg EBR_RTY_O ); function integer clogb2; input [31:0] value; reg [31:0] i; reg [31:0] temp; begin temp = 0; i = 0; for (i = 0; temp < value; i = i + 1) temp = 1<