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

altera quartus support for real data

$
0
0
How to solve this error while compiling in altera quartus II

Error (10172): Verilog HDL unsupported feature error : real variable data type values are not supported

Thanks

FPGA-SoC and Linux Yocto on Terasic DE1-SoC board

$
0
0
I'm doing some work on FPGA side under Linux Yocto on Terasic DE1-SoC board,
and frequently check the changes (IP on Avalon-ST) by re-program fpga

But if I shall do this with blaster JTAG, the framebuffer (VGA) will be ruined,
so Im converting sof to rbf, write it to flash, reinsert it to socket, etc, and reboot.

But I guess there are should exist more easiest ways to do this ?
For example load sof file with JTAG and just reload/modeprobe fb of Linux sys tools ?

I tried to search out how to do it on standard (stripped ver) of Yocto on DE1 boards,
but have not meet any convenient way except to build a new image of Linux ...

Regards.

Generating BSP failed: Cpu reset memory has no matching memory region.

$
0
0
Hello Everybody,

I have a Nios II /f
that runs "Hello world" properly on a DE2-115 in Q16.0 using FPGA on chip memory.
The system is as simple as possible, cpu, jtag, ram, sysid, it runs at 50mhz, no PLLs involved.

If I add an Terrasic SRAM component (IP from golden ref design) and change the reset vectors to the SRAM I get:

Error executing 'nios2-bsp-generate-files --bsp-dir . --settings settings.bsp', unexpected return code 1.

Error message:

SEVERE: CPU "cpu" reset memory "sram" has no matching memory region.

II do not understand this given:

Reset vector in CPU points to SRAM.AVALON.SLAVE offset = 0x00..0
Exception vector in CPU points to SRAM.AVALON.SLAVE offset = 0x00..20
And sram base is 0x0000_0000 to 0x001F_0000 (cpu data master and cpu instruction master both connected)

Any help appreciated to solve this issue or explain what is going on.
Best Regards,
JOHI.

EPCS device with Cyclone V in AS mode

$
0
0
As Data0 pin and ASDO pin of 5CGXFC4F27 are shared, how is an EPCS device connected to a 5CGXFC4f27? Many thanks.

cyclone V sockit parallel lvds termination

$
0
0
hello all,
can anyone provide me some information regarding the parallel LVDS input interface termination on cyclone V SoCkit?
Information like what should be the I/O termination and how to interface using hsmc connector for clock input.
thanks.

Mega Wizard plug in Max10 dev kit

$
0
0
I have the Max10 develoment kit and I am trying to run through the My_First_FPGA design tutorial and cannot get the mega Wizard to run when trying to when I click on the Insert symbol icon. I am running the Quartus Prime 16.1 Lite edition. Does this version not support this function.

Modelsim component instantiation error

$
0
0
Hello I have a problem in Modelsim. I created a project in Quartus exporting it in Modelsim with the command Run RTL Simulation, so Quartus correctly exports the project in Modelsim compiling libraries with 0 Warnings and 0 Errors, but when I click on Simulate I get the following error:

"** Error: (vsim-3033): Instantiation of 'bitec_dp' failed. The design unit was not found."

I think this problem depends on the bitec_dp module encryption in Altera, anyhow I don't manage to simulate my project. How could I resolve this problem?

Qsys Hangs When Adding Module

$
0
0
Hi guys,
I am very new to using Qsys at this time. I have bought the Cyclone V SoC Development Kit recently. And I have found that Qsys hangs as I was trying to add the Cyclone V Hard Processor System.
I have attached a snapshot here as well.
Can I ask you if something is missing on my system ?? am I missing a license or something ?? Or at least, what can I do to find out the root cause and how to fix or work-around this issue ??
Thanks,
TH
Attached Images

QSPI Flash Programming

$
0
0
Hello All,

I am trying to follow the GSRD for booting from flash here: https://rocketboards.org/foswiki/Doc...srd161QspiBoot

I am using the precompiled binaries as there were many issues trying to build them myself. I have the full qspi image I want to put on the flash. I am trying to use the quartus_hps programmer to load the image but it craps out since it can't read the flash silicon ID. Below is the event log.

Info: Command: quartus_hps -c 1 -o s
Current hardware is: USB-BlasterII [3-3]
Successfully change hardware frequency to 16Mhz
Found HPS at device 2
Double check JTAG chain
Warning: Overwrite HIR => 11, HDR => 2
HPS Device IDCODE: 0x4BA00477
AHB Port is located at port 0
APB Port is located at port 1
Double check device identification ...
Warning: Device is Arria 10 SoC
Setup non-secure transaction ...
Boot Info: 1.8V QSPI Flash
Clock Select: 0
Start HPS Quad SPI flash programming ...
Initialize QSPI peripheral and flash controller ...
Assuming QSPI controller system clock is 50Mhz
QSPI controller baudrate setting: 32 (15)
Read Silicon ID of Quad SPI flash ...
Quad SPI Flash silicon ID is 0xFFFFFFFF
Error: Not able to map flash ID from flash database
Error: Quartus Prime Programmer was unsuccessful. 0 errors, 0 warnings

