CPLD replacement for ZX8301

Nagging hardware related question? Post here!
User avatar
Cristian
Aurora
Posts: 965
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: CPLD replacement for ZX8301

Post by Cristian »

Andrew wrote: Sun Jan 22, 2023 7:56 pm Would it be too difficult to have 8 colors in mode 4?
This would be the Holy Grail :-)
Anyway, even just the possibility of using different colors in Mode4 (and get rid of the green/red stipples) is a really great goal in my opinion.


lliont
Trump Card
Posts: 237
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

Andrew wrote: Sun Jan 22, 2023 7:56 pm Would it be too difficult to have 8 colors in mode 4?
It needs more memory to do this, maybe using the second screen memory and Minerva second screen option but there is a more serious limitation and that is the memory access speed.
It needs an fpga but I won't go there (yet).
Last edited by lliont on Mon Jan 23, 2023 12:59 pm, edited 1 time in total.


Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: CPLD replacement for ZX8301

Post by Derek_Stewart »

XorA wrote: Sun Jan 22, 2023 6:56 pm When does Derek start assembly of them :-D
Thank you for the vote of confidence, I could help if required.


Regards,

Derek
thorsinclair
Trump Card
Posts: 199
Joined: Mon Jan 10, 2011 5:08 pm

Re: CPLD replacement for ZX8301

Post by thorsinclair »

lliont wrote: Sun Jan 22, 2023 10:34 pm
Andrew wrote: Sun Jan 22, 2023 7:56 pm Would it be too difficult to have 8 colors in mode 4?
It needs more memory to do this, maybe using the second screen memory and Minerva second screen option but there is a more serious limitation and that is the memory access speed.
It needs an fpga but I won't go there (yet).
Am I right to assume that if you were to add more memory and a FPGA there would even more colors be possible ein Mode 4 and 8 and that this would rather be a 'graphics card' instead of a replacement board?


lliont
Trump Card
Posts: 237
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

It would be both, but I don't think it's worth doing. It would be much more expensive to build and again not supported by the existing software.
Well it could be done with a much larger cpld or better with an fpga that has internal ram but anyway with a more expensive IC.
I think a small cpld as a replacement of a faulty ula adding a few extra features is enough for a standard QL.


lliont
Trump Card
Posts: 237
Joined: Sat Nov 22, 2014 9:18 am
Location: Athens, Greece
Contact:

Re: CPLD replacement for ZX8301

Post by lliont »

You know what would be nice to add ?
Sprites!


User avatar
M68008
Trump Card
Posts: 224
Joined: Sat Jan 29, 2011 1:55 am
Contact:

Re: CPLD replacement for ZX8301

Post by M68008 »

thorsinclair wrote: Mon Jan 23, 2023 2:08 pm Am I right to assume that if you were to add more memory and a FPGA there would even more colors be possible ein Mode 4 and 8 and that this would rather be a 'graphics card' instead of a replacement board?
Yes, and as an aside (I don't mean to hijack this thread) I started writing something like that (QL graphics card) for fun some time ago. I have some FPGA code running on Mister and using the QL screen format, palettes, 15 sprites, hardware scrolling and more. Very far from finished, especially as I wanted to add even more features and still doing some historical research when I have time.


thorsinclair
Trump Card
Posts: 199
Joined: Mon Jan 10, 2011 5:08 pm

Re: CPLD replacement for ZX8301

Post by thorsinclair »

M68008 wrote: Tue Jan 24, 2023 12:30 am
thorsinclair wrote: Mon Jan 23, 2023 2:08 pm Am I right to assume that if you were to add more memory and a FPGA there would even more colors be possible ein Mode 4 and 8 and that this would rather be a 'graphics card' instead of a replacement board?
Yes, and as an aside (I don't mean to hijack this thread) I started writing something like that (QL graphics card) for fun some time ago. I have some FPGA code running on Mister and using the QL screen format, palettes, 15 sprites, hardware scrolling and more. Very far from finished, especially as I wanted to add even more features and still doing some historical research when I have time.
Cool stuff. Sounds very tempting. Would this meant to be plugged into the expansion port (normally occupied by Gold Cards etc.) or be an internal version?


thorsinclair
Trump Card
Posts: 199
Joined: Mon Jan 10, 2011 5:08 pm

Re: CPLD replacement for ZX8301

Post by thorsinclair »

lliont wrote: Mon Jan 23, 2023 5:01 pm You know what would be nice to add ?
Sprites!
This would be another milestone! Great idea.


robin7g
ROM Dongle
Posts: 1
Joined: Sat Jan 21, 2023 8:44 pm

Re: CPLD replacement for ZX8301

Post by robin7g »

Just wanted to add my 2 cents.

I was struggling to find a replacement ZX8301 chip for my broken Sinclair QL, an eBay seller wanted €40 for an original one but would not ship to me in Canada so there was nothing I could do except build one using Leon's Hackday.io project. Leon even helped me source the parts! This is the prior simpler ZX8301 replacement but it worked great. Thanks for sharing this project.
IMG_2255.jpg
I used JLCPCB to make the PCBs. I found the Altera FPGA chip on eBay with Leon's help. You need an HCMOS/TTL level 30Mhz crystal oscillator which was harder to find than it should be but Newark's UK warehouse had them.

Fun project. I have perfect video output now and a mostly working-ish QL.

I am also looking for a replacement ZX8302 chip or schematic if anyone has any ideas. :D


Post Reply