• MicroBlaze访问Zynq-7000的OCM


    1. MicroBlaze AXI访问返回DECODE1C

    在ZC702单板上,MicroBlaze通过IC/DC端口连接到PS S_AXI_GP0,MicroBlaze读取OCM,得到值DECODE1C。
    DECODE1C is returned by the AXI Interconnect if it doesn't know how to route a requested AXI transaction.
    MicroBlaze改为通过DP端口连接到PS S_AXI_GP0,再读取OCM,正常。

    2. OCM映射到高地址

    Zynq-7000的OCM缺省部分映射到0地址,部分映射到0xFFFF0000。如果要把OCM全部映射到高地址,需要配置OCM_CFG寄存器。MicroBlaze不能访问OCM_CFG寄存器,一定要在A9里访问OCM_CFG寄存器。

        /*
        Register (slcr) OCM_CFG 
        Absolute Address 0xF8000910
        */
        xil_printf("Original OCM_CFG: 0x%08x
    ", Xil_In32(0xF8000910) );
    	Xil_Out32(SLCR_UNLOCK, SLCR_UNLOCK_VAL);
    	Xil_Out32(0xF8000910, 0x1f);
    	Xil_Out32(SLCR_LOCK, SLCR_LOCK_VAL);
        xil_printf("Updated OCM_CFG: 0x%08x
    ", Xil_In32(0xF8000910) );
    

     

    3. 参考文章

    https://www.xilinx.com/support/answers/71416.html
    https://www.xilinx.com/video/soc/zynq-microblaze-iop-ocm-memory-resource-sharing.html

  • 相关阅读:
    wpf Behavior
    wpf Trigger
    语法糖
    Lambda 表达式
    wpf 3D动画
    IEnumerable接口学习
    Delegates, Events, and Anonymous Methods 委托、事件与匿名方法
    wpf 平滑效果随记
    软件工程第一篇博客
    记考研高数第一课
  • 原文地址:https://www.cnblogs.com/hankfu/p/13050393.html
Copyright © 2020-2023  润新知