FPGA replacement for VIC I chip?

Modding and Technical Issues

Moderator: Moderators

Post Reply
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

FPGA replacement for VIC I chip?

Post by ral-clan »

Hi,

I've long known that the VIC I video chips in our VIC-20s are delicate and only replaceable using salvaged chips from other machines.
As you might have read in my other threads, I've recently had such a chip fail.

This made me wonder, has anyone ever tried making an FPGA VIC-chip drop in replacement?

I know that some people have tried making a whole FPGA VIC-20, and I also know that knowledge of the VIC I chip is getting quite good (from the software emulation standpoint).

I know there would not be much demand - but it would be so nice to get all those broken VIC-20s working again with such a replacement chip (and also one that would run much cooler).
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
English Invader
Vic 20 Scientist
Posts: 1193
Joined: Tue Apr 28, 2009 3:51 pm

Re: FPGA replacement for VIC I chip?

Post by English Invader »

Just Googled FPGA (Field-Programmable Gate Array) and it seems like a good idea and there is nothing to lose from giving it a go. Presumably there would need to be some kind of software/firmware to make the computer think that the FPGA is a VIC chip. Someone would have to design that software/firmware and find a way to put it on the chip. It would probably prove quite expensive to produce and the average end-user would probably turn round and say "For that money, I might as well get another VIC-20". I guess it depends on whether there are enough future-conscious people who are prepared to pay a bit extra for a more long-term solution.

Here's a Wikipedia article on FPGA for those who want to know more:
http://en.wikipedia.org/wiki/Field-prog ... gate_array
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: FPGA replacement for VIC I chip?

Post by groepaz »

English Invader wrote:Presumably there would need to be some kind of software/firmware to make the computer think that the FPGA is a VIC chip. Someone would have to design that software/firmware and find a way to put it on the chip.
well, someone would have to create an FPGA "core" which replicates the functionality of the VIC chip. most FPGAs would load that core from a flash-rom at powerup and then work just like a real VIC (given the right firmware). since working VIC20 cores already exist, making that core shouldnt be terribly hard (for someone who knows FPGA stuff, of course)
It would probably prove quite expensive to produce and the average end-user would probably turn round and say "For that money, I might as well get another VIC-20".
that is the primary reason for why such kind of replacement chips are not common - they will still be significantly more expensive than real chips. however, time and mr.moore will solve this problem sooner or later :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
Imperious
Vic 20 Amateur
Posts: 57
Joined: Fri May 09, 2014 8:52 pm

Re: FPGA replacement for VIC I chip?

Post by Imperious »

Obviously You have a NTSC Vic, so cannot help there.

PAL Vic chips are actually quite plentiful from China, and NOT fakes. I purchased a batch of them,
6561-101's and they all tested AOK.

http://www.aliexpress.com/wholesale?Sea ... 1008232521

yxchip is trustworthy, some sellers there are very dodgy though. Just have to wade through the feedback
to figure out whether they are good eggs or rotten ones.

These 6560-101's have dodgy looking date codes, so could be either fakes or badly remarked good ones.
http://www.aliexpress.com/wholesale?Sea ... 1008232528
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: FPGA replacement for VIC I chip?

Post by ral-clan »

I saw a seller of 6560s on Alibaba which seemed very cheap, but the photo did not reflect the actual chip for sale.
Price seems too good to be true. For these reasons I was nervous about signing up to Alibaba and buying this.
Also, I wasn't sure if an individual could sign up for Alibaba and make purchases.
Also, price says "FOB Price", and when I looked that phrase up the definition (via Google) is:
Indicating "FOB port" means that the seller pays for transportation of the goods to the port of shipment, plus loading costs. The buyer pays cost of marine freight transport, insurance, unloading, and transportation from the arrival port to the final destination.
I don't want to get stuck with some crazy importers, portage or industrial shipping fee on a small quantity.

Also, how does one know if date codes on a 6560 are okay?
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
tlr
Vic 20 Nerd
Posts: 567
Joined: Mon Oct 04, 2004 10:53 am

