"SuperVidel" style graphics for the DFB1X2?

Discussion and support for the DSTB1 & DFB1 boosters by BadWolf..
User avatar
exxos
Site Admin
Site Admin
Posts: 29857
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: "SuperVidel" style graphics for the DFB1X2?

Post by exxos »

alexh wrote:Looking good. Are you thinking Display Port type digital display output or old skool R2R DAC for SVGA output?
It's digital, through a standard HDMI-type socket. The FPGA generates the TMDS signals and they go through a MAX3814 driver chip to the socket, the same way @Icky did it, rather than driving the socket straight from the FPGA pins.

It will send plain DVI video, which any HDMI monitor or TV accepts, the same as most FPGA projects do. (I'm not sure where HDMI licensing stands these days. I half recall V1.1 being licence free, or that later versions let you build 100 prototype units without one, but it's been some years since I last looked.)

There's no analogue output planned, so no R2R DAC. Audio is left out for now, but I'm putting a small header on spare FPGA pins so something can be added later.
User avatar
exxos
Site Admin
Site Admin
Posts: 29857
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: "SuperVidel" style graphics for the DFB1X2?

Post by exxos »

The "plug in" board I was working on looked like this. It was basically routed all on the top layer on purpose.

DFB2X-VIDEO-stage8.png
DFB2X-VIDEO-stage8.png (447.95 KiB) Viewed 49 times

But like I said before, its not going to fit in the Falcon case. Plus it just seems a bit daft to have a PLD and FPGA stacked against each other. Hence moving to a FPGA on the DFB1X2.. Bringing up the booster *should* be the simple part. Then the Videl stuff gets added later.

Routing the FPGA will take some time.. Its a pretty big board rebuild.

Capture.PNG
Capture.PNG (340.79 KiB) Viewed 49 times

The PLD area was shifted to the top layer, and the videl routing gets shifted to the bottom. So you basically have DFB1X "on top" and "videl" on the bottom copper wise. Mix in other stuff and it turns into a hot mess very fast as I am finding out :lol: :roll:
User avatar
alexh
Site sponsor
Site sponsor
Posts: 1512
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: "SuperVidel" style graphics for the DFB1X2?

Post by alexh »

I read that "SuperVidel" implements "Shadow ST-RAM". It simultaneously writes to ST-RAM and shadow ST RAM (16 MB in its 0xA0xxxxxx address space) so "high speed ST RAM" reads can be achieved by adding 0xA0000000 to your pointers. Obviously it is not DMA capable so any manipulation of ST-RAM with DMA capable peripherals (e.g. blitter) will not be mirrored but still interesting feature. I wonder how practical it is?
Senior Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
User avatar
exxos
Site Admin
Site Admin
Posts: 29857
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: "SuperVidel" style graphics for the DFB1X2?

Post by exxos »

alexh wrote: Tue Nov 24, 2026 8:28 am I read that "SuperVidel" implements "Shadow ST-RAM". It simultaneously writes to ST-RAM and shadow ST RAM (16 MB in its 0xA0xxxxxx address space) so "high speed ST RAM" reads can be achieved by adding 0xA0000000 to your pointers. Obviously it is not DMA capable so any manipulation of ST-RAM with DMA capable peripherals (e.g. blitter) will not be mirrored but still interesting feature. I wonder how practical it is?
Basically it's a huge RAM cache. It's possible, but it breaks a lot of stuff as well.

Anders tried shadow ST-RAM on a TF536 as an experiment, and the problem was always DMA. Anything that writes to ST-RAM without going through the CPU never updates the shadow copy, so the copy goes stale. In the end only the onboard IDE could be used, because IDE is driven by the CPU, so every write goes through the accelerator.

On the Falcon it would be the same story. The floppy, SCSI, sound recording and the blitter all write to ST-RAM directly, so none of them would be mirrored. The only real fix is to snoop the bus while DMA is running and update the shadow copy from that. Nobody could decide whether that was possible or reliable, so the work never got done. A logic analyser on the 030 socket during a SCSI read would answer it one way or the other.

I did something similar on the ST536 by moving the low RAM system variables into TT-RAM. That works fine because only the CPU ever writes to them.

I'd also question how much it would actually be needed. On the ST it gives huge gains because the graphics live in ST-RAM. But if programs run in TT-RAM and the graphics live in the board's own memory, there isn't much left using ST-RAM in the first place. The only real exception is older programs without the TT-RAM flags set in their header, which still load into ST-RAM, and those are also the ones most likely to be using DMA, which is exactly where shadow RAM breaks.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3193
Joined: Tue Nov 19, 2019 12:09 pm

Re: "SuperVidel" style graphics for the DFB1X2?

Post by Badwolf »

exxos wrote: Tue Nov 24, 2026 10:02 am The only real fix is to snoop the bus while DMA is running and update the shadow copy from that. Nobody could decide whether that was possible or reliable, so the work never got done. A logic analyser on the 030 socket during a SCSI read would answer it one way or the other.
On the ST the data lines are sniffable during DMA chip transfers, but not the address lines. Blitter runs CPU-side, but FDC and ASCI don't.

I don't know for sure, but I would be a little surprised if the Falcon doesn't follow the same path with FDC and SCSI.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Post Reply

Return to “DSTB1 & DFB1 booster by BadWolf”