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

Sources for using USB 2.0 OTG Controller

$
0
0
In USB 2.0 Slave HwLib
DeTeWeF
ask a possibility in HWLIB to use embedded USB controller in HPS.
May be very usable to use my CV-device as flash-trinket, with keep there application codes in many variants, results of work, ...and with easy exchanges with PC, not through slow JTAG!
In "Cyclone V Device Handbook" described 2 instances of OTG (On The Go, bidirectional USB) 2.0 for HPS, each may be device or host independently. Host realisation ask big efforts, Linux etc... And if suddently exist ready codes for slave drive with filesystem ?
I connect OTG-output on kit to PC (Win7) through micro-USB-cable from kit set and not see new devices with Linux boot, although many "USB" mentions in console: "USB Mass Storage driver", "DWC OTG Controller", "irq 160", "USB HID core driver" etc...
And if I start GPIO example, then Win 7 has found new "Unknown Device" on USB bus: side by side with usual "FT232R USB UART" and "USB-Blaster II" :)
May anybody give link to good and easy coltroller code for flash FAT32-device or like ?

vhdl programming

$
0
0
During the calculations of the two results, the 4 seven segment displays must show 0000.
1) I have two 7 bit binary outputs(image and word comparison) from scale 100 which are the results of my program. The 3 Seven segment displays from right must show one of the two 7 bit binary numbers in decimal(or unsigned) .Every 3 seconds FPGA will show one of the two numbers. First will show the image percentage and after 3 seconds the word percentage or you can use two switches for the two numbers.In the first seven segment display from the left it will be the number of the choice for example 1 is for image comparison number and 2 for the word comparison number. The other 3 displays will show the decimal number from scale of 100.(0-100).
for example the 4 seven segment displays show this "1050" the 1 in the left is the choice (image) and 050 is the (image) result in decimal or unsigned.
2)I did what i said above with two 6 bit binary numbers I rerange them from scale 32 to scale 100.(..decoding)
I did the second with the two 6 bit numbers it decodes the 6 bit number and the choice.
I am using a counter that counts from 0-63 and so the choice it depends on the 6th bit of the counter.The 6bit goes to a muxs with expansion and so after goes to this decoding.


any help would be appreciate!

Help with Interval timer connected to 3 nios ii processors

$
0
0
Hi,

I currently have 3 nios ii processors, all with their own memory peripherals but connected to the same interval timer(should each processor have its own interval timer?). The timer slave is connected to each of the processor's data and instruction masters but I'm not sure how I can correctly use the timer in my application. I currently just want to send a certain number of characters and see how many seconds it's taking to transmit those characters over the uarts. Any help is appreciated.

Where to get aocl_net.h

$
0
0
The OPRA Fast Parser example includes a header file aocl_net.h. It's not in the example nor in the SDK installation. Where can I get this file?

Final master project, DAQ with develop board Altera

$
0
0
Hi. I want to do one Data Acquistion (DAQ) with one develop board of Altera for my final master project. In this project I want use the Multi-Touch LCD Module where I will show the interface of one oscilloscope, and the AD/DA Data Conversion Card for acquire the signals. This is the main idea and for carry it out I have many possibilities that I want tell us before starting the project.

With S.O. Linux (DE1-Soc Board, SoCKit Board, DE2i-150) or Windows (DE2i-150) I want to run executable LabView that display in the Multitouch Screen. Has anyone done anything seemed? I want try it. I have seen anothers embedded systems with interface Labview, but I don't know if I can do it with terasic's board. I think so, since for example thera are projects in Labview running on microcontrollers N2600 (micro that contain the DE2i-150 board) under another develope boards.

If I don't get this, another option it is create one executable on Windows with C++Builder in the DE2i-150 boar or QT in SocKit board under Linux.

In the SoCKit boar I think that this project will be easier, since there are examples about the working od the board with the multitouch panel with program do it in QT. Howerever in DE2i-150 I think that it is more dificult since the comunication betwen the board and multitouch panel is more complicate.

