BLITTER RE-CREATION THOUGHTS

Progress on our FPGA cores.
keli
Posts: 97
Joined: Tue Aug 22, 2017 1:34 pm

Re: BLITTER RE-CREATION THOUGHTS

Post by keli »

exxos wrote: Tue Nov 05, 2019 5:01 pm Sure its a FlipFlop, but why 2 clock inputs, They are just C and /C driven by a inverter elsewhere. Normally C would latch on the falling edge, and /C Would latch on the rising edge. But this one has both. I've noticed this funkyness all over with other blocks as well. I think only 1 clock is needed, but no way to know what edge its supposed to latch on :shrug:
Well I guess it's some sort of differential clock flip flop. Probably a implementation detail of the original design...
But since the falling edge of C coinsides with the rising edge of /C, I don't see a problem here. The answer to your question is "both" :P ... It latches on the falling edge of C, which is also the rising edge of /C.
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

keli wrote: Tue Nov 05, 2019 7:36 pm Well I guess it's some sort of differential clock flip flop. Probably a implementation detail of the original design...
But since the falling edge of C coinsides with the rising edge of /C, I don't see a problem here. The answer to your question is "both" :P ... It latches on the falling edge of C, which is also the rising edge of /C.
Theres 2 points in the cycle I can latch though, I can latch on the rise or the fall.... with the differential logic, "both" can be the start of the transition, or both on the end of the transition. :stars:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

Looks like such things actually exist...

https://www.onsemi.com/pub/Collateral/MC100LVEL51-D.PDF
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

Looking at the STE's combel, it looks like only "C" is even connected.

Capture.PNG
Capture.PNG (13.64 KiB) Viewed 3667 times

I have started to re-create the logic blocks in the blitter in Quartus and Icky has started doing the leg work in linking it all up. Are we insane ? Probably yes :lol: but we doing it anyway. But learning how the blitter works and re-creating it makes a long, but interesting project.

I am making them as close to the original as possible. So this will be a literal gate copy design. This will mean we *should* have a 100% replica of the blitter on a gate level. Well, maybe not 100% as I am having to remove the differential logic in some places, but that aside, its function should be exactly as the original.

The Ricoh datasheet has these options for PLCC68

Capture2.PNG
Capture2.PNG (85.28 KiB) Viewed 3667 times
So the gate count must be one of, 2300,2900,3800.

I am wondering if it would fit inside a ATF1508 5V PLD.. Though I can't seem to find a "gate count" on those devices. I would assume modern PLD's would have higher specs than the Ricoh's had. If we could fit it into a ATF PLD, that would mean no FPGA needed for the blitter and we can likely add other stuff into the same PLD as well.

Of course this will be ongoing in the background for a while as its not a main project at the moment. Though we haven't given up with this project :)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
Icky
Site Admin
Site Admin
Posts: 3993
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: BLITTER RE-CREATION THOUGHTS

Post by Icky »

exxos wrote: Sun Nov 10, 2019 1:05 pm I have started to re-create the logic blocks in the blitter in Quartus and Icky has started doing the leg work in linking it all up. Are we insane ? Probably yes :lol: but we doing it anyway. But learning how the blitter works and re-creating it makes a long, but interesting project.
We are quite probably bonkers but as you say its an interesting learning experience and if it works then we are as close to 100% as we can possibly be.
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

Icky wrote: Sun Nov 10, 2019 1:10 pm We are quite probably bonkers but as you say its an interesting learning experience and if it works then we are as close to 100% as we can possibly be.
Yeah, advantage of we can maybe add in other stuff like IDE or TOS206 decoding etc.

Looking around the web I did find "Atmel ATF1508-15 CPLD chip is compatible with Altera MAX 7128, containing 128 microcells over 2500 usable gates" So we should in theory match the 2300 Rioch gate count on that one. I'm sure I saw a image of the blitter with chip number on the mask somewhere the other day :shrug: In anycase, I would assume our gate count to be a fraction lower than the original. I guess it depends how well Quartus translates it all.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
czietz
Posts: 549
Joined: Sun Jan 14, 2018 1:02 pm

Re: BLITTER RE-CREATION THOUGHTS

Post by czietz »

I don't want to disappoint you, but you'll need a way bigger device than a 128 register CPLD to fit the Blitter. Even the halftone RAM alone takes more than 128 registers.
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

czietz wrote: Sun Nov 10, 2019 1:52 pm I don't want to disappoint you, but you'll need a way bigger device than a 128 register CPLD to fit the Blitter. Even the halftone RAM alone takes more than 128 registers.
Not disappointed as didn't expect it would fit anyway. Though the Ricoh doesn't seem to list number of registers, only gates.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
Icky
Site Admin
Site Admin
Posts: 3993
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: BLITTER RE-CREATION THOUGHTS

Post by Icky »

BLT CELL reconstructed

Screenshot 2019-11-10 at 15.22.00.png
Screenshot 2019-11-10 at 15.22.00.png (68.35 KiB) Viewed 3640 times
User avatar
exxos
Site Admin
Site Admin
Posts: 23763
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: BLITTER RE-CREATION THOUGHTS

Post by exxos »

plus what is inside each block...

Capture.JPG
Capture.JPG (346.8 KiB) Viewed 3608 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “FPGA DEVELOPMENT”