<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[FPGA Notes]]></title> 
<link>http://www.fpganotes.com/index.php</link> 
<description><![CDATA[Learning Notes about Xilinx FPGA, ISE, EDK and IC Industry]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[FPGA Notes]]></copyright>
<item>
<link>http://www.fpganotes.com/post//</link>
<title><![CDATA[Ricky版 EDK Tips 0.03]]></title> 
<author>RickySu &lt;sutongqi+blog@gmail.com&gt;</author>
<category><![CDATA[技术经验]]></category>
<pubDate>Tue, 08 Jan 2008 08:01:46 +0000</pubDate> 
<guid>http://www.fpganotes.com/post//</guid> 
<description>
<![CDATA[ 
	<span style="color: #FF0000;">[Tips]</span><br/>1. use xil_printf or print, not printf.<br/>xil_printf基本和ANSI printf功能一致，只是没有浮点功能，但是和printf的大小相差比较多。<br/>比较：一个用xil_printf的工程和一个用printf的工程：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xil_printf<br/>.text &nbsp; &nbsp; &nbsp;57524 &nbsp; &nbsp; &nbsp; &nbsp; 4997<br/>.data &nbsp; &nbsp; 1912 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 116<br/>.bss &nbsp; &nbsp; &nbsp; 1120 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1056<br/>Total &nbsp; &nbsp; &nbsp;60556 &nbsp; &nbsp; &nbsp; &nbsp; 6169</div></div><br/><br/>2. 调用XIo_Out32的所有函数，比如xxx_WriteReg(Baseaddr, Offset, Data)，要写一个32位的数，此时OFFSET的后两bit是不解码的，也就是说，Offset = 00, 01, 02, 03都是写到00去的，结果就是00-03都被写入了数据，而04则没有改变。<br/><br/>3. xmd.ini<br/>如果工程文件夹目录中有xmd.ini文件，打开XMD时就会自动读取这个文件并且执行其中的命令。<br/><br/><span style="color: #FF0000;">[Common Codes]</span><br/>1. GPIO - LED<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">#include "xgpio.h"<br/> &nbsp;XGpio gpio;<br/> &nbsp;XGpio_Initialize(&gpio, XPAR_LEDS_4BIT_DEVICE_ID);<br/> &nbsp;XGpio_SetDataDirection(&gpio,LEDChan, 0); //device channel count from 1<br/> &nbsp;XGpio_mSetDataReg(XPAR_LEDS_4BIT_DEVICE_ID,LEDChan, count);</div></div><br/><br/><br/><br/><br/>Tags - <a href="http://www.fpganotes.com/tags/edk/" rel="tag">edk</a>
]]>
</description>
</item><item>
<link>http://www.fpganotes.com/post//#blogcomment</link>
<title><![CDATA[[评论] Ricky版 EDK Tips 0.03]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.fpganotes.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>