Re: FPGA replacement for VIC I chip?

Post by tlr »

I'm not sure of the state of VIC-20/VIC-I FPGA implementations with regards to tricks and bits discovered in recent years but the implementation should be way simpler than implementing a C64/VIC-II in an FPGA.
One potential problem is the relative lack of test programs and research on the VIC-I in general.
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Re: FPGA replacement for VIC I chip?

Post by Kweepa »

For pricing, it looks like you can get a FPGA with built in flash for about $10.
http://electronics.stackexchange.com/qu ... pest-fpgas
Then you'd have to get an adapter board. Poking around, a surface mount type looks to be about $2 (although I didn't find one specifically for a FPGA) but for socketed boards, the price is all over the place.
tlr
Vic 20 Nerd
Posts: 567
Joined: Mon Oct 04, 2004 10:53 am

Re: FPGA replacement for VIC I chip?

Post by tlr »

5V I/O can be a challenge as well. These might be a choice: http://www.altera.com/devices/cpld/max3 ... rview.html
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: FPGA replacement for VIC I chip?

Post by groepaz »

and dont forget the major cost is developing the core (unless you find someone who will do it for free, which i doubt)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
pixel
Vic 20 Scientist
Posts: 1329
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: FPGA replacement for VIC I chip?

Post by pixel »

groepaz wrote:and dont forget the major cost is developing the core (unless you find someone who will do it for free, which i doubt)
I'm not into hardware really, but with those powerful chips and VHDL compilers I'm pretty sure you can punch in most of the logic rather quickly.

Someone should shake Al Charpentier and/or Robert Yannes, as long as they're still alive, and grab the original layout, so we could figure out new tricks. :) Maybe they don't like to be shaken and they respond to email. Who's holding the copyright anyway?
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: FPGA replacement for VIC I chip?

Post by groepaz »

I'm not into hardware really, but with those powerful chips and VHDL compilers I'm pretty sure you can punch in most of the logic rather quickly.
the problem is that before you can "punch it in", you'll have to know how *exactly* it works. and even then you need to debug and test. i would estimate at least 6 months of fulltime work for a single person, if not more.
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
pixel
Vic 20 Scientist
Posts: 1329
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: FPGA replacement for VIC I chip?

Post by pixel »

groepaz wrote:
I'm not into hardware really, but with those powerful chips and VHDL compilers I'm pretty sure you can punch in most of the logic rather quickly.
the problem is that before you can "punch it in", you'll have to know how *exactly* it works. and even then you need to debug and test. i would estimate at least 6 months of fulltime work for a single person, if not more.
I was under the impression that knowing enough to emulate it would be sufficient.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Re: FPGA replacement for VIC I chip?

Post by Kweepa »

I guess it depends whether you want something that works 99.9% of the time or 100% of the time.
I'd be good with 99.9%, although I can obviously see the arguments either way.
tlr
Vic 20 Nerd
Posts: 567
Joined: Mon Oct 04, 2004 10:53 am

Re: FPGA replacement for VIC I chip?

Post by tlr »

pixel wrote:I was under the impression that knowing enough to emulate it would be sufficient.
To fit it in a reasonable amount of space (like the CPLD mentioned) you need to know enough to deduce most of the actual silicon implementation, not just the observable behaviour.
Preferrably all this includes unintended quirks resulting from original design mistakes and process peculiarities.

To emulate the actual silicon you also need to replicate the actual I/O timing of the chip. To obtain that means putting a logic analyzer on a running box and running test programs which you will have to write.

If someone has the time and dedication it's a fun exercise though.
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Re: FPGA replacement for VIC I chip?

Post by Kweepa »

tlr wrote:To fit it in a reasonable amount of space (like the CPLD mentioned) you need to know enough to deduce most of the actual silicon implementation, not just the observable behaviour.
Really? I'd be interested to know why. If anything I would have thought that simulating the observable behaviour would be better, since you could take shortcuts that work with FPGA.
Post Reply