6回答

0收藏

"Hello World!" running on Microblaze

FPGA/DSP FPGA/DSP 6670 人阅读 | 6 人回复 | 2013-01-21


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

国内的ubuntu的更新源还是上海交大最给力
分享到:
回复

使用道具 举报

回答|共 6 个

倒序浏览

沙发

奋斗哥

发表于 2013-1-21 10:09:45 | 只看该作者

楼主,英文文章好难懂啊!{:soso_e134:}建议多来点中文的!{:soso_e183:}
板凳

libing64

发表于 2013-1-21 10:32:16 | 只看该作者

奋斗哥 发表于 2013-1-21 10:09
楼主,英文文章好难懂啊!建议多来点中文的!

中文的写的不够好啊~~很多好文章都是英文的,这没办法啊~~
国内的ubuntu的更新源还是上海交大最给力
地板

徐园平

发表于 2013-1-21 10:53:50 | 只看该作者

where are you ?
http://weibo.com/yyppxu
5#

libing64

发表于 2013-1-21 15:47:53 | 只看该作者

xuyuanping1075 发表于 2013-1-21 10:53
where are you ?

你别多想,文章是我转的,不是我写的~
国内的ubuntu的更新源还是上海交大最给力
6#

潘磊

发表于 2013-2-27 20:55:02 | 只看该作者

能不能转篇memorytest的
7#

liujie-420614

发表于 2013-3-11 08:20:34 | 只看该作者

楼主买了这个板么?貌似是OpenCore里面的原型板。可以考虑DIY哦。
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

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