Quantcast
Channel: Altera Forums
Viewing all 19390 articles
Browse latest View live

Adder with generic addend

$
0
0
Hi, i want to realize a shift register with a generic depth and sum the elements.
How can i write avhdl to realize a sum code with a generic number af addend?
Can i use for loop statement?

thanks

MAX 10 LVDS Transmitter

$
0
0
hello everyone and happy new year.





I'm on a new design with MAX 10 FPGA (16k logic & packaging F256).
I'm using the Bank 3 & 4 (They are optimised for LVDS Transition ) .
But, a Few pins of them are make as RX ,not TX & RX .

Are they only LVDS receiver capable ? :confused:

end where do you find the information about it ?:confused:

all the best,
thank you all for your help.

steven le mazou
Attached Images

errors qsys project

uC/OS-II Support for Bluetooth Driver

$
0
0
Dear everyone, I want to implement Bluetooth connection between Arduino and DE2-115 with VEEK_MT. For Arduino, I use a Bluetooth module with XBee Shield.
For FPGA, I'm planning to use Bluetooth USB Dongle as the Bluetooth receiver which will be inserted to the USB Host(type A).

Software and hardware that I used are modified from the VEEK_MT demonstration code called Picture Viewer. The NIOS II software used includes uc/OS-II.
Hence, I would like to ask if uC/OS-II have Bluetooth driver support so that it can detect the Bluetooth USB dongle once I plugged in?
If there is, how can I implement it?

I know that if using uClinux, there is Bluetooth driver support but i'm not sure about uC/OS-II.

Or is there any other method that I can implement the Bluetooth connection?
Thank you so much for your help :-D


For your information, this the the board I used and the demo code is available in the link below:
http://www.terasic.com.tw/cgi-bin/pa...o=670&PartNo=4

Cyclone V ALTLVDS_TX: MSB inversion and timing constraints

$
0
0
Hello everyone,

