Cloning the GameCube component cable

Portables, case replacements, mods etc, all in here!
User avatar
tesla246
Posts: 121
Joined: Tue Dec 11, 2012 1:48 pm

Re: Cloning the GameCube component cable

Post by tesla246 » Fri May 15, 2015 6:00 pm

megalomaniac wrote:
andre104623 wrote:Just remember I think that there will never be a plug-and-play version so your going to have to solder something.

....pfffft
you underestimate the power of the MEGA
YEAHHHHHHHHH :D :D :D

Mega, can you tease us some more? Will it be HDMI audio and video in a single cable? Would be awesome.
Dream mod: HI-speed port device utilizing 4:4:4 RGB 32 bit colour, 720p video and variable refresh rate. :shock:
Favourite mod: GC Loader flashed with latest swiss.
Eagerly awaiting a normal, form-factor wise, wireless controller with rumble. :)
andre104623
Posts: 694
Joined: Wed May 07, 2014 2:24 pm

Re: Cloning the GameCube component cable

Post by andre104623 » Fri May 15, 2015 6:54 pm

lev11 wrote:Blimey @andre104623 looks like you have been unlucky!
My GC-video DVI on my standard PAL gamecube has worked on all the following:

Samsung TV
Panasonic TV
LG TV
Benq monitor (via HDMI -> DVI cable)
Marantz AV amp
2 x different unbranded cheapo PC monitors

Basically everything I can access with a HDMI input has worked, though some don't like 240p just adding linedouble + with or without scanlines sorts that.
Well lucky you. I'm not buying a new TV this year so maybe next year

Wait a minute PAL gamecube. So your mostly using 576p and 576i correct? So my problem is I can't get a picture from HDMI I'm guessing it because my TV won't read 480i and 480p though HDMI.
User avatar
lev11
Posts: 10
Joined: Fri Apr 24, 2015 7:53 am

Re: Cloning the GameCube component cable

Post by lev11 » Fri May 15, 2015 10:20 pm

No mostly in 480i, or 480p (if booted via swiss), or 240p for gameboy player, as I always select 60Hz mode. PAL games let you choose between 50hz (576i) and 60Hz (480i).

Have you tried KNJN's HDMI.XC3S200.bit, its a free download when you buy the board? That would let you test the FPGA on your TV independantly of your gamecube or wiring, it still works in place as long as you powerup the gamecube for the 5v. I had to test mine when updating between v1 and v1.1 as I had trouble flashing it. At least you'd know whether or not it was the board that had the issue then.
happy_bunny
Posts: 106
Joined: Mon Mar 09, 2015 10:57 pm

Re: Cloning the GameCube component cable

Post by happy_bunny » Sat May 16, 2015 2:55 pm

I think it maybe a problem with true NTSC gamecubes, so we have

unseen / happy_bunny / lev11 with pal gamecubes it all works lovely on are TV

then we have

andre104623 with a NTSC gamecube and it only works a PC monitor.

has anyone else in north america tried unseens code on there true NTSC gamecube ?
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: Cloning the GameCube component cable

Post by novenary » Sat May 16, 2015 10:07 pm

That doesn't make sense. The only difference between a pal and an NTSC cube is the video encode which isn't involved in the chain when using the digital port.
Xesxen
Posts: 28
Joined: Mon Jul 21, 2014 4:24 pm
Location: The Netherlands

Re: Cloning the GameCube component cable

Post by Xesxen » Sat May 16, 2015 11:18 pm

... Weird... maybe there's a timing difference somewhere on the signal?
sl33pydog
Posts: 13
Joined: Sat Apr 25, 2015 3:54 am

Re: Cloning the GameCube component cable

Post by sl33pydog » Sun May 17, 2015 2:56 am

I'll be able to try it this week on a ntsc if I can get through the wiring.
User avatar
lev11
Posts: 10
Joined: Fri Apr 24, 2015 7:53 am

Re: Cloning the GameCube component cable

Post by lev11 » Sun May 17, 2015 3:16 pm

Unseen, have you seen Extrems' Gameboy Interface: viewtopic.php?f=37&t=2782 ?
GCVideo reports the ultra low latency version (59.7276Hz) as 288p@50Hz, but my TV sees it as 240p60Hz.
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Sun May 17, 2015 4:50 pm

lev11 wrote:Unseen, have you seen Extrems' Gameboy Interface: viewtopic.php?f=37&t=2782 ?
GCVideo reports the ultra low latency version (59.7276Hz) as 288p@50Hz, but my TV sees it as 240p60Hz.
I haven't tested that one yet.

