GBA Core porting to Mister

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

FPGAzumSpass
Atari User
Atari User
Posts: 32
Joined: Sat Nov 16, 2019 10:09 am

GBA Core porting to Mister

Postby FPGAzumSpass » Sat Nov 16, 2019 10:23 am

Hi all,

first, to introduce myself:
I'm working with FPGAs for Hobby, after i worked 7 years as full-time FPGA developer.
While I can read verilog/system verilog, my designs are VHDL only.

I don't have a Mister yet and playing all those old consoles/arcade cores is NOT my main goal or motivation,
as most of them are unknown to me. Probably i'm too young.

The GBA core:

you can find the core at github: https://github.com/RobertPeip/FPGBA
some videos at youtube: https://www.youtube.com/channel/UC553Ii ... -zsVLF6Egw

All status info is also on github, so i will not repeat it here.

It's currently running on the DE2-115 board with a cyclone 4 of equal size to the Mister C5.
Main difference from this side is:
- DE2-115 has 32 Bit SDRam
- Mister has more BRAM

So there are a few changes that would make sense when porting the core.

I already did some kind of polish the top level to make it more generic, but probably more has to be done.
Currently i'm searching for someone to work together to get it ported.

Also one request from my side: please don't copy the source into another repo, but instead create a subgit. I'm also doing this and i hope the project doesn't get fragmented.

That's it for now.
Please don't be too hard, it were some tough last weeks to get the core this far.
I need to care of my family again :)

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5606
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: GBA Core porting to Mister

Postby Sorgelig » Sat Nov 16, 2019 11:22 am

What is subgit?

FPGAzumSpass
Atari User
Atari User
Posts: 32
Joined: Sat Nov 16, 2019 10:09 am

Re: GBA Core porting to Mister

Postby FPGAzumSpass » Sat Nov 16, 2019 11:34 am

It's like a link. When you check out the git, you can also check out all submodules to get the full project.
https://git-scm.com/book/en/v2/Git-Tools-Submodules

So you don't have to copy the source. If that doesn't work for Mister for some reason, just tell me.

Dubon
Atariator
Atariator
Posts: 27
Joined: Fri Oct 26, 2018 4:01 am

Re: GBA Core porting to Mister

Postby Dubon » Sat Nov 16, 2019 11:37 am

Fork?

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5606
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: GBA Core porting to Mister

Postby Sorgelig » Sat Nov 16, 2019 11:48 am

FPGAzumSpass wrote:It's like a link. When you check out the git, you can also check out all submodules to get the full project.
https://git-scm.com/book/en/v2/Git-Tools-Submodules

So you don't have to copy the source. If that doesn't work for Mister for some reason, just tell me.