What is your opinion about this project?

What board would you use? I don't know whether use the DE2i-150 or SocKit

Is it posible to use the DE2i-150 Board with the LCD Multitouch? There isn't example of this.

Sorry for my English. I'm learning.

QuartusSetupWeb-14.0.0.200-linux.run: Syntax error: Unterminated quoted string

$
0
0
ubuntu 12.04
uname -r

3.8.0-29-generic

wonder@wonder-VirtualBox:~/quartus$ ./setup.sh

The Altera software you are installing is 64-bit software and will not work on the 32-bit platform on which it is being installed.

Do you want to continue to install the software? (y/n): y
./setup.sh: line 79: /home/wonder/quartus/components/QuartusSetupWeb-14.0.0.200-linux.run: cannot execute binary file
./setup.sh: line 79: /home/wonder/quartus/components/QuartusSetupWeb-14.0.0.200-linux.run: Success
wonder@wonder-VirtualBox:~/quartus$ sudo ./setup.sh

The Altera software you are installing is 64-bit software and will not work on the 32-bit platform on which it is being installed.

Do you want to continue to install the software? (y/n): y
./components/QuartusSetupWeb-14.0.0.200-linux.run: 2: ./components/QuartusSetupWeb-14.0.0.200-linux.run: Syntax error: Unterminated quoted string

Bidirectional pin

$
0
0
Hi :)

I've heard that integrating bidirectional pins for an FPGA device is expensive.
Is there any way that I would know how many inout pins supported for an FPGA chip?

Output port "lvds_clk" at altera_pll.v(295) has no driver

$
0
0
Hi,

I am using Quartus 13.1 and doing some verilog coding on Cyclone V. I am getting following warning messages:

Warning (10034): Output port "lvds_clk" at altera_pll.v(295) has no driver
Warning (10034): Output port "loaden" at altera_pll.v(296) has no driver

Could anyone please help me. Its urgent.
Thanks in advance !

-Shahbaz

Nios II reference design for Cyclone V GX+ HSMC-DVI from terasic

$
0
0
Hi to all members of the community,

I would appreciate it if someone could provide a reference design that uses Nios II and possible Altera's Video Image Processing Suite (vip suite) implemented for Cyclone V GX dev kit + HSMC-DVI from terasic. I want to start working on this, implementing my own Avalon-ST IPs but i cannot find a reference design anywhere that uses nios II+ ddr frame buffer... The loopback designs provided by terasic for using the HSMC-DVI daughter-card do not use at all nios II or ddr3. It is really a bummer since it will take me forever to build a the hardware/software design from scratch... I could also use a design without nios ii but with a ddr3 controller for video frame buffer ... Any help would be deeply appreciated...

Thank you very much for any response
fasmatikos

how to write sdc constraints for asynchronous memory?

$
0
0
If we dont have any clock or reset,how to write constraints for asynchronous memory?

Nios II 3c120 uP with LCD Controller - Getting Started

$
0
0
Hi,

I downloaded this example processor system from http://www.altera.com/support/exampl...lcd-3c120.html.

As a beginner, I have the following questions:

Can I directly use this design by programming the FPGA with the existing .sof file? or should I recompile the design and then use the new .sof file?

I want to input a video (either composite or DVI) and then see whether it is displayed on the provided LCD. Should I write code for this or it is already included?

Thank you.

How do I use 64-bit tools in tcl script under Windows?

$
0
0
Hi All,

I have what seems like a straightforward need but I have struck out on finding info about it.

I normally use tcl scripts to do my builds and up until lately I have always been fine with using the 32-bit version of the Quartus tools. My system is 64-bit Windows and I can run either 32-bit or 64-bit versions of Quartus from the start menu. However, when I start a build in a tcl script using a command like "execute_flow -compile", the 32-bit version is invoked by default. I now have a need to use the 64-bit version but cannot find a way to specify that the 64-bit version should be used. (note: I have found ways to do this under Linux but not Windows)