If GCVideo claims it is 288p@50, then the flags sent by the Gamecube identify it as a progressive PAL mode with 15kHz horizontal rate. I suspect Extrems modifies the video mode parameters quite a bit to match the Gameboy's frame rate as well as possible, in which case the blanking regeneration in GCVideo may get confused a bit.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
andre104623
Posts: 694
Joined: Wed May 07, 2014 2:24 pm

Re: Cloning the GameCube component cable

Post by andre104623 » Thu Jun 04, 2015 7:36 pm

@unseen Is there any benefit to update my 1.1 DVI to the 1.2?
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Thu Jun 04, 2015 9:14 pm

andre104623 wrote:@unseen Is there any benefit to update my 1.1 DVI to the 1.2?
The only difference is better compatibility with some third-party controllers, specifically a certain NES-to-Gamecube adapter. If the OSD works with your current controller, there won't be any difference.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
andre104623
Posts: 694
Joined: Wed May 07, 2014 2:24 pm

Re: Cloning the GameCube component cable

Post by andre104623 » Fri Jun 05, 2015 2:43 pm

Unseen wrote:
andre104623 wrote:@unseen Is there any benefit to update my 1.1 DVI to the 1.2?
The only difference is better compatibility with some third-party controllers, specifically a certain NES-to-Gamecube adapter. If the OSD works with your current controller, there won't be any difference.
Ok thank you. I use a wavebird and the OSD works everytime
meneerbeer
Posts: 212
Joined: Wed Sep 03, 2014 9:13 am

Re: Cloning the GameCube component cable

Post by meneerbeer » Sat Jun 06, 2015 1:10 pm

I have got GC audio over HDMI working.
[youtube]https://www.youtube.com/watch?v=9G0SDgQcE2Q[/youtube]

When you see the GC screen, you see the GC image through composite. After that I switch to HDMI. The screen then turns yellow. That is because, I wanted to give it a quick try, so I only connected the I2S signals to my FPGA. So I am outputing my own image currently, which is just a yellow image.

Currently it does not use any code from GCVideo. What it basically is, is just a module that outputs a fixed HDMI image, which also has I2S inputs for audio. It outputs 32KHz audio at the moment, but I think that should not be too hard to change to 48KHz. Only thing I am not sure about is whether the I2S clock and the video clock are derived from the same input clock. If that is not the case, then we need to make the CTS factor variable, I think. Other option is to drop an audio sample every now and then (will rarely happen, can not be noticed at all).

I would love to try to get this to work with GCVideo, but I am a bit short on time and I would also need advice how to cleanly connect all the signals. At the moment I have removed the shielding underneath the motherboard (heatsink is now loose). Unfortunately my disc drive does not seem to work either, so I could not show a game. :?
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Sat Jun 06, 2015 4:12 pm

andre104623 wrote:@unseen Is there any benefit to update my 1.1 DVI to the 1.2?
And for completeness: 1.3 only changes a single bit in the SPDIF data stream which stops some Realtek chip from muting the signal.
meneerbeer wrote:I have got GC audio over HDMI working.
Nice!
Only thing I am not sure about is whether the I2S clock and the video clock are derived from the same input clock.
They are, the audio sample rate is locked at 54MHz / 1124, so a possible CTS/N pair would be N = 6144, CTS = 26976.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
meneerbeer
Posts: 212
Joined: Wed Sep 03, 2014 9:13 am

Re: Cloning the GameCube component cable

Post by meneerbeer » Sat Jun 06, 2015 9:51 pm

Unseen wrote:
andre104623 wrote:@unseen Is there any benefit to update my 1.1 DVI to the 1.2?
And for completeness: 1.3 only changes a single bit in the SPDIF data stream which stops some Realtek chip from muting the signal.
meneerbeer wrote:I have got GC audio over HDMI working.
Nice!
Only thing I am not sure about is whether the I2S clock and the video clock are derived from the same input clock.
They are, the audio sample rate is locked at 54MHz / 1124, so a possible CTS/N pair would be N = 6144, CTS = 26976.
Are you currently working on audio support? I think it should be relatively easy to add. My code is modified from NeoGeoHDMI, although I am also porting it to VHDL currently, but I think it is good to first test if it even works. What I would propose is to make GCVideo output the decoded RGB + signals indicating what the HDMI state should be (active video, video/data preamble, data etc.) and feed this to a unit that converts the RGB video + i2s to HDMI. You can base the state on horizontal count and vertical count and I think you already have those counters implemented.

I am interested in how you hooked up your board to the GameCube. Did you remove your digital port? I am kind of leaning towards first making a PCB board that fits nicely in the console, because I hate messy wiring. Underneath the disc drive is plenty of space to fit a board, but getting the wires from the digital port to there seems a bit annoying..
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Sat Jun 06, 2015 10:28 pm

