Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Hardware Acceleration VGA graphics controller

Reply
Thread Tools

Hardware Acceleration VGA graphics controller

 
 
KAY
Guest
Posts: n/a
 
      03-05-2013
Hi,
I am trying to implement a graphics controller that takes initial X,Y coordinates and final X,Y coordinates to first store the data in the SRAM frame buffer then display the simple lines to a monitor.

I can get the CPU to write to all the memory locations one after another but I would like to increase the speed of the process by only taking the initial address of the X,Y coordinates and burst the rest of the data till the final pixel location.

How would I be able to implement this?

Thanks,
Kei


 
Reply With Quote
 
 
 
 
1999outback@gmail.com
Guest
Posts: n/a
 
      03-05-2013
DMA, though I'm not sure what that has to do with VHDL.
 
Reply With Quote
 
 
 
 
KAY
Guest
Posts: n/a
 
      03-05-2013
Hi,

I was thinking about DMA, but I was trying to think of an easier solution, where the CPU doesn't actually get kicked off the buses but just polls the status of the operation until it finishes.

Yea it would really help if someone could give me some hints on how I could implement this.

Thanks ,
Kei
 
Reply With Quote
 
Robert Miles
Guest
Posts: n/a
 
      03-06-2013
On Tuesday, March 5, 2013 5:50:26 AM UTC-6, KAY wrote:
> Hi,
>
> I am trying to implement a graphics controller that takes initial X,Y coordinates and final X,Y coordinates to first store the data in the SRAM frame buffer then display the simple lines to a monitor.


I've read that some of the current Nvidia graphics boards are already capable of doing this. Nvidia doesn't seem likely to offer much information on how they implemented it, though.
 
Reply With Quote
 
Martin Thompson
Guest
Posts: n/a
 
      03-06-2013
KAY <> writes:

> Hi, I am trying to implement a graphics controller that takes initial
> X,Y coordinates and final X,Y coordinates to first store the data in
> the SRAM frame buffer then display the simple lines to a monitor.
>


What's the definition of a "simple line"?

> I can get the CPU to write to all the memory locations one after
> another but I would like to increase the speed of the process by only
> taking the initial address of the X,Y coordinates and burst the rest
> of the data till the final pixel location.
>


OK....

> How would I be able to implement this?
>


What hardware are you working with? What processor? Do you have any
other programmable hardware in the system? DMA might accelerate near
horizontal lines. You could program a GPU to do this. Given this is a
VHDL newsgroup, does this system have an FPGA?

If so, the simple-to-understand way is to convert your x,y pair into an
equation of the classic form y=mx+c and solve it for each x-coordinate.
However, what is usuall done is to implement Bresenham's algorithm,
which is a well-known algorithm for joining two points with a line.
That can be done in VHDL relatively easily.

Cheers,
Martin

--

TRW Conekt - Consultancy in Engineering, Knowledge and Technology
http://www.conekt.co.uk/capabilities...ronic-hardware
 
Reply With Quote
 
KAY
Guest
Posts: n/a
 
      03-06-2013
Hi,

The hardware that I'm using is a softcore 68k on a DE1 development board. I have a separate VGA controller to display the image on the screen.

I was thinking that I would need to modify my current SRAM controller that would take the start and end X,Y coordinates and be able to fill all the data between by just stepping through consecutive address locations ?

I really appreciate the replies,

Kei
 
Reply With Quote
 
maleklamari@gmail.com
Guest
Posts: n/a
 
      03-08-2013
Hi,
By just feeding the init and the stop position to the controller in order to plot the line in-between, you are talking about interpolation, as i understand.
One solution, i suggest you to go for MatLab MCode embedded in System generator.
Hope this help.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
graphics card acceleration cammy1568 Computer Support 1 06-26-2008 08:09 PM
Mouse acceleration too Slow on LCD vs CRT? Any way to Increase acceleration? lbbss Computer Support 4 11-07-2006 10:39 AM
Graphics card- Hardware acceleration issue. Cherokee-Ltd Computer Support 2 03-02-2005 05:44 PM
VGA Box (AV/S-Video to VGA adapter) Daniel Computer Support 0 08-17-2004 06:19 AM
Standard VGA driver (vga.sys) bjones Computer Support 4 09-14-2003 02:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57