I'm designing a board with a Cyclone V driving a DAC running at 420MS/s using a parallel DDR interface. To achieve this datarate (840Mb/s per stream), there is an ALTLVDS_TX component with a serialization factor of 4, so that I can work with SDR signals at 210MHz internally. Achieving timing closure is still annoying enough, but should be possible. When checking the TimeQuest output, I found some automatically generated constraints which I don't really understand. In the document UG-MF9504 (https://www.altera.com/content/dam/a...altlvds.pdf#65), there is a timing diagram (fig. 15 on p. 65) showing the three clock signals driving the SERDES. My serialization factor is 4 and not 10, but the relationships are the same: c0 is running at 840MHz, c1 at 210MHz with (in my case) 45° advanced phase, 25% duty cycle and c2 is 210Mhz with 50% duty cycle. Now, as far as I can tell, c1 is the enable signal to latch the input data into the internal registers. This happens every four cycles of the fast clock c0, so in my opinion, the constraint should be something like
Code:

set_multicycle_path -setup -end 4 -to [get_pins { tx|ALTLVDS_TX_component|auto_generated|sd*|txin*}]
set_multicycle_path -hold  -end 4 -to [get_pins { tx|ALTLVDS_TX_component|auto_generated|sd*|txin*}]

But when checking the automatically generated constraints, I see a 3 there. This is also visible in the timing diagram of TimeQuest, the data is required to be stable after 3 cycles of c0. Why is that? I couldn't achieve timing closure this way, so I've overridden the constraint and, well, it works. But this obviously doesn't mean that it is also actually correct.

The other strange thing with this serializer is that I have to invert the MSB (the first serial bit per word) of each stream. This is not a problem to do as soon as one knows it, but what is the reason for this behaviour? I also wasn't able to find any statement about that in the documentation at least, but maybe I've just overlooked it. Is this an anomaly of my design, or is this usual and designers are just expected to know it?

Thanks!

Best regards,
Philipp

FPGA and video camera input

$
0
0
Hi,

I am currently looking for a platform which feeds a camera's input to an FPGA where I can do some harware accelerated image processing. I need to have a camrea that can feed in pixels to an FPGA, and then the FPGA can process the pixels. I have found solutions that use embedded cores or a PC to grab the image, but my objective is to feed the pixels directally into the FPGA as soon as they come in. Any help would be great.

Question regarding pulse generation

$
0
0
Hello,

I am a very new user to verilog hdl and unfortunately I don't use it as often so I have to re-learn when I do. I have a simple application where I need to generate a pulse with a duration of 50nS on either the falling edge or rising edge of another signal input and was wondering as to how to approach this in a simple verily statement. Any help would be greatly appreciated. BTW I will be using a 20 or 50 MHz master clock for this device and most likely I will be using a CPLD type device like the MAX3000

Channel Deadlock Debugging

$
0
0
I've developed a design in which there are 4 NDRange kernels all running concurrently on the FPGA and communicating with each other via the Altera OpencL Channels extension. There are many channels in the program , however it is inherently cyclical as the data is passed in a circle around the 4 kernels. I know this design isn't recommended by Altera (as it can't optimize the channel depths), however I'm trying to look at all possible architectures to get the best throughput. But I'm having a problem while running it.

I developed and tested the kernel using the emulator successfully. Everything was functional and produced promising correct results during emulation. However, after completing the full compilation and running the kernels, they seem to enter a deadlock state. I'm assuming this only happens after full compilation due to the kernels operating concurrently.

Does anyone have any suggestions for debugging kernels that won't come to completion? The solution I have right now uses global memory and an independent queue that continuously transfers over the data from global memory, but it seems inefficient.

design examples, qsys and base addresses

$
0
0
Im working through a web server design example. It has an iniche stack. I rebuild the qsys to reflect the newer quartus version changes. i made no other changes, but i did update the base addresses prior to generation.

It compiled fine and loaded into Nios fine. But when i ran it, the iniche stack did not start. iniche_net_ready never goes true.

I tried a few things to get it working, but eventually just started fresh with a new copy example again. This time, I did not update the base addresses.

I ran it and the iniche stack came up and functioned as normal.

I experimented and updated the base addresses again... didnt work. new copy, works fine.

So whats the deal with updating the base addresses?

I would think that updating the addresses would be reflected in the system.h file and that i wouldnt have this non-functional issue, but i must be missing something.

Any ideas why updating the base addresses might cause the iniche not to start?

thanks

why quartus 13.0 doesn't have a "NIOS II Instruction Set Simulator"

$
0
0
Hello!
I want to run a NIOS "hello world" example with quartus(Version 13.0). But after I customize the NIOS CPU and use "Tools->NIOS II Software Build Tools for Eclipse" to write the hello-world C program and "Run as NIOS II hardware". I find that I am always faced the problem of blank "Target Connection" and it is useless to click "Refresh Connections". The screen-shot is as follows.

Is it because that I need a Altera-provided hardware platform to run this example?
And I saw some documents online with "Run as NIOS II Instruction Set Simulator" in Eclipse. As for this, I want to ask why my quartus doesn't have this run option?
Attached Images

How to read the VK2828U7G5LF GPS module using DE0-Nano

$
0
0
Hi, i'm a newbie to the fpga.
I'm facing the problem when i try to read the data directly from a VK2828U7G5LF GPS module because the DE0-Nano without going through the PC.
The GPS interfacing can be UART/TTL and RS232 is optional to use.
i'm more likely to interface the GPS directly to the DE0-nano and decoded the data acquired.
Can anyone help me in this problem or any suggestion.
Thank you.
Attached Files

Bluetooth Implementation in DE2-115 with uClinux

$
0
0
Hi everyone,

I want to implement Bluetooth in Altera DE2-115. The board has a USB Host (CY7C67200).
I'm considering to use a Bluetooth USB dongle to plug into this usb host to receive data from Arduino (which has a Bluetooth module with XBee-shield).

I heard that uClinux has a Bluetooth driver support. But I still have no idea on how to use it and integrate with my project.

Can anyone help me?
How can I add the driver to the board so that it can detect that a Bluetooth dongle is inserted? Do I need to add anything to Qsys? and how can I read the data received by Bluetooth by writing C program in Nios II Software Build Tool for Eclipse? or anything I need to do to achieve it?

I'm still new to FPGA, please help to explain in more details if possible. Please tell me if there is any other better suggestion in implementing Bluetooth to FPGA.
Thank you very much for your help. :-)

DE0-Nano-SoC: How HPS(ARM) recognizes f2h_irq0 or f2h_irq1 interrupts from FPGA

$
0
0
I designed a block in Verilog. When data processing is finished, this FPGA block sends an interrupt signal to HPS using one of dedicated interrupt line: f2h_irq0 or f2h_irq1. The question is how HPS can recognize that this interrupt is active? Could anybody give an example of C code where HPS reads the interrupt (or decode interrupt vector) from FPGA?

Cyclone III Starter Kit and OpenCL

$
0
0
Greetings,

I have a modest Cyclone III Starter Kit w/ USB i/f that I had used in the past for adding custom instructions to the NiosII processor.
While I have OpenCL/Cuda experience on Gpu, OpenCL on FPGA is new to me. I prefer not to use an emulator. Can I use the Cyclone III Starter Kit for OpenCL development? If not, does the board have to be a PCI connected board to get full functionality? I prefer to use a USB connected board (w/ my laptop) even though USB is slower than PCI, if I will not be missing out on any functionality.
Thanks

Output Linux´s Video to VGA controller in FPGA Fabric through AXI on CV SoC

$
0
0
Hi all,

I designed a custom expansion board for the de0 nano SoC with an AD 7123 video DAC and a wolfson audio dac.

I have an VGA controller running fine on the FPGA fabric side (driving the AD7123) but now i need to output the video from linux to the VGA controller (Angstrom´s X-Windows).

I have high level on c programming but i´m not an expert in Linux Kernel Driver development.

Somebody can help me ?

I know it´s not very easy to do ...

Thanks in advance.

Arria V GT sd card

$
0
0
Hi

I have Arria V GT FPGA Development Board with Two 5AGTFD7K3 FPGAs.

Can I interface a SD card to this board, so that I can load my program form SD card without
using PC?


Thanks a lot.

SoCKit Hard DDR3 controller

$
0
0
Does anyone have a working example that uses the hard DDR3 controller to access memory from the FPGA? There are two examples (with and without qsys) of using DDR3 without the hard controller, but none that use it. Is there something wrong with the hard DDR3 controller? i'd think you would want to use it because it is faster and doesn't consume as many FPGA resources.
Thanks.

Download problem

$
0
0
Trying to download Quartus II 13.0sp1 web based.

Whatever way I try I get this error

Error - Single Sign-On

Error occurred in attribute mapping / lookup: Problem with attribute lookup

Please contact your system administrator for assistance regarding this error.
Adapter: OTKMyaltera

from Ping


Any ideas how to get past this error?

Thanks

SignalTap-II and tri-state/bi-directional signals/pins

$
0
0
Hi All,


I want to tap (insert to SignalTap-II) the tristate/bidirectional pins... I understand that SignalTap-II doesn't support this feature, only flops/buffers that drive these pins could be tapped...


The issue is so I need to tap the signals coming from the HPS generated code (I2C and GPIO signals)... So, how can I find the flops/buffers, which drive these signals?


Thank you

Require information to ping dp83848 PHY on my custom board.

$
0
0
Hello! I am using Cyclone 2 device on my custom board. I also have dp83848 ethernet phy. I am trying to ping it. I have EPCS16 as my memory device, i am trying to allocate onchip memory for .bss, .rodata, .stack, .heap and other sections in bsp editor. But it shows an error saying onchip memory overflows. Is there any inbuilt design available to communicate with the ethernet phy. I tried triple speed ethernet component from sopc builder and also the simple socket server from nios application from template. I am not having enough idea to set proper parameters and other settings which is why I am not able to proceed. please... any advice is welcome. guide me through.
Viewing all 19390 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>