meneerbeer wrote:Are you currently working on audio support?
Yes, although very slowly.
My code is modified from NeoGeoHDMI,
I know that code and it's one of the sources for my notes, but I don't use it directly for various reasons - one of them being that GCVideo needs a bit more flexibility because it can output six different video modes.
You can base the state on horizontal count and vertical count and I think you already have those counters implemented.
My current test bed is a bit closer to XAPP460 and just expects parallel RGB+Blanking+Syncs as input. Currently there is just one fixed aux packet that is triggered by VSync, but if I remember the timing correctly adding one or two data packets after every HSync should be no problem and that wouldn't require any counters at all. It's still quite broken though, I need to shuffle a few things around the state machine to ensure the timing works out.
I am interested in how you hooked up your board to the GameCube. Did you remove your digital port?
Yes, and I soldered short pieces of ribbon cables that are threaded through its opening to a .1 inch dual-row pinheader on the outside. I'm thinking about changing this to a 26-pin Sub-D connector (three-row version of the 15 pin "PC game port" one) because it seems that one of the connections has broken - again.
I am kind of leaning towards first making a PCB board that fits nicely in the console, because I hate messy wiring. Underneath the disc drive is plenty of space to fit a board, but getting the wires from the digital port to there seems a bit annoying..
The Pluto board that I am currently targeting should be small enough to fit into that space, but a cheaper alternative(*) with a sufficiently small form factor would be nice.

(*) Scarab Hardware has announced a board with the same XC3S200A FPGA, HDMI output and integrated JTAG adapter for 35 USD, but it appears that it is still not shipping. It's physically larger, so integrating it into the Gamecube would likely not be possible.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
meneerbeer
Posts: 212
Joined: Wed Sep 03, 2014 9:13 am

Re: Cloning the GameCube component cable

Post by meneerbeer » Sun Jun 07, 2015 9:01 am

Unseen wrote: My current test bed is a bit closer to XAPP460 and just expects parallel RGB+Blanking+Syncs as input. Currently there is just one fixed aux packet that is triggered by VSync, but if I remember the timing correctly adding one or two data packets after every HSync should be no problem and that wouldn't require any counters at all. It's still quite broken though, I need to shuffle a few things around the state machine to ensure the timing works out.
I have seen XAPP460. I think that makes more sense for cleaner code. I guess you only need to recognize the beginning and ending of blanking area a certain number of samples ahead. I am a bit confused with what you mean with one AUX packet. Are you buffering all the audio and send it only when VSync is triggered? Because you can easily only send the audio data during the horizontal blanking.
Yes, and I soldered short pieces of ribbon cables that are threaded through its opening to a .1 inch dual-row pinheader on the outside. I'm thinking about changing this to a 26-pin Sub-D connector (three-row version of the 15 pin "PC game port" one) because it seems that one of the connections has broken - again.
This is why I hate development/breadboard setups. I will have a look at making a PCB. Only thing that sucks imo is getting the wires to the board then. I think part of the bottom shielding needs to be cut away if you want to solder the wires to the bottom of the digital port.
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Sun Jun 07, 2015 9:27 am

meneerbeer wrote:I guess you only need to recognize the beginning and ending of blanking area a certain number of samples ahead.
Yes, the output data must switch to 8 preamble pixels followed by 2 guardband pixels just before the active video area. Right now I do that just like the appnote using shift registers, but since everything is a bit space-constrained I plan modify the earlier video stages to provide an "early warning" version of the blanking signal instead.
I am a bit confused with what you mean with one AUX packet. Are you buffering all the audio and send it only when VSync is triggered?
Currently the encoder doesn't even have an audio input, the encoder needs to get the process of sending just a single aux packet with fixed data right before I start worrying about that. Triggering that single test packet using VSync is quite convenient for simulation and when it's implemented the video infoframe would probably get sent there too.
This is why I hate development/breadboard setups. I will have a look at making a PCB. Only thing that sucks imo is getting the wires to the board then. I think part of the bottom shielding needs to be cut away if you want to solder the wires to the bottom of the digital port.
A fixed internal installation would be too inflexible for development for me though, occasionally I still connect a logic analyzer to see what happens if the simulation cannot provide sufficient detail or I'm too lazy to construct another testbench for the current problem.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
meneerbeer
Posts: 212
Joined: Wed Sep 03, 2014 9:13 am

Re: Cloning the GameCube component cable

Post by meneerbeer » Mon Jun 08, 2015 9:04 am

