Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - vga

 
Thread Tools Search this Thread
Old 03-09-2008, 08:53 AM   #1
Default vga



Hello group,

I'm trying to understand how a VGA system works and as I was reading
an article at http://www.pldesignline.com/howto/20...N2 JVN?pgno=2
I ran into a statement as following:

"he horizontal sync pulse, on the other hand takes place between
26,110ns and 29,880 ns of the overall interval."

I understood every part of the article but the thing I cannot digest
is 26110ns and 29880ns. How these numbers are calculate?

Any advice is appreciated.

Regards,
Amit


ramsin
  Reply With Quote
Old 03-09-2008, 10:28 AM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: vga
On Sun, 9 Mar 2008 00:53:12 -0800 (PST), ramsin
<> wrote:

>
>Hello group,
>
>I'm trying to understand how a VGA system works and as I was reading
>an article at http://www.pldesignline.com/howto/20...N2 JVN?pgno=2
>I ran into a statement as following:
>
>"he horizontal sync pulse, on the other hand takes place between
>26,110ns and 29,880 ns of the overall interval."
>
>I understood every part of the article but the thing I cannot digest
>is 26110ns and 29880ns. How these numbers are calculate?


They're not *calculated*, they're defined - the sync pulse for
VGA is supposed to be 3.77 microseconds wide, or thereabouts.

Can someone explain to me why the article proposes having *two*
pulses on HSYNC on every line?
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Old 03-09-2008, 03:57 PM   #3
Mike Treseler
 
Posts: n/a
Default Re: vga
Jonathan Bromley wrote:

> Can someone explain to me why the article proposes having *two*
> pulses on HSYNC on every line?


I think he is describing two fence posts
and one fence section. Hope he put waveforms
in his book.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 03-09-2008, 05:28 PM   #4
Amit
 
Posts: n/a
Default Re: vga
On Mar 9, 8:57 am, Mike Treseler <mike_trese...@comcast.net> wrote:
> Jonathan Bromley wrote:
> > Can someone explain to me why the article proposes having *two*
> > pulses on HSYNC on every line?

>
> I think he is describing two fence posts
> and one fence section. Hope he put waveforms
> in his book.
>
> -- Mike Treseler



I got his book but it is full of typo mistakes in source code as well.
yet no waveform even one!



Amit
  Reply With Quote
Old 03-09-2008, 06:15 PM   #5
Amit
 
Posts: n/a
Default Re: vga
On Mar 9, 10:28 am, Amit <amit.ko...@gmail.com> wrote:
> On Mar 9, 8:57 am, Mike Treseler <mike_trese...@comcast.net> wrote:
>
> > Jonathan Bromley wrote:
> > > Can someone explain to me why the article proposes having *two*
> > > pulses on HSYNC on every line?

>
> > I think he is describing two fence posts
> > and one fence section. Hope he put waveforms
> > in his book.

>
> > -- Mike Treseler

>
> I got his book but it is full of typo mistakes in source code as well.
> yet no waveform even one!



Anyway one thing I need to make sure is about timing. Some people use
clock cycles as criteria and some use number of pixels in each row.
Now, as far as I understand this is the timing as following so please
correct me if I'm wrong:

t0 t1 t2 t3
_____ __________________________ ________
| | | |
|_____| |_____|

and have:

t0 = 0
t1 = 5.66 us
t2 = 30.83 us
t3 = 31.77 us

Now, t1 ~ t2 range is view area

should I conisder t0 ~ t1 blank area?
What about t2 ~ t3?

Do you suggest I go with clock cycles? or number of pixels?

Regards,
Amit




Amit
  Reply With Quote
Old 03-09-2008, 07:42 PM   #6
Mike Treseler
 
Posts: n/a
Default Re: vga
Amit wrote:

>> I got his book but it is full of typo mistakes in source code as well.
>> yet no waveform even one!


Thanks for the review.

> should I conisder t0 ~ t1 blank area?
> What about t2 ~ t3?


http://www.epanorama.net/documents/pc/vga_timing.html

> Do you suggest I go with clock cycles? or number of pixels?


Whichever you prefer.
I like clock ticks.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 03-09-2008, 08:09 PM   #7
Amit
 
Posts: n/a
Default Re: vga
On Mar 9, 12:42 pm, Mike Treseler <mike_trese...@comcast.net> wrote:
> Amit wrote:
> >> I got his book but it is full of typo mistakes in source code as well.
> >> yet no waveform even one!

>
> Thanks for the review.
>
> > should I conisder t0 ~ t1 blank area?
> > What about t2 ~ t3?

>
> http://www.epanorama.net/documents/pc/vga_timing.html
>
> > Do you suggest I go with clock cycles? or number of pixels?

>
> Whichever you prefer.
> I like clock ticks.
>
> -- Mike Treseler



Thanks for your response. The problem I'm having in Altera (in wave
form) is that the clock stays high at 39.99ns so the counter won't go
further. What is wrong with my setting?

Regards,
Amit



Amit
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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