<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Altera Forums</title>
		<link>http://www.alteraforum.com/forum/</link>
		<description><![CDATA[Altera's discussion forum for Altera, FPGA Forum, CPLD Forum, Programmable Logic, Quartus License, FPGA, CPLD Troubleshoot, Structured Asic, Field Programmable Gate Array]]></description>
		<language>en</language>
		<lastBuildDate>Fri, 18 May 2012 01:12:22 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.alteraforum.com/forum//proweb/misc/rss.jpg</url>
			<title>Altera Forums</title>
			<link>http://www.alteraforum.com/forum/</link>
		</image>
		<item>
			<title>Regarding megafunction cycloneii_crcblock</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35886&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 01:00:23 GMT</pubDate>
			<description>I am trying to access the CycloneII_crc block  using the megafunction (cycloneii_crcblock). I have appended my code with this message. The code...</description>
			<content:encoded><![CDATA[<div>I am trying to access the CycloneII_crc block  using the megafunction (cycloneii_crcblock). I have appended my code with this message. The code compiles and synthesize and maps properly. However, when I try to run the timing simulations the output of the crc-block CRC_ERROR, REGOUT, always remain at undefined state. I tried several combinations of shiftnld and ldsrc. I suplied 50MHZ clock in the waveform, I ran the simulation for up to 50ms (which takes about 5mins to run)<br />
<br />
Any help will be appreciated.<br />
<br />
Thank you in advance.<br />
<br />
<br />
<br />
============my code=================================<br />
module light(a,  f, y, x1, x2,CLOCK_50, e, z,);<br />
input a, x1, x2;<br />
input CLOCK_50;<br />
output f, y, z;<br />
output e;<br />
assign f=(x1&amp;~x2)|(~x1&amp;x2);<br />
assign y= ~z;<br />
cycloneii_crcblock XOR_research<br />
(<br />
.clk(CLOCK_50),<br />
.shiftnld(a),<br />
.ldsrc(f),<br />
.crcerror(e),<br />
.regout(z)<br />
);<br />
<br />
endmodule</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>ptangella42</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35886</guid>
		</item>
		<item>
			<title>Quartus II Web Edition installation problem on Fedora Core 17</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35885&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 00:41:05 GMT</pubDate>
			<description>Installation has a problem: 
 
./11.1sp2_259_quartus_free_linux.sh  
Creating directory 11.1sp2_259_quartus_free_linux 
Verifying archive...</description>
			<content:encoded><![CDATA[<div>Installation has a problem:<br />
<br />
./11.1sp2_259_quartus_free_linux.sh <br />
Creating directory 11.1sp2_259_quartus_free_linux<br />
Verifying archive integrity... All good.<br />
Uncompressing Quartus II Web Edition (Free)............................................  ..................................................  ..................................................  ..................................................  .<br />
Welcome to Altera Software Installer<br />
Copyright (c) Altera Corporation 2011<br />
<br />
Nothing started up, so looking at the trace file as indicated:<br />
<br />
Traceback (most recent call last):<br />
  File &quot;&lt;string&gt;&quot;, line 14, in &lt;module&gt;<br />
  File &quot;/tools/python/2.6.4/linux32/pyinstaller/iu.py&quot;, line 436, in importHook<br />
  File &quot;/tools/python/2.6.4/linux32/pyinstaller/iu.py&quot;, line 495, in doimport<br />
  File &quot;/tools/python/2.6.4/linux32/pyinstaller/iu.py&quot;, line 297, in getmod<br />
  File &quot;/tools/python/2.6.4/linux32/pyinstaller/archive.py&quot;, line 468, in getmod<br />
  File &quot;/tools/python/2.6.4/linux32/pyinstaller/iu.py&quot;, line 109, in getmod<br />
ImportError: libXext.so.6: cannot open shared object file: No such file or directory<br />
<br />
My System:<br />
<br />
FC 17 beta (64-bit) on AMD64-based motherboard.   Is 64-bit a problem to install Quartus II web edition?</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=7">Quartus II and EDA Tools Discussion</category>
			<dc:creator>tthtlc</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35885</guid>
		</item>
		<item>
			<title>Problem with Always block</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35884&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 00:25:42 GMT</pubDate>
			<description>I have an Always block that is supposed to run when variable a assigned to 1. But it actually runs anytime when synthesising in Quartus. Can anyone...</description>
			<content:encoded><![CDATA[<div>I have an Always block that is supposed to run when variable a assigned to 1. But it actually runs anytime when synthesising in Quartus. Can anyone help me resolve it? :confused:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> module main;<br />
&nbsp; &nbsp; &nbsp;  bit a = 0;<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  always @ (a==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // Run code<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  end<br />
&nbsp;endmodule</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>notooth</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35884</guid>
		</item>
		<item>
			<title>Stratix IV PLL limits</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35883&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:57:25 GMT</pubDate>
			<description>Hi: 
 
I have a 2 fpga stratix iv board and I want to generate a 1 MHz synchronous clock 
in both. When I use the PLL, quartus refuses to let me give...</description>
			<content:encoded><![CDATA[<div>Hi:<br />
<br />
I have a 2 fpga stratix iv board and I want to generate a 1 MHz synchronous clock<br />
in both. When I use the PLL, quartus refuses to let me give a clock slower than 5MHz<br />
to the PLL.  How can I do this with a PLL?<br />
<br />
thanks.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=7">Quartus II and EDA Tools Discussion</category>
			<dc:creator>vvr108</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35883</guid>
		</item>
		<item>
			<title>EP600 programming</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35882&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:40:33 GMT</pubDate>
			<description><![CDATA[I used some of these about 20 years ago. The need has arisen to modify a program (one which I didn't write) and program a handful of chips with the...]]></description>
			<content:encoded><![CDATA[<div>I used some of these about 20 years ago. The need has arisen to modify a program (one which I didn't write) and program a handful of chips with the new code.<br />
 <br />
Can someone tell me if I'm on the right tracks?<br />
 <br />
I think I can use MAX PLUS+2 for this.  Also a program called PLDshell (which I think I used to use).  It seems these two programs are easily available.  Even though PLD is a dos program (?).<br />
 <br />
I think there should be folks around who still have programmers supporting this chip.  My first approach will be to find someone I can send chips and a file to.<br />
 <br />
If that fails, second approach will be to buy a used programmer.  Does anybody here know which ones support the chip?<br />
 <br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=4">FPGA, Hardcopy, and CPLD Discussion</category>
			<dc:creator>tfkeel</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35882</guid>
		</item>
		<item>
			<title>Detecting Jtag connection</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35881&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 20:24:14 GMT</pubDate>
			<description>I want to be able to detect if the Jtag USB Blaster is connected, or if it is and connected to the NIOS II debugger.  Is there a simple address to...</description>
			<content:encoded><![CDATA[<div>I want to be able to detect if the Jtag USB Blaster is connected, or if it is and connected to the NIOS II debugger.  Is there a simple address to read to check for its presence?<br />
<br />
I have my own I/O (printf, puts, gets, getchar, etc.) which I direct to Telnet if connected, RS-232 serial otherwise, unless there is a Jtag uart in which case I use it. I use my own Jtag serial code (because it's way more efficient and smaller).  I notice Altera code runs a timer and clears the &quot;presence&quot; state if the timer times out and there is no Jtag activity (AC bit in Jtag control).  I use my own code because I don't want the alt_alarm and ioctl baggage while still being able to detect if the Jtag is connected.<br />
<br />
There has to be a better way than running a timer looking for activity.  I set in my Jtag ISR a &quot;JtagPresent&quot; variable but when running in the debugger I don't get an interrupt to set this flag.  This would be enough for me to know to use Jtag over the real serial port.<br />
<br />
Is there a way using the hardware (not altera driver) to detect if the Jtag is present or not?<br />
<br />
Thanks,<br />
Bill</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=44">General Discussion Forum</category>
			<dc:creator>BillA</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35881</guid>
		</item>
		<item>
			<title>Read program from EP1810LC</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35880&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 19:07:58 GMT</pubDate>
			<description>Hello all, is it possible to read the programming file from an EP1810LC, save it and them use that file to program a different EP1810LC? 
 
We have...</description>
			<content:encoded><![CDATA[<div>Hello all, is it possible to read the programming file from an EP1810LC, save it and them use that file to program a different EP1810LC?<br />
<br />
We have some old boards that we need to replicate, but the CPLD source code and programming files are whereabouts unknown (it was not our design).<br />
<br />
Thanks in advance!</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=4">FPGA, Hardcopy, and CPLD Discussion</category>
			<dc:creator>Awann</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35880</guid>
		</item>
		<item>
			<title>Graphical interface using NIOSII</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35879&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 16:55:51 GMT</pubDate>
			<description>Hi, 
i want to implement a software to control some buttons and leds via Graphical interface. 
Can some one tell how to do this with NIOS. 
 
thank...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
i want to implement a software to control some buttons and leds via Graphical interface.<br />
Can some one tell how to do this with NIOS.<br />
<br />
thank you.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=49">General Software Forum</category>
			<dc:creator>patriciocordeiro</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35879</guid>
		</item>
		<item>
			<title>DE2 SDRAM/SOPC NiosII to Multisim help</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35878&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 16:09:27 GMT</pubDate>
			<description>Howdy, new to the forums, sorry if this is a repost but I could not find exactly what I was looking for. 
 
My current goal 
1. Create a VHDL design...</description>
			<content:encoded><![CDATA[<div>Howdy, new to the forums, sorry if this is a repost but I could not find exactly what I was looking for.<br />
<br />
My current goal<br />
1. Create a VHDL design that can make use of the SDRAM on the DE2 development board. <br />
2. Once it is shown to work on the LEDS I need to simulate it in mulitsim.<br />
<br />
So far the best option I have found is to use the SOPC builder and add the SDRAM controller though the NiosII processor.<br />
This and using the assembly file from the &quot;Using the SDRAM memory on the Altera's DE2 Board with VHDL design&quot; Altera Tutorial I was able to make the LEDS light up from the data sent to the SDRAM (part 1 complete)<br />
<br />
However, I am having one hell of a time getting anything to run in multisim. Using the SOPC builder I tell it to also create simulation files when I create the SDRAM controller portion of the system, but there are read and write operations that make multisim fatal error before it can simulate.<br />
<br />
So the last option I found was to follow these steps<br />
In SOPC builder choose Tools --&gt; Options...<br />
once in here there is a dropdown menu that shows MentorGraphics ModelSim - Altera. which is what I want, but when try to choose the application path it will not let me actually choose the .exe file, it just will not show up.<br />
So I tried just chosing the containg folder where the multisim.exe was located.<br />
<br />
But obviously since i am posting here this refuses to work<br />
I end up getting these 2 errors<br />
<br />
Error: Could not find the simulator file unnamed_sim.mpf in \\mtucifs3\home\desktop\EET\AInternship\Sdram_Sopc  Builder\JustSdram\unnamed_sim <br />
<br />
Info: If you have not set the HDL Simulator Path (under Tools &gt; Options), do so and regenerate.<br />
<br />
Any help in this matter would be hugely appreciated :-P</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=7">Quartus II and EDA Tools Discussion</category>
			<dc:creator>latofte</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35878</guid>
		</item>
		<item>
			<title>Can CPU win arbitration during DMA operation to the same data bus?</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35877&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 15:39:36 GMT</pubDate>
			<description>Hi all 
 
I am using the SOPC builder for my NIOS II system design.  
I am having the 1Mx16 SSRAM and the 4Gb Nand Flash both sitting on the same...</description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
I am using the SOPC builder for my NIOS II system design. <br />
I am having the 1Mx16 SSRAM and the 4Gb Nand Flash both sitting on the same data bus.<br />
The SSRAM is for NIOS II cpu instruction and data. The Nand Flash is for storage of the acquistion data. Form time to time, I will be doing a DMA to burst 2K byte of data from the Nand Flash to an external IO port. <br />
<br />
My question is: Can I do this without real time consequence. <br />
<br />
While the DMA is in the middle of pulling 2K data from the flash, if the CPU also need to do read/write to the SSRAM, how will it impact the performance. Will the CPU need to wait all 2K of data pulled out before it can touch the SSRAM again. Or the CPU will win the arbitration and touch the SSRAM first before the DMA finish (such that the performance impact is minimize)?<br />
<br />
Thanks<br />
Steve Chan</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>YChan5</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35877</guid>
		</item>
		<item>
			<title>Checksum for flash memory</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35876&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 14:35:50 GMT</pubDate>
			<description>Greetings.  
  
If I am pulling data from the EPCS64 How many bits can I pull off it at a time 8 , 16, 32?  
  
Is there a quick and easy way to...</description>
			<content:encoded><![CDATA[<div>Greetings. <br />
 <br />
If I am pulling data from the EPCS64 How many bits can I pull off it at a time 8 , 16, 32? <br />
 <br />
Is there a quick and easy way to create a checksum to check the data? I've never implimented one before and am unsure where to start. Thanks</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>GE_Bill</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35876</guid>
		</item>
		<item>
			<title>interleave two ad9288 to cyclone iii</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35875&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 14:02:28 GMT</pubDate>
			<description>I wish to connect two AD9288 (fast ADC) with interleave method , four  clocks with 90 degree phase shift of 125MHz are connected to two AD9288 ,...</description>
			<content:encoded><![CDATA[<div>I wish to connect two AD9288 (fast ADC) with interleave method , four  clocks with 90 degree phase shift of 125MHz are connected to two AD9288 , their output are passed to cyclone iii FPGA for processing , so I ask if this equivalent to 500MHz signal input to cyclone iii ?? can they handled this fast I/O signal ???</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>lgeorge123</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35875</guid>
		</item>
		<item>
			<title>PCIe and WinDriver problem</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35874&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 13:43:34 GMT</pubDate>
			<description>hi friends, 
 
i have a problem if you can help me please: 
 i am working in the C IV GX fpga with the PCIe, i want to connect my board to the my...</description>
			<content:encoded><![CDATA[<div>hi friends,<br />
<br />
i have a problem if you can help me please:<br />
 i am working in the C IV GX fpga with the PCIe, i want to connect my board to the my host PC. for that , i'm using the windriver with MS visual studio. <br />
i can read and write on the on-chip memory from the windriver's GUI, it works without any problem. but when i run the application generated by windriver in the MS Visual Studio it shows me this error :<br />
<br />
 DeviceOpen: Failed opening a handle to the device: Failed opening a WDC device handle. Error 0x2000000e - Resource overlap<br />
<br />
i don't know how to resolve this problem.<br />
<br />
pleace can you help me and thnx</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=31">Development Kit Related</category>
			<dc:creator>casamar</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35874</guid>
		</item>
		<item>
			<title>Phase - NCO Calculation overtime</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35873&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 12:38:54 GMT</pubDate>
			<description><![CDATA[I'm trying to determine the generic equation to determine what the phase (NCO output) should be after a certain number of clocks.  The phase is...]]></description>
			<content:encoded><![CDATA[<div><font face="Arial">I'm trying to determine the generic equation to determine what the phase (NCO output) should be after a certain number of clocks.  The phase is derived from to accumulators.  The FTW accumulator and NCO accumulator.</font><br />
 <br />
<font face="Arial">By using the distance equation &quot;x = <font color="#1f497d"><font face="Calibri">x0 + v0*t+(.5*a*t*t)-(.5*a*t)</font></font>&quot;, I am able to calculate the phase if the FTW is always going in the positive or negative.  What if the FTW is going both positive and negative (triangle or sawtooth wave)?  </font><br />
<br />
<font color="#1f497d"><font face="Calibri"><font face="Arial"><font color="black">FYI...</font></font></font></font><br />
<font color="#1f497d"><font face="Calibri"><font face="Arial"><font color="black">x0 = 0</font></font></font></font><br />
<font color="#1f497d"><font face="Calibri"><font face="Arial"><font color="black">v0 = Starting Freq</font></font></font></font><br />
<font color="#1f497d"><font face="Calibri"><font face="Arial"><font color="black">a = Step Size<br />
t = number of clocks</font></font></font></font></div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>mue103</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35873</guid>
		</item>
		<item>
			<title>Quartusii compile</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35872&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 11:29:41 GMT</pubDate>
			<description>Hi, 
 
I am developing with cycloneIV. 
The system contains large IPcores such as ATAN and DDRSDRAM. 
It takes a while when I compile the project. 
...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am developing with cycloneIV.<br />
The system contains large IPcores such as ATAN and DDRSDRAM.<br />
It takes a while when I compile the project.<br />
<br />
But matter is that when I compiled the project on the other PC.<br />
The process failed because of memory space.<br />
<br />
My pc has 8GB with Windows7 64bit OS<br />
the other one os 4GB with WindowsXP 32 bit.<br />
<br />
But 4GB is largest number for 32bit OS isn't it?<br />
<br />
Do I need 64 bits OS as long as I maintain this kind of system?</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=7">Quartus II and EDA Tools Discussion</category>
			<dc:creator>akira</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35872</guid>
		</item>
		<item>
			<title>i2c from altera wiki</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35870&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 08:51:53 GMT</pubDate>
			<description><![CDATA[Hi all 
 
I've downloaded the i2c ip from altera wiki and simulated it in Nios II with ModelSim-Altera. 
...]]></description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
I've downloaded the i2c ip from altera wiki and simulated it in Nios II with ModelSim-Altera.<br />
<a href="http://www.alterawiki.com/wiki/OpenCores_I2c" target="_blank"><br />
http://www.alterawiki.com/wiki/OpenCores_I2c<br />
</a><br />
The attached picture is my simulation result.<br />
My problem is why the sda and scl are always 0.<br />
<br />
My C code is basically to enable the i2c ip and to send start condition, address(0x3f), and data.  <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">I2C_init(OPENCORES_I2C_BASE, 100000000, 100000);<br />
I2C_start(OPENCORES_I2C_BASE, 0x3f, 0); // 3f &lt;&lt; 1<br />
I2C_write(OPENCORES_I2C_BASE, 3, 0);<br />
I2C_write(OPENCORES_I2C_BASE, 0xf0, 1);</code><hr />
</div>From the simulation result, the prescale register becomes 0x00c7 as expected.<br />
(100MHz/5/100KHz-1 = 0x00c7)<br />
The register txr becomes 0x7e which stands for the slave address 0x3f and writing operation.<br />
The status register shows TIP (transfer in progress) but there's no change on the sda and scl signals.<br />
<br />
I check &quot;i2c_master_bit_ctrl.v&quot; and find the following code. I guess this is why sda and scal are always 0 but I'm not sure about it.<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// assign scl and sda output (always gnd)<br />
assign scl_o = 1'b0;<br />
assign sda_o = 1'b0;</code><hr />
</div>I believe there must be someone who has used this IP successfully.<br />
Should I modify the verilog code and is there anything missing in my design?</div>


	<br />
	<div style="padding:6px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.alteraforum.com/forum//proweb/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.alteraforum.com/forum/attachment.php?attachmentid=5880&amp;d=1337243505">i2c_nios2_sim.jpg</a> (373.1 KB)</td>
</tr>
			</table>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=10">IP Discussion</category>
			<dc:creator>YUFU0511</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35870</guid>
		</item>
		<item>
			<title>Problem with NIOS</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35869&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 08:49:30 GMT</pubDate>
			<description><![CDATA[I don't know operation 
Ex:  
Kiem_tra_N_va_Xuat_LED: 
	call 	CheckN1 
	call 	CheckN2 
	call 	CheckN3 
	call 	Check3N 
	call	OutLED 
	br 	-44 
Why br...]]></description>
			<content:encoded><![CDATA[<div>I don't know operation<br />
Ex: <br />
Kiem_tra_N_va_Xuat_LED:<br />
	call 	CheckN1<br />
	call 	CheckN2<br />
	call 	CheckN3<br />
	call 	Check3N<br />
	call	OutLED<br />
	br 	-44<br />
Why br -44    ?????<br />
Thank you everyone. Thank you very much</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=58">Nios II C-to-Hardware Acceleration</category>
			<dc:creator>i1020242</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35869</guid>
		</item>
		<item>
			<title>NIOS II IDE Problem</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35868&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 05:03:52 GMT</pubDate>
			<description><![CDATA[hello,everyone!I'm new to NIOS II .I encountered a problem when I built a project recently.Here are the warnings: 
Linking hello_world_0.elf... 
    ...]]></description>
			<content:encoded><![CDATA[<div>hello,everyone!I'm new to NIOS II .I encountered a problem when I built a project recently.Here are the warnings:<br />
Linking hello_world_0.elf...<br />
      1 [main] nios2-elf-g++ 9224 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000135, errno 11<br />
1578603 [main] nios2-elf-g++ 9224 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000135, errno 11<br />
3868304 [main] nios2-elf-g++ 9224 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000135, errno 11<br />
8159532 [main] nios2-elf-g++ 9224 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000135, errno 11<br />
nios2-elf-g++: fork: Resource temporarily unavailable<br />
make: *** [hello_world_0.elf] Error 1<br />
How can I solve this probem?thanks in advance!</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=49">General Software Forum</category>
			<dc:creator>llwhrbust</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35868</guid>
		</item>
		<item>
			<title>PCIe HIP on Sandy Bridge E</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35867&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 04:31:07 GMT</pubDate>
			<description>Hello all, 
 
I am working on a project with SIV utilizing the PCIe 2.0 HIP as a legacy endpoint. Things have been working quite well for us at...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
I am working on a project with SIV utilizing the PCIe 2.0 HIP as a legacy endpoint. Things have been working quite well for us at first, but recently we have run into an issue on certain platforms; specifically Sandy Bridge E.<br />
<br />
With a LeCroy PCIe Analyzer, I see that a bad TLP is being sent to the Root Complex from our FPGA. Typically it has been a undefined format and type, but I have caught it as a CplLk TLP -- something my TLP-layer logic would not send. I used SignalTap to examine all the headers I send to the HIP and cannot find any issue in our code, and none of these bad headers. After this TLP is sent, all upstream TLPs are malformed -- they almost appears to be shifted (i.e. I see 0x4A00010 in the address field, a possible CplD).<br />
<br />
I really don't know where to begin on this one. I have tried it on Sandy Bridge platforms and everything functions as expected (all under centOS). My next step is to use a reference design to see how it behaves in this system.<br />
<br />
Has anyone else run into this problem? Any suggestions from the community? Thanks in advance.<br />
<br />
Jay</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=10">IP Discussion</category>
			<dc:creator>jcosper</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35867</guid>
		</item>
		<item>
			<title>Cyclone IV Programmer Failed</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35865&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 00:52:48 GMT</pubDate>
			<description><![CDATA[Hi, i am trying to use Quartus 10.1 Programmer to transfer my code to the fpga (DE0-Nano) but i it says "Failed" all the time... i did the pin...]]></description>
			<content:encoded><![CDATA[<div>Hi, i am trying to use Quartus 10.1 Programmer to transfer my code to the fpga (DE0-Nano) but i it says &quot;Failed&quot; all the time... i did the pin planner for the  EP4CE6F17C6 using the ones from the DE0-Nano user manual,l but it uses  EP4CE6F17C6N not EP4CE6F17C6, how can i solve this? Ty</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=4">FPGA, Hardcopy, and CPLD Discussion</category>
			<dc:creator>rgPaiva</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35865</guid>
		</item>
	</channel>
</rss>