Anybody know how to do this?

HDMI (640x480p) on Cyclone 2?

$
0
0
Hi All,

So I've been doing most of my display projects with a standard 640x480 VGA monitor but I came across this and was wondering if it's possible to create a low-performance version using HDMI. If I can display 640x480p at 60hz I'm a happy camper. So, going by what I've learned so far:

- I'll need a pll to create a 250mhz clock for HDMI
- I need a TDMS encoder (outlined in the link)
- I need to figure out if a) the cyclone II can handle 250Mb/sec, which it should according to the LVDS data-sheet and b) if there are any electrical specifications I need to take not of (line termination and what not).

Anyone done something like this before?

-Mux

[edit: on a second look, shifting out bits @ 250mhz might be a problem. That said, if I really want 320x240p, does HDMI go as low as 125mhz?]
[edit2: on a THIRD look it appears that the Cyclone II has an SD-SDI IP block which can serialize data out at standard resolution, using a (PLL'd) 270mhz clock]

NIOS II code crash! Strange Behaviour... NIOS bug?

$
0
0
Hi, Can anyone explain why debugger may be crashing?

Single stepping over CODE-A crashed the debugger requiring a power reset of USB blaster, sof download and restart eclipse.

Running over CODE-A works ok.


[CODE-A]:
for (int i=0; i < MAX_INPUT_STRING; ++i) e->cmd[i] = me->m_cmdString[i];

Open PCI Express Avalon-ST reference design(13.1) with Quartus 14.0

$
0
0
Hi, all,

has anyone ever tried to open the PCI Express Avalon-ST reference design in Quartus 14.0?

The reference design targeting Cyclone V GT kit was generated in Quartus 13.1. When opening the design in Quartus 14.0, the following 3 IPs need to be upgraded but failed to do so:

1). alt_xcvr_reconfig
2). altera_reset_controller
3). altera_pcie_cv_hip_ast

Therefore I could not proceed with the design in Quartus 14.0? How can I upgrade the IPs or any workaround exists?

Thanks.

Jeff

Segmentation Fault with Quartus installer (Ubuntu)

$
0
0
Hi there,

I'm trying to install Quartus II on my Ubuntu 14.04 64-bit machine. I need to compile and FPGA image from a script that doesn't support anything higher than 13.1, so I went and downloaded 13.0 and 13.1 SP1 along with my Cyclone IV device files and Modelsim.

Before all this I installed 14.0 without any problems, running the following command in bash:

Code:

cd ~/Downloads
sudo chmod +x Quartus_blablabla.run
./Quartus_blablabla.run

Following the same procedure for the earlier versions only gives a message:
Code:

Segmentation fault (core dumped)
I've tried re-downloading it several times, and I've also tried to download the complete package of version 13, and running the install script gives the same error.

Any ideas?

issues in running CycV_SoC with DDR3 RAM on Dev_Kit

$
0
0
Hello,

I am in an internship and my task is to perform a DDR3-SDRAM memory test on the "Cyclone V SoC Development Kit" with the Cycone V SX 5SCXFC6.. FPGA.
( To see what the difficulties are and if there are any timing issues with the preconfiguration; later on, I will have to make some tests including a DMA controller for burst transfer)
The RAM is a Micron MT41K256M16HA-125 1GB SDRAM.
The tool chain is in Version 13.1.

a) First of all I made a simple reference design (4 counting LEDs) in QSYS (Clk, NiosII, OnChip RAM, JTAG, Interval Timer, System ID Per. and PIO for the leds) to get in touch wih this Development Kit and it works fine.
The clk is a extern 50Mhz oscillator, the reset is on the dip-switch and the PIO is connected to 4 FPGA-LEDs.

