Hi, does anyone know how to use a 2nd FSL peripheral attached to microblaze? This is what I did. I have attached 2 peripherals, let's say we call it peripheral1 and peripheral2 to the microblaze's FSL bus.
now here comes the problem. Using the commands putfsl(val,0) and getfsl(val,1), I am able to write and read from peripheral 1 respectively.
However, when I do putfsl(val,2) and getfsl(val,3), nothing happens from peripheral2; I thought i was supposed to write and read from peripheral 2 respectively by these commands.
I have been struggling with this for a while...any of your inputs would really be great. :D
--- excerpt from system.mhs file
BEGIN microblaze PARAMETER INSTANCE = microblaze_0 PARAMETER HW_VER = 4.00.a PARAMETER C_DEBUG_ENABLED = 1 PARAMETER C_NUMBER_OF_PC_BRK = 2 PARAMETER C_NUMBER_OF_RD_ADDR_BRK = 1 PARAMETER C_NUMBER_OF_WR_ADDR_BRK = 1 PARAMETER C_FSL_LINKS = 2 PARAMETER C_USE_FPU = 1 BUS_INTERFACE DLMB = dlmb BUS_INTERFACE ILMB = ilmb BUS_INTERFACE DOPB = mb_opb BUS_INTERFACE IOPB = mb_opb BUS_INTERFACE SFSL0 = peripheral1_to_microblaze_0 ## IS THE ID 1? BUS_INTERFACE MFSL0 = microblaze_0_to_peripheral1 ## IS THE ID 0? BUS_INTERFACE SFSL1 = peripheral2_0_to_microblaze_0 ## IS THE ID 3? BUS_INTERFACE MFSL1 = microblaze_0_to_peripheral2 ## IS THE ID 2? PORT CLK = sys_clk_s PORT DBG_CAPTURE = DBG_CAPTURE_s PORT DBG_CLK = DBG_CLK_s PORT DBG_REG_EN = DBG_REG_EN_s PORT DBG_TDI = DBG_TDI_s PORT DBG_TDO = DBG_TDO_s PORT DBG_UPDATE = DBG_UPDATE_s END
otherwise, how to determine the corresponding ID of the FSL peripherals? I have looked through fsl_v20.pdf but dun see anything useful.
thanks a million! Chris