Here's an instance where someone programs the flash successfully: https://www.alteraforum.com/forum/sh...ad.php?t=54519 . I'm not sure what I'm doing wrong/differently.

I've set the BSEL pins to 1.8V QSPI, and all the jumpers and switches are in the default position. I have the Micron QSPI Daughtercard that comes with the A10 SoCDevKit loaded in the file flash memory slot.

Does anyone have any ideas on how I can fix this issue?

Thanks,
Bogg

Intel FPGA SDK for OpenCL Licensing

$
0
0
I am running into a licensing error when trying to compile my OpenCL kernels using the aoc command.

I have the LM_LICENSE_FILE environment variable set to the port@sever that contains the license file for the FPGA SDK. When I open Quartus Prime Pro Edition 16.1.0.196, all of the licensing information comes through successfully via the LM_LICENSE_FILE variable so I know that it is set properly.

I am attempting to simply compile the helloworld application from Altera using "aoc device\hello_world.cl" and I am targeting the a10gx board that is already installed. The aoc version is 16.1.0 Build 196.

The compilation is successful if I use the "-march=emulator" flag with the aoc command; however, I need to get the board utilization report which is not generated when using that flag.

Is there some other step missing to license the Intel FPGA SDK for OpenCL? Or has anyone had this issue?

Thank you,
Luke Kljucaric

Help me!! How to Configure EP3C25E144A7 (Cyclone III) with Fast Active Serial ?

$
0
0


I want to Configure for chip EP3C25E144A7 with Fast Active Serial Fast (AS Fast POR), Help me to setup MSEL pins ? Thank you very much!!

quote:

https://www.google.com/url?sa=t&rct=...4xZUMKnI_17mTQ

"Smaller Cyclone III devices or package options (E144, M164, Q240, F256, and U256
packages) do not have the MSEL[3] pin. The AS Fast POR configuration scheme at 3.0-
or 2.5-V configuration voltage standard and the AP configuration scheme are not
supported in Cyclone III devices without the MSEL[3] pin. To configure these devices
with other supported configuration schemes, select the MSEL[2..0] pins according to
the MSEL settings in Table 9–7".

"FPP configuration is not supported in the Cyclone III E144 device package of Cyclone III devices"
Attached Images

regarding avalon interface

$
0
0
Hi all,
I have a slave from which I want to read data and write data into it using Nios II processor as a master. Can anyone explain me how to use signal "address lines" of avalon mm interface to read and write data from slave? :confused:
Please provide example if possible.
Thank you.:)

Cyclone IV BGA reconfiguration data frame error. Possible causes?

$
0
0
Hi,

I'm using a EP4CE22F17I7 (this is my first BGA board) that doesn't want to configure.

Configuration scheme - AS
MSEL pins "010" with the high being 2.5 V. (The VCCIO is 3.3 V on all the banks.)
Config device - EPCS16

Here is an overview of the nConfig, nStatus, INIT_DONE and DCLK pins:



nStatus is released approx. 100 ms after POR as expected (when compared to my Cyclone 3 configuration probing).
As soon as nStatus goes high, DCLK has 8 clocks, skips one clock, then 9 clocks, skips 16 clocks, followed by 40 clocks. Then no clocks for approx. 33 us followed by approx. 95 bytes (19 us activity) before it is stopped. The configuration is aborted after 54 us.
What I find strange when comparing the timing waveforms to that of the configuration cycle, is that DCLK is high as soon as the device comes out of POR, i.e. when nConfig goes high, but goes low approx. 52 us before configuration can start.

Here is the probing waveforms of the configuration attempt:



Below is a close up of the point when configuration is halted. INIT_DONE goes low approx. 8 clocks before nStatus goes low with DCLK stopping after 5 clocks.



Altera's Debugging Configuration Problems (CF52011-2.3) states the following about the INIT_DONE pin:

To check if the FPGA has started accepting configuration data, you can monitor the INIT_DONE pin. The INIT_DONE pin is an optional pin and can be turned on in the Quartus II software through the Enable INIT_DONE output option. The INIT_DONE pin is an open-drain output and requires an external pull-up to VCC. Therefore, when nCONFIG is low and during the beginning of configuration, the INIT_DONE will be at a logic high level. After the option bit to enable the
INIT_DONE pin is programmed into the FPGA (during the first frame of configuration data), the INIT_DONE pin will go low. The transition of INIT_DONE from high to low signals that the FPGA has indeed begun configuration and started to accept configuration data. If the INIT_DONE pin remains high, the FPGA has not received the proper configuration file header to indicate the beginning of configuration data.


The USB-blaster is functioning fine. I can program the same blinking code onto a Cyclone 3 (previous project) which configures fine.