b) Then I extended the proofed QSYS design by a PLL, which generates a 125Mhz reference clock for the "DDR3 SDRAM Controller with UniPHY" - IP block, and the DDR3 SDRAM Controller, in order to use the HMC "hard memory Controller" on the FPGA to access the connected DDR3 RAM.
The DDR3 SDRAM Controller got a preconfiguration according to the Mircron SDRAM.
I connected the signals of this RAM Controller according to the design example "Reference Design - Cyclone V Hard Memory Controller with Avalon-MM data width expanded for User ECC: Quartus II v13.1"
The signals to the "memory" and the "oct" conduits for the controller are exported.
The generation is successful. ( the report message says something about running a "<design-name>_hmc_ddr3_emif_p0_pin_assignment.tcl" after the "Analysis & Synthesis" step in Quartus.
--> A question is, if it is possible to run this *.tcl file automatically (just for future or changed designs)?


c) Then I changed the names of the signals in the top level entity according to the names of the "rm_cv_soc_dev_board.pdf" in the DDR3 SDRAM (FPGA) section.
I also found an existing *.qsf-file in the "golden system reference design" (called bts_xcvr.qsf) which uses the FPGA-DDR3-SDRAM, but it does not contain any settings for the "OUTPUT_TERMINATION" for the fpga_sdram pins, just for the hps_sdram!?
--> why does this golden reference design work or compile?
Furthermore this reference qsf-file assigned the IO_STANDARD to "SSTL-15 CLASS I" for the ddr3_fpga signals, allthough the *_pin_assignment.tcl sets it to the IO_STANDARD "SSTL-135 CLASS I"

After creating a new Quartus project, I started to modify the *.qsf-file to assign the signals of the top level entity to the correct pin positions.
It is possible to run the "Analysis & Synthesis" step after the assignment and afterwards to run the "*_pin_assignments.tcl" file, which modifies the qsf-file again
( it adds some settings for INPUT and OUTPUT_TERMINATIONs and the IO_STANDARDs for the signals of the HMC )
The IO_STANDARD is now " IO_STANDARD "SSTL-135" " and so different form the reference design.
Furthermore I had some problems with the IO_STANDARD for the LED, Clk and Reset pins, because they were on the same IO-banks as the HMC and have 2,5V per default. So I changed them to SSTL-1.35V, just to see what happens next.
Next step was to run the Fitter, which resulted in several errros and warnings.


Report massage"...
...
Info (171003): Fitter is performing an Auto Fit compilation, which may decrease Fitter effort to reduce compilation time
Warning (15714): Some pins have incomplete I/O assignments. Refer to the I/O Assignment Warnings report for details
Info (176045): Design uses memory blocks. Violating setup or hold times of memory block address registers for either read or write operations could cause memory contents to be corrupted. Make sure that all memory block address registers meet the setup and hold time requirements.
Info (174060): Created on-chip termination control block "termination_blk0"
Info (174063): Created on-chip termination (OCT) RZQ pin "termination_blk0~_rzq_pad"
Critical Warning (174073): No exact pin location assignment(s) for 1 RUP, RDN, or RZQ pins of 2 total RUP, RDN or RZQ pins
Info (174074): RUP, RDN, or RZQ pin termination_blk0~_rzq_pad not assigned to an exact location on the device
Error (175020): Illegal constraint of pin to the region (50, 0) to (83, 0): no valid locations in region
Info (175028): The pin name: ddr3_fpga_dq[6]
Info (175015): The I/O pad is constrained to the location PIN_AJ16 due to: User Location Constraints (PIN_AJ16)
Error (175005): Could not find a location with: OCT_CAL_BLOCK_ID of 1 (1 location affected)
Info (175029): AJ16
Error (12289): An error occurred while applying the periphery constraints. Review the offending constraints and rerun the Fitter.
Info (11798): Fitter preparation operations ending: elapsed time is 00:00:20
Warning (171167): Found invalid Fitter assignments. See the Ignored Assignments panel in the Fitter Compilation Report for more information.
Info (169186): Following groups of pins have the same dynamic on-chip termination control
Info (169185): Following pins have the same dynamic on-chip termination control: c5_NiosSys_DDR3_hmc_ddr3_emif:hmc_ddr3_emif|c5_Nio sSys_DDR3_hmc_ddr3_emif_p0:p0|c5_NiosSys_DDR3_hmc_ ddr3_emif_p0_acv_hard_memphy:umemphy|c5_NiosSys_DD R3_hmc_ddr3_emif_p0_acv_hard_io_pads:uio_pads|c5_N iosSys_DDR3_hmc_ddr3_emif_p0_altdqdqs:dq_ddio[0].ubidir_dq_dqs|altdq_dqs2_acv_connect_to_hard_phy_ cyclonev:altdq_dqs2_inst|delayed_oct
Info (169066): Type bi-directional pin ddr3_fpga_dq[7] uses the SSTL-135 I/O standard
...
..."

