查看: 6296|回复: 6

"Hello World!" running on Microblaze

[复制链接]
  • TA的每日心情
    开心
    2014-5-14 13:12
  • 签到天数: 180 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2013-1-21 09:43:18 | 显示全部楼层 |阅读模式
    分享到:

    This project implements a Microblaze Soft Processor with a “Hello Wold!” example software running on it. It was tested on successfully on ZTEX USB-FPGA-Modules 1.11c.
    The project sources can be downloaded by clicking on tho following link: Microblaze Hello World Example.
    License requirements: you'll need Xilinx EDK license (not free one) to be able to use XPS/SDK components, ISE require WebPACK license (free one).


    Project Overview
    FPGA board specific constraints are defined in resetClockTrace.ucf (reset and clock signals) and ddr-sdram-simon.ucf (DDR SDRAM signals).
    The Microblaze soft processor core was generated using the ISE/XPS “embedded processor” Wizard (configuration stored in processor/processor.mhs).
    The software is defined in processor/SDK/SDK_Workspace_32/hello_world_0/src/helloworld.c. At startup the XilKernel is launched and a static thread sending “Hello World” to default UART port configured at the moment “embedded processor” is created.


    Implementing the Design / Generating the Bitstream
    In order to implement the design just open ZTEX1.11c.SLX25.xise project file, select “processor” entity and double click on “Generate Programming File”.
    From ISE project page double click on processor.xps file in order to launch Microblaze designer (Xilinx Platform Studio). XPS will provide all components connectivity within PLB bus and external pins management.


    Compiling the Software
    From XPS project page choose top menu Project→“Export Hardware Design to SDK in order to launch Microblaze SDK(Eclipse based environment).
    SDK will provide all software integration including HAL definition (hw_platform_0) and BSP functionality (xilkernel_bsp_0).
    (use File→Import→General→Existing projects into Workspace to obtain all predefined components)


    Running the example
    The Bitstream can be uploaded via [color=rgb(0, 153, 0) !important]JTAG either using the Impact tool
    or the Program FPGA dialog of the Xilinx SDK.
    It is also possible to upload the Bitstream via USB using the Java API or using [color=rgb(0, 153, 0) !important]FWLoader of the ZTEX SDK package:
    FWLoader -c -uu standalone.ihx -um processor.bit
    (Since no special firmware for the EZ-USB is required standalone.ihx from the standalone example of the [color=rgb(0, 153, 0) !important]ZTEX SDK can be used as dummy firmware.)
    The Microblaze Firmware (“Hello World” example) can be started from SDK after uploading the Bitstream. (step on project folder hello_world_0 and use menu Run→Run As→Launch on Hardware)
    In order to run or at least to program .elf into the board bootloop.bmm (aka edkBmmFile_bd.bmm) must be uploaded first into BRAM block. This bootloader accept .elf binary delivered by JTAG interface and provide necessary environment for correct launch it.
    It is also possible to include bnm files (that are files are BRAM images) into bitstream using he data2mem tool from Xilinx (<bit file> + <bmm file> = <new bit file>, where <new bit file> can be uploaded directly using [color=rgb(0, 153, 0) !important]FWLoader.


    ztex1.11c.slx25-minimalpack.zip

    25.85 KB, 下载次数: 6

    helloworld

    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2016-8-15 09:28
  • 签到天数: 222 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2013-1-21 10:09:45 | 显示全部楼层
    楼主,英文文章好难懂啊!{:soso_e134:}建议多来点中文的!{:soso_e183:}
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2014-5-14 13:12
  • 签到天数: 180 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2013-1-21 10:32:16 | 显示全部楼层
    奋斗哥 发表于 2013-1-21 10:09
    楼主,英文文章好难懂啊!建议多来点中文的!

    中文的写的不够好啊~~很多好文章都是英文的,这没办法啊~~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2014-2-19 13:12
  • 签到天数: 276 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2013-1-21 10:53:50 | 显示全部楼层
    where are you ?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2014-5-14 13:12
  • 签到天数: 180 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2013-1-21 15:47:53 | 显示全部楼层
    xuyuanping1075 发表于 2013-1-21 10:53
    where are you ?

    你别多想,文章是我转的,不是我写的~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2013-2-27 20:55:02 | 显示全部楼层
    能不能转篇memorytest的
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2013-9-24 17:07
  • 签到天数: 159 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2013-3-11 08:20:34 | 显示全部楼层
    楼主买了这个板么?貌似是OpenCore里面的原型板。可以考虑DIY哦。
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-12-26 08:28 , Processed in 0.174109 second(s), 27 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.