Community
cancel
Showing results for 
Search instead for 
Did you mean: 
rkaib
Beginner
405 Views

pixel buffer vga in de2-115

hello, can anybody tell me how to send pixels to vga monitor. my code is:

alt_up_video_dma_dev* video;

for (i=0;i<rows,i++)

{

for (j=0;j<cols,j++)

{

color=(((img_R[i][j] >>8 ) & 0x0000F800)+ ((img_G[i][j] >>5 ) & 0x000007E0)(((img_B[i][j] >>3 ) & 0x0000001F));

alt_up_video_dma_draw(video,i,j,0);

}

}

 

the quality of the image displayed on the monitor is very bad, any clue?

0 Kudos
7 Replies
Deshi_Intel
Moderator
62 Views

Hi, I can see that you have been filing a lot of similar enquiry in this Intel forum asking for help on your design VGA display issue. Pls don't spam the Intel forum with similar support request if possible. VGA video data transfer is typically handled by certain IP core or NIOS 2 software API function. The thing is forum user can't really help you much unless you can provide more info about your Quartus design and the NIOS function that you are trying to use and debug here. Pls don't assume people will understand your design and the functional or IP that you are using. For a start, 1) Can you tell us more about your Quartus project design ? What's insides your design and what function that your design is trying to execute here ? 2) Are you writing your own design or use some example design from Intel FPGA website ? Can you point us to the example design download path if you are using example design ? 3) What's the alt_up_video_dma_draw function in the first place ? Where do you learn about this function ? Is there any doc or design file that you can point us to ? After that, we can help you to look further. Thanks. Regards, dlim
rkaib
Beginner
62 Views

hi dlim,

firstly, I am sending several copies to different groups of specialists of altera,

secondly, last time I was asked to change the intended group as they couldn't answer my question,

as for the details, I would provide any detail about my project if just asked, and beside this,

all my questions up to know are basic as I have just working with altera board and Iam not an expert.

I hope that clarifies a bit more for you.

thanks anyway.

 

rkaib
Beginner
62 Views

and also ,if you are following, I have attached my whole project in a previous post and the function you are

asking for is a basic function of drawing a pixel in a screen, I mean there is no simpler way to do it.

so plz try to have a look on the previous posts and avoid making assumptions.

Deshi_Intel
Moderator
62 Views

Hi,

 

Being new FPGA user is fine. My point is people can help you better if you can be more specific in your questions asked.

 

For instance : can someone teach me how to use xxx function in yyy IP of zzz Intel FPGA example design ?

 

After some time, I finally figure out you are asking about "alt_up_video_dma_draw" NIOS2 HAL function in "Pixel Buffer DMA Controller" IP of "Intel FPGA university program DE2-115_computer" example design.

 

Refer to below doc to learn more about capability of DE2-115 board and its Quartus example design (DE2-115_Computer)

The detail info about each video IP block can be found in below link - video IP suite doc

 

You can refer to below link, goto computer organization -> download "Using HAL Device Drivers with the Monitor Program" pdf file to learn more about NIOS2 HAL function for each Intel FPGA IP

 

Ultimately my best advise to you is to try out the DE2-115 board, video function NIOS2 c code example design directly. You can use either NIOS2 c code or NISO2 HAL function. You can then modify and play around with the example design once you get it working first.

 

You can also use "Intel FPGA Monitor Program" from the University Program installer to help you build the example design.

 

Thanks.

 

Regards,

dlim

rkaib
Beginner
62 Views

thank you dlim, for all theses references, I will try to look at them carefully.

I promise to be more specific next times as I am gaining some experience.

I have another question and I would like you just to direct me about which group I should send it to (as I know I should open another thread.)

hello leonardo,

I want to know how to read a custom IP core output data in eclipse that I have;

1. created using a vhdl code,

2.included in my design in quartus platform designer,

3.added it in the verilog code with its connections.

my problem now is how to detect it while in eclipse (I have looked into 'system.h' file but it does not appear and I do not know how to retrieve its data in my c code). I am using DE2-115 board with quartus 18.1

I hope I have been clear

thanks.

rkaib
Beginner
62 Views

sorry dlim, I sent a different question to leonardo as he inquires about a previous

a question he was trying to answer (so it just a mistake in the post I sent to you)

Deshi_Intel
Moderator
62 Views

Np, it's ok. You can just copy paste your reply to Leonardo again in separate forum thread. Thanks. Regards, dlim
Reply