I see.
To be an official core for MiSTer, the whole sources must be hosted in MiSTer-devel group. There is no limit who create and maintain the repo. I can add you into MiSTer-devel, so you can create your repos there.
Also process of porting and maintaining the core includes the possible patches will be a real pain on spread sources with different maintainers.. So what you request is making the port hard.
I suggest this workflow: Some one (may be me, i'm not sure) create a new repository in MiSTer-devel with standard structure of sources as all other MiSTer cores, and after initial porting, you will be added as admin to this repo so you will be able to continue to update the core (if you want).
If you don't agree, then ok.. i'm pass in this case. Someone can do unofficial port based on your requirements. It will be unofficial core.

FPGAzumSpass
Atari User
Atari User
Posts: 32
Joined: Sat Nov 16, 2019 10:09 am

Re: GBA Core porting to Mister

Postby FPGAzumSpass » Sat Nov 16, 2019 12:01 pm

It that fits better for Mister, i'm ok with this.

I just asked for this, as i will do further developing on the core internals on my board, because it has better debugging possibilites and i have them already in place and implemented.

So i will add the official Mister port as submodule to my project, that also works.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5606
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: GBA Core porting to Mister

Postby Sorgelig » Sat Nov 16, 2019 1:27 pm

Good!

paulbnl
Atari maniac
Atari maniac
Posts: 92
Joined: Wed Oct 24, 2018 9:43 am

Re: GBA Core porting to Mister

Postby paulbnl » Sat Nov 16, 2019 3:19 pm

Thanks for releasing the source!

FPGAzumSpass
Atari User
Atari User
Posts: 32
Joined: Sat Nov 16, 2019 10:09 am

Re: GBA Core porting to Mister

Postby FPGAzumSpass » Sat Nov 16, 2019 3:46 pm

Sorgelig, could you maybe point me to the place where the qsys platform designer files are?

Main reason is: i'd like to use the uart connected to the HPS in the programmable logic as a debug port.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5606
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: GBA Core porting to Mister

Postby Sorgelig » Sat Nov 16, 2019 4:28 pm

MiSTer doesn't use QSYS.
Glue logic is emu entity. You can find it in any MiSTer core. emu has UART signals. Usually UART used either for midi or ppp or terminal to Linux. But it can be configured on linux side.
Other way to connect to the core with debug interface is USER I/O. It can be also UART (needs HDL UART implementation) which you can connect to outer world.

Probably it would be hard for you to jump to MiSTer framework, especially if you have no MiSTer. Probably i need to make an initial port with all HPS stuff and SDRAM controller. Give me some time.

FPGAzumSpass
Atari User
Atari User
Posts: 32
Joined: Sat Nov 16, 2019 10:09 am

Re: GBA Core porting to Mister

Postby FPGAzumSpass » Sat Nov 16, 2019 4:49 pm

Ok, i'll probably wait until you do the initial port. Thanks.

My DE10-Nano is ordered, so i can support when it's here.
However, i'd rather focus on the core internals if possible.

User avatar
BitsNStuff
Atari freak
Atari freak
Posts: 72
Joined: Tue Oct 16, 2018 7:55 am
Contact:

Re: GBA Core porting to Mister

Postby BitsNStuff » Sat Nov 16, 2019 6:02 pm

Wonderful work FPGAzumSpass, GBA really would be a dream core for me. One of my favourite systems with a fantastic library of good quality games.

I'm always really happy when new developments become a part of the _official_ work stream as it means that it then has the benefit of an entire community of experienced developers being able to assist and improve the experience for people and there really is some incredibly talented people putting their time and effort into the official builds.

Also, every core is obviously improved once Sorgelig gets to have a play with it!! :D

royaltaste
Atarian
Atarian
Posts: 1
Joined: Mon Mar 25, 2019 3:14 pm

Re: GBA Core porting to Mister

Postby royaltaste » Sun Nov 17, 2019 8:18 pm

@fpgazumspass if you need ram or an ioboard for your de10, let me know. Would be a pleasure to help.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5606
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: GBA Core porting to Mister

Postby Sorgelig » Tue Nov 19, 2019 3:03 am

FPGAzumSpass wrote:Ok, i'll probably wait until you do the initial port. Thanks.

My DE10-Nano is ordered, so i can support when it's here.
However, i'd rather focus on the core internals if possible.

Please check the private message.

User avatar
Newsdee
Atari God
Atari God
Posts: 1534
Joined: Fri Sep 19, 2014 8:40 am

Re: GBA Core porting to Mister

Postby Newsdee » Sun Nov 24, 2019 2:45 pm

Congratulations to FPGAZumSpass and Sorgelig for releasing a new cutting edge core! :lol:

ReedSolomon
Atari nerd
Atari nerd
Posts: 45
Joined: Tue Oct 09, 2018 1:52 am

Re: GBA Core porting to Mister

Postby ReedSolomon » Sun Nov 24, 2019 4:01 pm

Truly impressive, and I expect it to get more impressive given time to fix and find bugs. Congratulations!

Marauder66
Atarian
Atarian
Posts: 7
Joined: Thu Aug 22, 2019 1:33 am

Re: GBA Core porting to Mister

Postby Marauder66 » Sun Nov 24, 2019 4:42 pm

Thanks to all involved. Fantastic work.

Being playing Pokemon Pinball for the last hour.

User avatar
RealLarry
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 126
Joined: Sat Jan 31, 2015 12:05 pm
Location: San Junipero

Re: GBA Core porting to Mister

Postby RealLarry » Sun Nov 24, 2019 4:57 pm

Fantastic work. Really astounding. Great co-work. :cheers:
On the other side of the screen, it all looks so easy.

User avatar
remowilliams
Captain Atari
Captain Atari
Posts: 247
Joined: Mon Apr 02, 2007 1:49 am

Re: GBA Core porting to Mister

Postby remowilliams » Sun Nov 24, 2019 6:03 pm

@FPGAzumSpass this core is in *amazing* shape for a first release. Incredible work, many thanks to both you and Sorgelig! :)

User avatar
theimporter
Atari User
Atari User
Posts: 33
Joined: Sun Feb 17, 2019 6:58 pm

Re: GBA Core porting to Mister

Postby theimporter » Sun Nov 24, 2019 6:44 pm

Thanks for making this happen mate, GBA was one of the 5 cores left that I wanted for the MiSTer.

neopolo
Atarian
Atarian
Posts: 7
Joined: Sat Sep 15, 2018 7:16 am

Re: GBA Core porting to Mister

Postby neopolo » Sun Nov 24, 2019 9:07 pm

Thanks all.....for your hardwork.....it s a amazing core for it first release :cheers:

User avatar
theimporter
Atari User
Atari User
Posts: 33
Joined: Sun Feb 17, 2019 6:58 pm

Re: GBA Core porting to Mister

Postby theimporter » Sun Nov 24, 2019 9:09 pm

neopolo wrote:Thanks all.....for your hardwork.....it s a amazing core for it first release :cheers:


2nd release fixes save game issue, damn that was fast.

softtest1
Atari User
Atari User
Posts: 32
Joined: Tue Apr 30, 2019 6:37 pm

Re: GBA Core porting to Mister

Postby softtest1 » Sun Nov 24, 2019 10:40 pm

Amazing work! I played Golden Sun The Lost Age for a bit and I haven't noticed any issues so far.
Last edited by softtest1 on Mon Nov 25, 2019 1:23 am, edited 1 time in total.

User avatar
deltax5
Retro freak
Retro freak
Posts: 11
Joined: Tue Oct 02, 2018 1:42 am

Re: GBA Core porting to Mister

Postby deltax5 » Mon Nov 25, 2019 12:25 am

Playing some. pretty solid. hope to see rtc implemented if it's not already in.
Hope to see the cheat codes implemented soon.
wish there was a link cable adapter. Maybe a way to link up online if that is even possible.

barbaro00
Atariator
Atariator
Posts: 20
Joined: Tue Feb 07, 2017 10:34 am

Re: GBA Core porting to Mister

Postby barbaro00 » Mon Nov 25, 2019 8:16 am

MAGNIFICENT WORK!!!
I was waiting for this core.

Thak you thank you!!

I have play gradius galaxies, play with the mister it's a pleasure.
Gunstar Heroes have graphic errors...

Thank you!!!


Return to “MiSTer”

Who is online

Users browsing this forum: No registered users and 11 guests