- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
XilinxPlatformStudio的使用流程
Xilinx Platform Studio的使用流程
(1)配置硬件
根据BSB向导完成硬件的配置,在Project option设置HDL and simulation
然后generate netlist
编写引脚约束文件ucf,并generate bitstream,生成相应的bit文件(工程名.bit)
编译后可打开xflow.log查看硬件资源的使用情况
(2)编译软件
首先generate libraries,产生与硬件相匹配的xparameters.h文件。
编写C程序,并添加入工程
范例程序,简单IO口的操作:#include xparameters.h //必须包含此头文件
#include stdio.h
#include xgpio.h
//====================================================
int main(void){XGpio led_8bit;XGpio_Initialize(led_8bit,XPAR_LEDS_8BIT_DEVICE_ID);XGpio_SetDataDirection(led_8bit,1,0;//????unsigned int nflashtemp;nflashtemp = 0 unsigned int i;while(1){nflashtemp = nflashtemp1;if( nflashtemp == 0{?? nflashtemp = 0 }XGpio_DiscreteWrite(led_8bit,1,nflashtemp);for(i=0;i++);}}
调试阶段一般不需优化程序
最后编译应用程序,生成相应的elf可执行可连接文件
(3)软硬件合并
将前两步生成的bit文件和elf文件合并,在implementation文件夹里生成一个新的bit文件——download.bit,用此文件下载入FPGA可成功运行microblaze程序
Initializing Memory...Checking ELFs associated with MICROBLAZE instance microblaze_0 for overlap...
Analyzing file TestApp_Memory/executable.elf...Running Data2Mem with the following command:data2mem -bm implementation/lightcontrol_bd -btimplementation/lightcontrol.bit -bd TestApp_Memory/executable.elf tagmicroblaze_0 -o b implementation/download.bit
您可能关注的文档
- The Impact of Microstructure Noise on the Distributional Properties of Daily Stock Returns.pdf
- The Impact of Mobility on Broadcast Communication.pdf
- The Impact of Operating Lease on Firm Financial and Operating Risk.pdf
- The Impact of Network and Protocol Heterogeneity on RealTime Application QoS.pdf
- The Impact of Rotation on Cluster Dynamics.pdf
- The Impact of Oil Price Shocks on Stock Market Returns Comparing GCC Countries with the UK and USA.pdf
- The Impact of the NPO Law onForeigners Support Groups in Japan.pdf
- The Impact of the Chronogeometrical Structure of Spacetime on Causality.pdf
- The Impact of Temperature Effect on Exhaust Manifold Thermal Modal Analysis.pdf
- The Impact of Timing on Linearizability inCounting Networks.pdf
文档评论(0)