Re: Going insane - Xilinx VGA controller...



peter.halford@xxxxxxxxxxx wrote:
Dear Group,

I am designing an LCD controller, straight VGA using a 6.5" TFT (60Hz
and a 25MHz dot clock) with a 32MBit SDRAM frame buffer (using two
Xilinx block RAMs as alternate line buffers).

Xilinx ISE 7.1 development environment.

I also designed the hardware: a BlackFin BF532 CPU/ROM/SDRAM with a
Xilinx Spartan-3 (XC3S400-4PQ208C) handling the general I/F
requirements and VGA display. It is a 4-layer PCB with a 25MHz master
clock.

Until now, all my coding has been with VHDL and everything has
simulated correctly.

Come on now... Just how difficult can it be? Or so I thought.

Well, everything works just fine for about 200ms (correct syncs etc...)
and then things go dead for 800ms -- no syncs, nothing. And then things
spring back to life for another 200ms ad nauseam...

The internal clocks are running fine (I have some spare signals on the
FPGA to which I can bind some debug signals).

Since I am pretty much a newbie to VHDL, I figured I would design a
replacement VGA module using gate-level logic (counters, comparators
and so on)  but it generates exactly the same results.

The power supplies appear to be clean. The BlackFin continues to work
with a command-line UBOOT serial link.

This project has taken 6-weeks longer than it needed to. I look an
idiot (which I probably am) and only the thought of how much pleasure
it would give my mother-in-law stops me from 'doing myself in'...

Any kind or informative suggestions would be very much appreciated.

Regards & seasonal greetings to all.

As you seem to have a behaving system some of the time, lock onto that, and expand on what you DO know - viz: try and be get better values for the 200ms and 800ms - things like how many frames, exactly; and is it a precise 1 second repeat. and how dead is dead.. Syncs gone, or changed, ? (etc)
Are the syncs precisely correct ? - it's not something like the montior just not quite being able to hold-onto things ?


 That's many, many frames, so sounds unlike a gate level issue.

Then look around at what it is in the system that changes at precisely those times....

 -jg

.



Relevant Pages

  • Accurate timing in C code
    ... looking for round about millisecond accuracy. ... wait for vsyncs using OpenGL, ... measuring the time between two syncs with gettimeofday ... I tried clock(), but that doesn't return anything useful. ...
    (uk.comp.os.linux)
  • Re: WTF with my computer clock?
    ... Here in Jerusalem, we don't receive the signals of WWVB, or the German ... or how often it syncs. ... ethernet port on one end for NTP sync and a 60kHz transmitter to sync a ... clock on the other. ...
    (sci.electronics.repair)
  • Re: Time not holding in Parallels Desktop
    ... | it syncs with Apple'stimeservers. ... would keep its software clock as well as the hardware clock in UTC ... while Windowskeepsits clock in local ...
    (comp.sys.mac.misc)
  • Re: How do they do it? Bit ot
    ... My son was pretty miffed when Rugby ceased ... transmissions and his radio clock became just a clock. ... I have 2 Radio Controlled Clocks, one that syncs with DCF Frankfurt ...
    (uk.radio.amateur)
  • Re: The interpretations of SR are physically impossible.
    ... Synch, or syncs, etc. ... Every clock not ... has to be set to the correct time. ...
    (sci.physics.relativity)