Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21608 Discussions

Getting VGA to work on Arrow SoCKit

Altera_Forum
Honored Contributor II
3,450 Views

Hello, 

 

 

So I've been trying for a few weeks to make the output of the VGA to work correctly on my Arrow SoCKit but I've been encountering a few headaches. First of all, I am deriving the hardware system from the GHRD designed for Arrow SoCKit (http://www.rocketboards.org/foswiki/documentation/gsrdreleasenotescopyarrowsockitedition#releasecontents). I only added the frame reader and clocked video output similarly to how it was done in the Linaro desktop example (http://www.rocketboards.org/foswiki/projects/sockitlinarolinuxdesktop). I've attached my qsys file to this post. 

 

 

I am currently using the linux kernel 3.9-rel the git repo at rocketboards.org. I have applied a patch that adds the altfb.c driver that interfaces with the video output reader synthesized on the FPGA (https://github.com/altcrauer/linux/commit/553a2e04dab05b948f8e2f47535bdc83db216714). I have my own root file system based on Arch Linux (is this important?). 

 

 

I have hooked up the VGA connector to the screen but I am not getting any image output. The way I try to activate it is by compiling the altfb.c into a kernel module and loading it during runtime by using "insmod" after activating the fpga bridges. I have poked the registers of the frame reader and see that is correctly activated and running however no screen output is created. 

 

 

My question is this: 

 

 

Am I missing anything in terms of linux drivers to be able to output an image on the screen? Am I missing something in terms of the hardware configuration (possibly the PLL frequency for the VGA is wrong)?  

 

 

While I'm on the subject of IP blocks, where is it that I can get the linux drivers for all of these Altera IP blocks?  

 

 

Thanks, 

 

Alex
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
2,285 Views

Hi alexlesuper, 

 

In term of VGA, you have to check your pixel clock given to the clocked video output. It have to be link with your screen. Give me your screen resolution and specification and i will return to you the correct settings. 

 

I can't help you in Linux term because i'm a hardware designer. 

 

I am working with SoCkit too. Have you seen the Vip reference design ? Vip IP are using and multi frame readers are controlled by Lightweight bus.
0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

 

--- Quote Start ---  

Hi alexlesuper, 

 

In term of VGA, you have to check your pixel clock given to the clocked video output. It have to be link with your screen. Give me your screen resolution and specification and i will return to you the correct settings. 

 

I can't help you in Linux term because i'm a hardware designer. 

 

I am working with SoCkit too. Have you seen the Vip reference design ? Vip IP are using and multi frame readers are controlled by Lightweight bus. 

--- Quote End ---  

 

 

Hi,SOCRY_IN  

 

May i ask why after i success run the Vip reference design (SoCKit_VipDemo), my VGA monitor show the "video mode was not supported"? how to fixed this problem? And the board I using is cyclone v soc (SoCkit GO INTEGRATE). 

thanks for reply!
0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

Re Pang, 

 

In fact, if your monitor show that the video mode is not supported, it's can be explained by three different ways: 

-> in the clocked video output (Qsys IP) video presets have changed 

-> the pixel clock given by the PLL have changed; this clock feeds the clocked video output (Qsys IP) 

-> the command program in the HPS is not running.
0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

 

--- Quote Start ---  

Re Pang, 

 

In fact, if your monitor show that the video mode is not supported, it's can be explained by three different ways: 

-> in the clocked video output (Qsys IP) video presets have changed 

-> the pixel clock given by the PLL have changed; this clock feeds the clocked video output (Qsys IP) 

-> the command program in the HPS is not running. 

--- Quote End ---  

 

 

Re SOCRY_IN , 

 

Thanks for your reply... 

Due to i am newbie to those setting things in quartus, i m not able to modify the setting and still fail to display the thing on my vga. After check the description online, just notice that source provided should run at full hd resolution of monitor..
0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

Hi,my friends.where can I get the SoCKit_VipDemo,can you give a URL?

0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

The correct URL is on the terasic web site. Search SoCkit and demo.

0 Kudos
Altera_Forum
Honored Contributor II
2,285 Views

Hi SOCRY, I'm newbie 

I am trying to create Test Pattern Gen -> CVO, then display to VGA port on sockit board. I connected  

vga_clocked_video_vid_clk(clk_25), // vga_clocked_video.vid_clk 

vga_clocked_video_vid_data(rgb_data), // .vid_data 

vga_clocked_video_underflow(), // .underflow 

vga_clocked_video_vid_datavalid(vid_datavalid), // .vid_datavalid 

vga_clocked_video_vid_v_sync(v_sync), // .vid_v_sync 

vga_clocked_video_vid_h_sync(h_sync), // .vid_h_sync 

vga_clocked_video_vid_f(), // .vid_f 

vga_clocked_video_vid_h(), // .vid_h 

vga_clocked_video_vid_v()  

Then assigned it to VGA pins 

assign VGA_SYNC_n = 1'b1; 

assign VGA_R = rgb_data[23:16]; 

assign VGA_G = rgb_data[15:8]; 

assign VGA_B = rgb_data[7:0]; 

assign VGA_BLANK_n = vid_datavalid; 

assign VGA_CLK = !clk_25; 

assign VGA_HS = !h_sync; 

assign VGA_VS = !v_sync; 

 

But it still didnt work. Can you tell me where I should reconnect? 

I would appreciate your help!!
0 Kudos
Reply