1 / 14

实验一:构建基于 SoCLib 的单核 SoC

实验一:构建基于 SoCLib 的单核 SoC. 王 洁、袁子超. 单核 SoC 硬件平台. 地址空间分配( Memory Table ). ADDRESS SPACE SEGMENTATION ( ./HW/ segmentation.h ):. 地址空间分配( Memory Table ). 代码定义( ./HW/top.cpp ):. Memory Table:. SoC 启动 过程 (有 bootloader ). 执行流程. 输入程序及数据存放. 放入了 MEMORY 中. 存放方法实现代码( ./HW/top.cpp ):. 运行结果.

Download Presentation

实验一:构建基于 SoCLib 的单核 SoC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 实验一:构建基于SoCLib的单核SoC 王洁、袁子超

  2. 单核SoC硬件平台

  3. 地址空间分配(Memory Table) ADDRESS SPACE SEGMENTATION(./HW/segmentation.h):

  4. 地址空间分配(Memory Table) 代码定义(./HW/top.cpp): Memory Table:

  5. SoC启动过程(有bootloader) 执行流程

  6. 输入程序及数据存放 放入了MEMORY中 存放方法实现代码(./HW/top.cpp):

  7. 运行结果 存放在帧缓存(VCI_FRAMEBUFFER:0xC4000000)中 代码实现(./SW/mjpeg_seq/sources/dispatch.c):

  8. 性能评估:运行代码所用时间统计 调用: 代码实现(./SW/mjpeg_seq/sources/dispatch.c):

  9. 单核SoC实验步骤 • 实验平台搭建安装 • 修改示例源代码 • 分别编译HW和SW部分 • 运行示例获得结果

  10. 修改源代码 • 按照指导步骤依次修改一下文件: • HW • top.cpp • segmentation.h • platfor_desc • SW • fetch.h • dispath.c • mips

  11. 源代码问题 • 问题一: • 在添加Signals部分,对fd_access中操作: soclib::caba::VciSignals<vci_param>signal_vci_fd_access("signal_vci_fd_access"; 改为 soclib::caba::VciSignals<vci_param>signal_vci_fd_access("signal_vci_fd_access");

  12. 问题二

  13. 问题二解决办法: • 修改HW中的segmentation.h • 将#define DATA_BASE 0xE0000000 • 修改为#define DATA_BASE 0x20000000 • 修改 “/SW/mjpeg_seq/ldscripts/mips” • 将.sdata 0xE0000000 : { *(.sdata*) *(.scommon*) } > data :data • 修改为.sdata 0x20000000 : { *(.sdata*) *(.scommon*) } > data :data

  14. 实验运行结果:

More Related