News for hackers. Stuff that matters.
Re:Let’s Build a Video Card by Koshkin on Monday November 09, 2020 @04:47PM (#25040353)
VGA was designed for CRTs. I am amazed how well it has been supported by digital monitors. Still, I am left wondering, how hard would it be to make something similar for a modern digital interface, say, DVI?
Re:Let’s Build a Video Card by rasz on Monday November 09, 2020 @07:47PM (#25041751)
DVI just encodes VGA signal in digital form :( Same for HDMI. Both are still sending pixels at VGA timings, Hsync/Vsync/blanking and all, with clocking locked to PixelClock.

DisplayPort is packetized, but not in a 100% sane way. You would expect that clean slate purely digital interface designers would at least optionally allow sending whole screen update at a time. Alas you are still sending same VGA formatted pixel stream (Hsync/Vsync/blanking), just chopped into TUs (32-64 symbol Transfer Units) with stuffing (aka never used garbage) between them, even when connected to eDP display supporting Panel Self-Refresh (own frame buffer inside display).

Re:Let’s Build a Video Card by phire on Monday November 09, 2020 @08:10PM (#25041879)
Sending the whole screen update at once is less than optimal, as it pushes bandwidth requirements through the roof. Better to stretch the transfer out over the entire frame to lower bandwidth requirements as much as possible.

The timings aren't 100% vga anymore. DVI and HDMI support reduced blanking mode, which shortens vblank to lower the wasted time lower the dotclock requirements for a given resolution.

Also, lcd panels are still scanned out pixel by pixel, line by line. There is no reason to put a much wider interface between the panel and the LCD controller.

Re:Let’s Build a Video Card by rasz on Monday November 09, 2020 @09:13PM (#25042215)
How would it change BW requirements when 1 you are sending same data but without the stuffing garbage in between, and 2 DP link is already above the Pixelclock speed. If anything you could put link to sleep more often instead of sending garbage.
Re:Let’s Build a Video Card by formerly_proven on Monday November 09, 2020 @05:39PM (#25040818)
Technically less different than you might think, but it is much higher speed due to being bit-serial. The lowest pixel clock that must be supported by all devices is around 25 MHz (for VGA), which results in a bit rate of 250 MHz (8 payload bits per pixel per TMDS pair, encoded as 10 bits on the wire).
Re:Let’s Build a Video Card by jshap70 on Monday November 09, 2020 @04:57PM (#25040452)
DVI is a very large spec. It supports everything from pure VGA over it's analog pins as well as full fledged HDMI (its actually the other way around, HDMI is secretly just DVI). Finding monitors which support all of the simpler modes is an issue, whereas finding monitors which support old school VGA is fairly easy.
Re:Let’s Build a Video Card by garaetjjte on Monday November 09, 2020 @05:10PM (#25040556)
>its actually the other way around, HDMI is secretly just DVI

HDMI signalling is actually extension of DVI, it embeds TERC4 data islands containing extra metadata and PCM audio during blanking interval. (yes, I was surprised at beginning but HDMI/DVI also have blanking periods just as VGA)

https://warmcat.com/hardware%20design/hdmi/fpga/2015/10/21/h...

Re:Let’s Build a Video Card by londons_explore on Monday November 09, 2020 @06:06PM (#25041074)
It's a "barely digital" standard.

It doesn't have any error detection or correction. The timing of the signal is still based on CRT TV's.

Really the whole lot should be done away with and replaced with something properly bidirectional, and preferably IP based so it can be routed anywhere.

Re:Let’s Build a Video Card by garaetjjte on Monday November 09, 2020 @06:11PM (#25041114)
I think DisplayPort done away with this legacy and uses packetized transmission.
Re:Let’s Build a Video Card by rasz on Monday November 09, 2020 @07:49PM (#25041764)
Packets that still have to encode and adhere to strict VGA timings (Hsync/Vsync/blanking), and you arent allowed to send anything useful between the packets unless its a blanking period.
Re:Let’s Build a Video Card by deelowe on Monday November 09, 2020 @05:46PM (#25040894)
Thank you! I've been looking for something like this for ages. It's extremely difficult to find decent resources on the hdmi/dvi protocol.
Re:Let’s Build a Video Card by Koshkin on Monday November 09, 2020 @06:05PM (#25041066)
Re:Let’s Build a Video Card by garaetjjte on Monday November 09, 2020 @05:58PM (#25040996)
Re:Let’s Build a Video Card by garaetjjte on Monday November 09, 2020 @05:03PM (#25040493)
Interesting idea. Basic DVI is somewhat VGA with analog signal replaced with TDMS. I think if you limit yourself to only few predefined colors with 8b10b encoding hardwired in shift registers, it's doable. (for signal integrity you can only pick colors that have balanced encoding)

edit: as pointed in other comment, lowest bit clock is 250MHz, which might be a problem, it seems fastest discrete logic chips are topping out at ~150MHz

Re:Let’s Build a Video Card by duskwuff on Monday November 09, 2020 @06:00PM (#25041016)
The TMDS signals are a little too fast to implement in breadboarded logic, but DVI/HDMI are pretty easy to implement on an FPGA, especially if you restrict the colors used.