<?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 - General Altera Discussion</title>
		<link>http://www.alteraforum.com/forum/</link>
		<description>A place to discuss topics on general Altera products, applications and development</description>
		<language>en</language>
		<lastBuildDate>Fri, 18 May 2012 02:00:12 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.alteraforum.com/forum//proweb/misc/rss.jpg</url>
			<title>Altera Forums - General Altera Discussion</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>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>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>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>Cent OS 6.2 Support</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35863&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 22:31:04 GMT</pubDate>
			<description>Hi,  
 
Does anybody knows when support for CenOS 6.2 will be available?  
I am already using 6.2 but in website the supported OSs are only 4 and 5....</description>
			<content:encoded><![CDATA[<div>Hi, <br />
<br />
Does anybody knows when support for CenOS 6.2 will be available? <br />
I am already using 6.2 but in website the supported OSs are only 4 and 5.<br />
<br />
I have subscription full license.<br />
<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>fgnicodemos</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35863</guid>
		</item>
		<item>
			<title>Flashing NIOS Sw</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35860&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:27:07 GMT</pubDate>
			<description>Have been debugging SW via JTAG port.  Now that it works, would like to flash it.  Am using eclipse and seem to recall that somewhere you can specify...</description>
			<content:encoded><![CDATA[<div>Have been debugging SW via JTAG port.  Now that it works, would like to flash it.  Am using eclipse and seem to recall that somewhere you can specify the load addresses.  But can't seem to find where I configure it.  Could someone point me in the right direction (What menu tree chain gets me there).  Thanks in advance,<br />
ME</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>MarkEverly</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35860</guid>
		</item>
		<item>
			<title>HELP me in RS232</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35856&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 11:56:06 GMT</pubDate>
			<description>can anyone have a look in this coding.....my project using 2 de2-70 board. i want to send data captured from one de2-70 board to another de2-70 board...</description>
			<content:encoded><![CDATA[<div>can anyone have a look in this coding.....my project using 2 de2-70 board. i want to send data captured from one de2-70 board to another de2-70 board by using rs232. anyone have done this before?urgent..can share some coding here?</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>cycy</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35856</guid>
		</item>
		<item>
			<title>registers in custom component and their address offset</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35847&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 05:47:35 GMT</pubDate>
			<description><![CDATA[Hi all 
 
I'm wondering how NiosII defines the address offset for the registers in a custom component. 
 
For example, I download a PWM verilog code...]]></description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
I'm wondering how NiosII defines the address offset for the registers in a custom component.<br />
<br />
For example, I download a PWM verilog code from internet and generate a custom component which has an Avalon-MM interface to NiosII in Qsys component editor.  <br />
<br />
This is the PWM verilog code<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 avalon_pwm(<br />
&nbsp; &nbsp; &nbsp; &nbsp; clk, <br />
&nbsp; &nbsp; &nbsp; &nbsp; wr_data,<br />
&nbsp; &nbsp; &nbsp; &nbsp; cs,<br />
&nbsp; &nbsp; &nbsp; &nbsp; wr_n,<br />
&nbsp; &nbsp; &nbsp; &nbsp; addr,<br />
&nbsp; &nbsp; &nbsp; &nbsp; clr_n,<br />
&nbsp; &nbsp; &nbsp; &nbsp; rd_data,<br />
&nbsp; &nbsp; &nbsp; &nbsp; pwm_out<br />
&nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; input clk;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input [31:0]wr_data;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input cs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input wr_n;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input addr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input clr_n;<br />
&nbsp; &nbsp; &nbsp; &nbsp; output [31:0]rd_data;<br />
&nbsp; &nbsp; &nbsp; &nbsp; output pwm_out;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; reg [31:0]div;<br />
&nbsp; &nbsp; &nbsp; &nbsp; reg [31:0]duty;<br />
&nbsp; &nbsp; &nbsp; &nbsp; reg [31:0]counter;<br />
&nbsp; &nbsp; &nbsp; &nbsp; reg off;<br />
&nbsp; &nbsp; &nbsp; &nbsp; reg [31:0]rd_data;<br />
&nbsp; &nbsp; &nbsp; &nbsp; wire div_en;<br />
&nbsp; &nbsp; &nbsp; &nbsp; wire duty_en;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // write div or duty <br />
&nbsp; &nbsp; &nbsp; &nbsp; always@(posedge clk or negedge clr_n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(clr_n == 1'b0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; div &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; duty &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(div_en) div &lt;= wr_data;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(duty_en) duty &lt;= wr_data;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // counter<br />
&nbsp; &nbsp; &nbsp; &nbsp; always@(posedge clk or negedge clr_n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(clr_n == 1'b0) counter &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(counter &gt;= (div-1)) counter &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else counter &lt;= counter + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // PWM<br />
&nbsp; &nbsp; &nbsp; &nbsp; always@(posedge clk or negedge clr_n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(clr_n == 0) off &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(counter &gt;= duty) off &lt;= 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(counter == 0) off &lt;= 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // read div or duty<br />
&nbsp; &nbsp; &nbsp; &nbsp; always@(addr or div or duty)<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(addr == 0) rd_data = div;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else rd_data = duty;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; assign div_en = cs &amp; !wr_n &amp; !addr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; assign duty_en = cs &amp; !wr_n &amp; addr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; assign pwm_out = !off;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
endmodule</code><hr />
</div>When I connect this PWM component to NiosII in Qsys and set the base address to 0x00041010, the end address becomes 0x00041017. So I guess there're 8 registers which can be accessed with the IOWR/IORD marcos by a C program on NiosII.<br />
<br />
This is the code related to this PWM component in system.h<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">#define ALT_MODULE_CLASS_pwm avalon_pwm<br />
#define PWM_BASE 0x41010<br />
#define PWM_IRQ -1<br />
#define PWM_IRQ_INTERRUPT_CONTROLLER_ID -1<br />
#define PWM_NAME &quot;/dev/pwm&quot;<br />
#define PWM_SPAN 8<br />
#define PWM_TYPE &quot;avalon_pwm&quot;</code><hr />
</div>I can use IOWR(PWM_BASE, 0, xxx) to set the div and IOWR(PWM_BASE, 1, xxx) to set the duty to have a PWM signal in different duty cycle. <br />
<br />
My question is how to know which signals in the Verilog code are corresponding to the registers from 0x00041010 to 0x00041017.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>YUFU0511</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35847</guid>
		</item>
		<item>
			<title>Missing Chip Package</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35846&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 04:47:23 GMT</pubDate>
			<description>Environment: Quartus II Web edition 9.1 SP2, MAX7000S series. 
 
In the Device Selection dialog box the Available Devices list shows PLCC-44 and...</description>
			<content:encoded><![CDATA[<div>Environment: Quartus II Web edition 9.1 SP2, MAX7000S series.<br />
<br />
In the Device Selection dialog box the Available Devices list shows PLCC-44 and PLCC-84 packages but not the PLCC-68. Are there options for me?<br />
<br />
Regards - Workalot</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>Workalot</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35846</guid>
		</item>
		<item>
			<title>Chipselect in Avalon Interfaces</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35836&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 20:51:26 GMT</pubDate>
			<description>Hi all, 
 
I am getting used to using Quartus II and Qsys after being a long time Xilinx FPGA designer. 
 
Question or request for clarification. ...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am getting used to using Quartus II and Qsys after being a long time Xilinx FPGA designer.<br />
<br />
Question or request for clarification.  Altera says in the Avalon Interface Spec that<br />
<br />
&quot;The chipselect signal is not necessary; Altera does not recommend using it.&quot;<br />
<br />
I have a distributed architecture where several modules hang on the Avalon bus.  I have assigned the memory map for each module and run a compilation without errors.<br />
<br />
What I am not seeing is just how the memory map is applied to the distributed modules?  I tried making the Avalon bus address the full 32 bits thinking that Qsys would use the upper addresses to partition the memory map assignments, but ran into problems.  The memory map thought each module occupied the full 32 address bits and balked.  So, I reduced the Address bus back to just the bits for that module.<br />
<br />
I can see assigning Chipselects in the master and connecting each module to it's own chipselect, but this seems to fly in the face of Altera statement above about chipselects not being necessary.<br />
<br />
Unfortunately, I am one of these guys that can't rest without a good understanding, and this one confuses me.<br />
<br />
Any comment?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>m13engr</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35836</guid>
		</item>
		<item>
			<title>Verilog task driving a bidirectional bus</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35834&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 19:46:53 GMT</pubDate>
			<description><![CDATA[I'm using SystemVerilog, writing a test bench to test a device that has a bidirectional bus. I have been successful directly writing a sequence of...]]></description>
			<content:encoded><![CDATA[<div>I'm using SystemVerilog, writing a test bench to test a device that has a bidirectional bus. I have been successful directly writing a sequence of statements that put the data on the bus and pulse the write line. But that is cumbersome to write a lot of data. So I want to use the Verilog task capability. I can't seem to get it to drive the bus at all.<br />
Here is the code simplified:<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 test();<br />
&nbsp; wire [7:0] data;&nbsp; // the bidirectional data bus<br />
&nbsp; reg wr;&nbsp; // the write enable line<br />
&nbsp; logic [7:0] send_data; // the register for writing data<br />
<br />
&nbsp; my_device u1(<br />
&nbsp; &nbsp; .data,<br />
&nbsp; &nbsp; .wr<br />
&nbsp; &nbsp; );<br />
<br />
&nbsp; assign data = send_data;<br />
<br />
&nbsp; initial begin<br />
&nbsp; &nbsp; write_gpbus(8'h08);<br />
&nbsp; end<br />
<br />
&nbsp; task write_gpbus;<br />
&nbsp; &nbsp; input reg [7:0] data_to_send;<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; send_data = data_to_send;<br />
&nbsp; &nbsp; &nbsp; #50ns wr = 1'b1;<br />
&nbsp; &nbsp; &nbsp; #50ns wr = 1'b0;<br />
&nbsp; &nbsp; end<br />
<br />
endmodule</code><hr />
</div>When I run this I can see send_data getting the correct value of the parameter passed into the task. But data (the actual bus) is always unknown, never gets a value.<br />
If I were to just write directly to the send_data not using the task (as in the code below), then data does get the value. What am I doing wrong here?<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">&nbsp; initial begin<br />
&nbsp; &nbsp; send_data = 8'h08;<br />
&nbsp; end</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>jrdesign</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35834</guid>
		</item>
		<item>
			<title>What Altera Dev board should I get?</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35832&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 13:16:35 GMT</pubDate>
			<description>I am looking to implement an embedded system which is going to control and orchestrate a whole bunch of fast switches on/off etc. 
 
Main...</description>
			<content:encoded><![CDATA[<div>I am looking to implement an embedded system which is going to control and orchestrate a whole bunch of fast switches on/off etc.<br />
<br />
Main requirements are that I need to talk to the board via serial or Ethernet from a GUI. And I need some high speed ADC and DAC on board. (150Msps+) I also could use some transceivers to send signals to other boards. I also prob want to stick with cyclone family for their price/size.<br />
<br />
I will probably code all the switching fabric in verilog and do the serial/ethernet communications with the Qsys/NIOS II. <br />
<br />
I found this kit to be a possibility:<br />
<a href="http://search.digikey.com/us/en/products/DK-DSP-3C120N/544-2566-ND/1832234" target="_blank">http://search.digikey.com/us/en/prod...566-ND/1832234</a><br />
<br />
Only downside is that it is a cyclone III and doesnt have transceivers. <br />
<br />
Any other suggestions?</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>templemark</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35832</guid>
		</item>
		<item>
			<title>Multi-Device AS Configuration with cyclone IV GX and cyclone III? +remote upgrade?</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35828&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 09:30:02 GMT</pubDate>
			<description>Hi, 
 
I have a system using 2 different FPGA: 1 cyclone IV GX (master) and 1 cyclone III (slave). The cyclone IV uses AS configuration to boot from...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a system using 2 different FPGA: 1 cyclone IV GX (master) and 1 cyclone III (slave). The cyclone IV uses AS configuration to boot from epcs and then programs the cyclone III in PS mode.<br />
I would like to upgrade this system.<br />
<br />
Is it possible to use a multi-Device AS Configuration with 2 different .sof with 2 different FPGA?<br />
I also need to use the remote upgrade function. Is it compatible with multi-sof configuration?<br />
I don't understand well how the FPGA manages multiple sof (epcs address, sof selection...), is there some examples?<br />
<br />
I would like to use something like that:<br />
-----EPCS-----<br />
@0<br />
.sof cycIV factory<br />
.sof cycIII factory<br />
@X<br />
.sof cycIV user<br />
.sof cycIII user<br />
With remote upgrade function manage by cyclone IV.<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>SebastienG</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35828</guid>
		</item>
		<item>
			<title>Yes No question (Using FPGA as a wire)</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35826&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 08:59:34 GMT</pubDate>
			<description>1-Can I use FPGA, just as a wire, to carry a bidirectional line like I2C SDA from one pin of the FPGA to the other pin of the FPGA. In the FPGA there...</description>
			<content:encoded><![CDATA[<div>1-Can I use FPGA, just as a wire, to carry a bidirectional line like I2C SDA from one pin of the FPGA to the other pin of the FPGA. In the FPGA there will not be an i2c master or slave it will just route the signal from one side to the other side. Both of the sides should be able to drive the SDA signal(bidirectional)<br />
 <br />
 <br />
WHY :<br />
I2c master and i2c slave is <u>not</u> physically connected to each other on the PCB BOARD. But they are physically connected to FPGA (Cyclone II EP2C20F484C8)</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=5868&amp;d=1337072365">bidirectional.JPG</a> (108.0 KB)</td>
</tr>
			</table>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>Drogio</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35826</guid>
		</item>
		<item>
			<title>Problem with trigger</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35819&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 03:57:58 GMT</pubDate>
			<description>I compiled with an error in Quartus. Can anyone help me fix this issue? 
 
 
Code: 
--------- 
 module main; 
       event e; 
        
      ...</description>
			<content:encoded><![CDATA[<div>I compiled with an error in Quartus. Can anyone help me fix this issue?<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;  event e;<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  initial<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  wait(e.triggered);&nbsp; <b>// Error here</b><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp;  endmodule</code><hr />
</div><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">Error (10733): Verilog HDL error: triggered is not declared under this prefix</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=35819</guid>
		</item>
		<item>
			<title>FPGA code for elevators(graduation project)</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35815&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 20:09:26 GMT</pubDate>
			<description>hey everybody, 
im new to this forum as im new to altera and FPGA language.. i have been taking a course in univerisity ( 4th year telecom...</description>
			<content:encoded><![CDATA[<div>hey everybody,<br />
im new to this forum as im new to altera and FPGA language.. i have been taking a course in univerisity ( 4th year telecom engineering) called  &quot;architecture of micropocesser and open core&quot;   <br />
<br />
as a graduation project, i am thinking of doing a elevator board (lifts) in FPGA..<br />
the question is: <br />
-im i qualified to do it?<br />
-is it realiable?<br />
-and what do you think i should focus on ( as u know, a graduation project should have an added value.<br />
<br />
<br />
thanks alot guys.. im already getting hooked to this forum.<br />
looking forward for your answers</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>telecom_1234</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35815</guid>
		</item>
		<item>
			<title>How to make business-related inquiries of Altera?</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35814&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 19:38:24 GMT</pubDate>
			<description><![CDATA[I'd like to contact Altera to inquire about using their HardCopy devices.  I am aware of the technical documents available on the web site.  My...]]></description>
			<content:encoded><![CDATA[<div>I'd like to contact Altera to inquire about using their HardCopy devices.  I am aware of the technical documents available on the web site.  My questions are of a business nature, not a technical nature.<br />
<br />
I have searched the forum and web site for information on how to contact Altera about this topic, and have seen nothing other than a recommendation to contact my local field office.  When I called my local field office, I was given only a list of names to choose from.  I tried each of the names one at a time and was met only with voicemail each time, despite contacting them during normal business hours.<br />
<br />
Can someone from Altera please contact me regarding this?  Or at least provide me with suitable contact information so that I may try inquiring again?  This would be for the Washington DC area.</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>openasics</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35814</guid>
		</item>
		<item>
			<title>Dual port RAM synchronisation</title>
			<link>http://www.alteraforum.com/forum/showthread.php?t=35811&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 13:51:51 GMT</pubDate>
			<description>Sorry if this post is in the wrong group. 
 
We have a system where a NIOS application communicates with a PC-104 style board via dual port RAM. 
...</description>
			<content:encoded><![CDATA[<div>Sorry if this post is in the wrong group.<br />
<br />
We have a system where a NIOS application communicates with a PC-104 style board via dual port RAM.<br />
<br />
Some of our tests indicate that if the NIOS is writing to the ram at exactly the same time the PC-104 reads the same location, we sometimes get 'partial reads'.  <br />
<br />
For example, if the NIOS writes 0x81 to RAM, it is possible the PC will read 0x80, then a few cycles later, will read 0x81.<br />
<br />
Our hardware guys (who designed the boards) say this is possible, but make out it's a software problem because we shouldn't be reading/writing to the same locations at the same time!<br />
<br />
Firstly, can anyone give any more insight to the problem (is there really no synchronisation on dual port ram), and perhaps some pointers as to how to solve it?</div>

]]></content:encoded>
			<category domain="http://www.alteraforum.com/forum/forumdisplay.php?f=2">General Altera Discussion</category>
			<dc:creator>soundman32</dc:creator>
			<guid isPermaLink="true">http://www.alteraforum.com/forum/showthread.php?t=35811</guid>
		</item>
	</channel>
</rss>