I've used Quartus II v11.0 Build 157 and now also installed Quartus II 64-bit v15.0.0 Build 145, but with no success.

In summary:

1. Why does DCLK go high after POR? Is this normal because I don't see this with the Cyclone 3 or indicative of an hardware issue?
2. From Altera's documentation I understand that the configuration is aborted when a data frame error is encountered. Below is a comparison of the DCLKS of the Cyclone III and Cyclone IV, so I don't think that the config data is clocked in wrongly due to a poor clock signal. What could cause a data frame error and is this the only reason why configuration would be halted?

DCLK for Cyclone III and Cyclone IV (the latter uses 3.3 V compared to the 3. 0 V):



Thanks.
Attached Images

Triple Modular redundancy, radiation mitigation technique for cyclone IV

$
0
0
Hello guys,

I would like to simulate a triple modular redundancy for radiation mitigation with the cyclone IV. I'm looking for a source code or something to use with quartus to simulate the technique. Does anyone have an idea of where could I found any source code to simulate? Or even a program could be good too.

Thank you!

Ben

Speed of Avalon Memory-mapped Read Pipeline via PCIE

$
0
0
I used the Arria V GX FPGA Starter Kit connected to a computer via PCIE. In the Kit, I implemented my DMA Read/Write using the pipeline transfer. The DMA read the data from the PC's memory then write to another region of the PC's memory via the PCIE.

The ip I used is Avalon-MM Arria V Hard IP for PCI Express with the configuration: Gen1 x8, 32-bit Avalon-MM address width. The software on the PC is Visual Studio programming by C++ and using the 12.0.0 Jungo Windriver.


The project works fine but the transferring speed, especially the reading speed, is too slow. I had done a lot of projects with this DMA, so I don't think the problem is because of my DMA. I have checked the SignalTap of the project, and find out that:
+ (Figure 1) There are always over 100 clocks since the DMA began to read (the first time 'read' signal is asserted) to the first returning data (the first time 'readdatavalid' signal is asserted)
+ (Figure 2) After that, there are always about 20 to 50 standby clocks between two returning data, which is too slow.


My design needs to read the data from PC: (1) very little data (about 5 to 10 data for each time); (2) random access (that's why I didn't use burst transfer). But every time a new transferring session started, over 100 clocks are wasted at the beginning and I don't know why. To conclude, Avalon memory-mapped read pipeline costs about 200 clocks just to read 5 data from the PC's memory via PCIE.

My questions are: (1) Why there are so many clocks being wasted in the read pipeline transfer via PCIE? (2) Is there anything else I can do to speed up the transfer rate?
Attached Images

UART interrupt with HAL

$
0
0
Hello
I read a lot of threads about interrupts and UART and good resolution was this but I'm looking something without write own driver. I tried following code but it not work:


Code:

#include "system.h"
#include "sys/alt_stdio.h"
#include "alt_types.h"
#include "sys/alt_irq.h"

void isr_timer_0(void* context);

int main()
{
    void *my_context;
    alt_ic_isr_register(UART0_IRQ_INTERRUPT_CONTROLLER_ID, UART0_IRQ, isr_timer_0, my_context, 0x0);
    while(1);
    return 0;
}

void isr_uart0(void* context)
{
  alt_putchar(alt_getchar());
}

Similar isr register for timer works great. I'm using RS-232 Serial Port from Qsys.
Do you know any solution to use uart interrupt with build in uart driver? Mayby i should use another IP?

Best regards
Przemek

Soc motor control

$
0
0
I'm going to implement a motor control based on FPGA with a NIOS II soft processor, I need the system to meet the requirements of TUV and IEC 61508 certificates.
I have read one solution to use a redundancy system, but I couldn't understand how I can do that?
and, does the redundancy system need a physical hardware to be added as an addition with the FPGA? or is there anther soft solution like adding a soft processor such as NIOS II?

some question about de2 audio player demo

$
0
0
Hello, I’m recently learning DE2 audio player demo. The demo is used to play 48kHz audio. I want to turn it into playing 8kHz music. I know that I can change the sample rate in Audio_0.v, as well as wm8731 the sample rate control. But after setting them correctly, the music which on sd card can not be played, accurately to say, although the segments can display the start audio sector, but can not play the 8kHz audio file,what's more the segments don't change. Thanks in advance for anyone's help.

Cyclone V GX Write SD-Card

$
0
0
Hi,

I am using the read SD-Card example and trying to write in the SD-Card. Until now, no success. No error, but I cannot create a new file, or write a new line in a existing file. Anybody here have already written something in a SD-Card using Cyclone V GX?

Thanks in advance.

Write SD-Card using Cyclone V GX

$
0
0
Hi,

I am using the read SD-Card example and trying to write in the SD-Card. Until now, no success. No error, but I cannot create a new file, or write a new line in a existing file. Anybody here have already written something in a SD-Card using Cyclone V GX?

Thanks in advance.
Viewing all 19390 articles
Browse latest View live


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