Unseen wrote: A fixed internal installation would be too inflexible for development for me though, occasionally I still connect a logic analyzer to see what happens if the simulation cannot provide sufficient detail or I'm too lazy to construct another testbench for the current problem.
I am not too familiar with Xilinx. What I like about Altera is the SignalTap logic analyzer. I almost never write a testbench anymore because of that. Also, the JTAG programmer is very cheap.

I think Xilinx has the option of an internal logic analyzer as well, but I guess you do not have a JTAG programmer? I also read it was not really that good.

I need to think about how to program my custom PCB. The JTAG programmer seems rather expensive. It is so expensive that I seriously considered to just make a board with an Altera FPGA, but they have bigger footprints, usually need 3 power levels and do not have TMDS outputs. Maybe I should just get the JTAG programmer.

I am thinking of making a board with an FPC connector and then also use a breakout board to go from the FPC cable to the digital video port connections. I think it should be possible to place the breakout board on the bottom of the shielding of the motherboard and then cut away part of the shielding to be able to access the bottom of the digital video port. Not sure which lengths the clock signal can take, but of course it is possible to shield it properly by putting ground signals around it.
User avatar
Unseen
Posts: 190
Joined: Fri Jul 04, 2014 11:52 am

Re: Cloning the GameCube component cable

Post by Unseen » Mon Jun 08, 2015 9:44 am

meneerbeer wrote:I am not too familiar with Xilinx. What I like about Altera is the SignalTap logic analyzer. I almost never write a testbench anymore because of that. Also, the JTAG programmer is very cheap.

I think Xilinx has the option of an internal logic analyzer as well, but I guess you do not have a JTAG programmer? I also read it was not really that good.
Xilinx has ChipScope which is their equivalent to SignalTap and I think I even have a license for it. I don't think it would be very useful for me though because it needs quite a bit of block RAM to store the data and IIRC there are only three still left in the design. With a simulation, the only limit is the space on my hard drive and I'm not limited to synthesizable constructs - it's quite useful to see U/X signals propagating through the design to figure out where an initalisation is missing.
I need to think about how to program my custom PCB. The JTAG programmer seems rather expensive.
There are cheap chinese clones of the Xilinx USB programmer. If you want to avoid them, you could generate an SVF file with the Xilinx tools and play it using another JTAG programmer. Another option is xc3sprog, an open-source tool that can program various Xilinx FPGAs and supports a number of different JTAG interfaces, although I'm not sure if the Altera USB Blaster is among them.
Asking for support by PM is anti-social. Ask in an open forum instead, so other people can benefit from the answers!
meneerbeer
Posts: 212
Joined: Wed Sep 03, 2014 9:13 am

Re: Cloning the GameCube component cable

Post by meneerbeer » Mon Jun 08, 2015 11:28 am

Ah, it seems you can use the USB Blaster if you use UrJTAG. I have a Papilio One FPGA lying here (my only Xilinx board), so I can give it a try to see if I can get it to work. If it does, I will just use JTAG to program the SPI flash, I guess.
User avatar
bentomo
Posts: 51
Joined: Sun Jun 05, 2011 6:39 pm

Re: Cloning the GameCube component cable

Post by bentomo » Tue Jun 16, 2015 6:06 pm

Very excited for this project!

I intend on using it for portables though so I have a question. Did anyone post the motherboard via locations for the digital port anywhere? Or will I have to trace them myself?

@LOCTronics, have you tried this with one of those 5" vga screens from aliexpress yet?
ImageImageImageImageImageImage
Redmagnusx
Posts: 59
Joined: Thu Mar 28, 2013 3:07 am

Re: Cloning the GameCube component cable

Post by Redmagnusx » Fri Jun 19, 2015 3:11 pm

Bentomo; you're much better off wiring directly to the AVE-DOL chip instead of the vias.
Voltz
Posts: 28
Joined: Thu Apr 16, 2015 8:13 am

Re: Cloning the GameCube component cable

Post by Voltz » Sun Jun 21, 2015 7:19 pm

@Bentomo, you should checl out the GC Sticky and click on Rev C component cable, if you click on it you'll see the pinout of
the NTSC AVE-DOL chip which Blargman found the pinout for.
Voltz
Posts: 28
Joined: Thu Apr 16, 2015 8:13 am

Re: Cloning the GameCube component cable

Post by Voltz » Sun Jun 21, 2015 7:27 pm

Also, Unseen would be possible to create our own PCB without having to buy one from OshPark?
For example Pcb etching from a cnc machine, or a laser printer beacause of its toner?
It also seems like it would be possible to print out the design you created for a laser printer, is it printable?
Post Reply