--> Now I don't know what to do next, because RZQ pin seems not to be connected correctly, eventhough I assigned the ddr3_fpga_rzq to a pin.

--> Maybe someone knows a reference design for my Development Kit, which uses the DDR3-SDRAM with the NiosII or at least with the FPGA, because this topic
seems to get more complex as expected and I need this design to continue the next task.

--> Maybe someone can give me an advice if my workflow is incorrect or say what is cumbersome on my approach. Maybe there is a simpler way to configure the qsf-file.


If required, I can post the qsys design the other quartus files. Please feel free to ask me, if any questions are arising.

I hope we can solve the simple problem together :)

Kind regards,
Roland

Can't create workable controller for SRAM 512 kb (ISSI IS61LV25616AL) on Altera DE1

$
0
0
Hello all.

I have a problem with SRAM 512 kb (ISSI IS61LV25616AL) on Altera DE1.

My problem is:

If i set memory address and writing data to memory cell with this address, after if i change address to another address i read last data from that address (which was writed on last adress). And if i change address again, i read this last writed data. I read last writed data from all adresses.

I writed more simple verilog sram controller (OE CE UB LB is always 0). And i change only WE for control read and write.

But i have same problems. I read last writed data from all adresses

qar file in attachement.

Thanks in advance for any help
Attached Files

Soc EDS fail to connect to usb blaster

$
0
0
I have install Soc EDS v14 on centos 7, and run as doc ug_soc_eds.pdf secion “Getting Started with Bare-Metal Debugging” introduce, but when I Select Run > Debug Configurations and Click Browse to select the USB Blaster connection(refer to 4-29 steps 3 in pdf),it show "One entry must be selected"
1.jpg

And soon show blew information:
2.jpg
But in fact the variable have been set before start eclips:
3.jpg4.jpg
And I can down load data with quartus ii, so why Soc EDS cann't connect to usb blaster?
Attached Images

Slow transfer speeds PCIE Gen3

$
0
0
Hi all,

I was working on a design using Stratix V Avalon-ST PCIE Hard IP Gen3 and I get quite varying results. With one machine I can get a consistent high speed PCIE Gen3 and managed to get transfers of 6GB/s. The odd thing it is on a machine from HP that officialy has no Gen3, has only Gen2.

I tried to find another with Gen3. Tried it on two. One only gives Gen2 (the currentspeed bus always says Gen2). The other one gives gen3. Still on both the speed is just unbeliveably slow, we are talking of 9MB/s and down.

Any ideas what might be going on. Both of these machines claim Gen3 capability. Anyone else had experiences with this? Could there be something like a Gen3 slot that will only work on video cards and nothing else, or perhaps it will give so much priority to a video card that it will refuse to give any credits to some other card on the system? Or perhaps you happen to know of some other odd requirement that some of these PCIE Gen3 systems might have?

Any ideas?
Viewing all 19390 articles
Browse latest View live


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