Lets actually try Hybrid Emulation
-
robinsonb5
- Posts: 112
- Joined: Fri Jun 19, 2020 8:54 pm
- Has thanked: 12 times
- Been thanked: 38 times
Re: Lets actually try Hybrid Emulation
One thing to bear in mind: when the Amiga first starts up the Kickstart ROM is overlaid at location zero (until the relevant bit is cleared with a write to one the CIA registers) - the "Minimig" path knows how to handle that, but the direct-to-SDRAM path doesn't - so you should take the "minimig" path for Chip RAM accesses at bootup until the overlay's cancelled. I'm not sure how that's signalled to the CPU wrapper on MiSTer - I'll take a look...
Edit: OK - it looks like the fast path for chipram and kickstart is disabled via the cachecfg signal, the lower two bits of which are controlled by the kickstart overlay - so as long as you're using the slower "minimig" path any time the TG68 would have used it, this shouldn't be causing your problem.
Edit: OK - it looks like the fast path for chipram and kickstart is disabled via the cachecfg signal, the lower two bits of which are controlled by the kickstart overlay - so as long as you're using the slower "minimig" path any time the TG68 would have used it, this shouldn't be causing your problem.
Re: Lets actually try Hybrid Emulation
I think perhaps the mem_ready, chip_ready is controlled by some of the things I'm outputting. I'm trying remove that from my cpustate signal, so cpustate is driven from registers only.
-
robinsonb5
- Posts: 112
- Joined: Fri Jun 19, 2020 8:54 pm
- Has thanked: 12 times
- Been thanked: 38 times
Re: Lets actually try Hybrid Emulation
That's just awesome news - well done!
FPGA history is being made in this thread!
-
robinsonb5
- Posts: 112
- Joined: Fri Jun 19, 2020 8:54 pm
- Has thanked: 12 times
- Been thanked: 38 times
Re: Lets actually try Hybrid Emulation
From (turbo) Chip RAM or ARM-side Fast RAM?
Didn't you say you were using Musashi? That doesn't do JIT, or does it?
As a baseline can you run a Dhrystone or something entirely ARM-side to see what the emulator itself is capable of on the SoC?
Re: Lets actually try Hybrid Emulation
I actually don't have any vhd setup yet, so its all off adf files. Need to work out how to get lha archives on here!
Let me wire up reset then I'll upload a version to play with.
Let me wire up reset then I'll upload a version to play with.
Re: Lets actually try Hybrid Emulation
OK, here is the github fork for the hardware:
https://github.com/scrameta/Minimig-AGA_MiSTer
Here is also the latest test core.
NB how to use:
i) Start new core from the menu
ii) Set core to 68020, 2MB chip, 8MB fast and reset
iii) ssh into mister and start ./musashi_68020_mister
Should now work. Though when you reset it you currently need to restart musashi_68020_mister. I need to finish plumbing in reset.
Clearly very early version so likely lots won't work.
https://github.com/scrameta/Minimig-AGA_MiSTer
Here is also the latest test core.
NB how to use:
i) Start new core from the menu
ii) Set core to 68020, 2MB chip, 8MB fast and reset
iii) ssh into mister and start ./musashi_68020_mister
Should now work. Though when you reset it you currently need to restart musashi_68020_mister. I need to finish plumbing in reset.
Clearly very early version so likely lots won't work.
- Attachments
-
- minimig_hybrid_early_test1.tar.gz
- (2.5 MiB) Downloaded 54 times
-
ByteMavericks
- Posts: 40
- Joined: Tue Oct 27, 2020 4:52 pm
- Has thanked: 47 times
- Been thanked: 9 times
Re: Lets actually try Hybrid Emulation
That’s inspiringly awesome! Would love to get started with fpga stuff...
Re: Lets actually try Hybrid Emulation
Good luck!foft wrote: ↑Wed Apr 14, 2021 9:20 pm Tomorrow I’m going to try out Michal Schulz’s Emu68
https://github.com/michalsc/Emu68
Wish me luck!
You're creating history here, a lot of cores impossible now because of the lack of space (or frequencies too low) on the FPGA chip would become possible in this hybrid approach.
Some would call that heresy, I call that pushing boudaries and being smart! Congrats!
-
allyourbasekris
- Posts: 51
- Joined: Wed Sep 23, 2020 11:47 pm
- Has thanked: 17 times
- Been thanked: 20 times
Re: Lets actually try Hybrid Emulation
I just tried it out and got to Workbench and took you a nice screenshot.
Re: Lets actually try Hybrid Emulation
allyourbasekris wrote: ↑Wed Apr 14, 2021 10:18 pmI just tried it out and got to Workbench and took you a nice screenshot.Screenshot (4).png
BEAUTIFUL
-
lordoftime79
- Posts: 64
- Joined: Sun Feb 14, 2021 6:29 pm
- Been thanked: 1 time
-
lordoftime79
- Posts: 64
- Joined: Sun Feb 14, 2021 6:29 pm
- Been thanked: 1 time
Re: Lets actually try Hybrid Emulation
Can you please tell me how to use this - I dont know anything about ssh so where does the file go and how do I run it?
Re: Lets actually try Hybrid Emulation
I think it is better for you to wait until something more usable is posted. Right now it is a proof of concept, which is a huge step, but my guess is that you will be frustrated in no time.lordoftime79 wrote: ↑Wed Apr 14, 2021 11:15 pm Can you please tell me how to use this - I dont know anything about ssh so where does the file go and how do I run it?
-
lordoftime79
- Posts: 64
- Joined: Sun Feb 14, 2021 6:29 pm
- Been thanked: 1 time
Re: Lets actually try Hybrid Emulation
i just want to look i am excited if I had some instuctions i cud follow them.
Re: Lets actually try Hybrid Emulation
Download 7-zip
Extract the tar to get the two files
Download winscp
Connect to mister with winscp
- drag the musashi_68020_mister to /media/fat
- drag the core to /media/fat/_computer/ (with the other cores, I might have the name wrong)
Download putty or mobaxterm
Connect to mister with putty
cd /media/fat (then enter)
./musashi_68020_mister (then enter)
Worth a read:
https://www.jamesfmackenzie.com/2021/01 ... ing-files/
This will all be made simpler
Extract the tar to get the two files
Download winscp
Connect to mister with winscp
- drag the musashi_68020_mister to /media/fat
- drag the core to /media/fat/_computer/ (with the other cores, I might have the name wrong)
Download putty or mobaxterm
Connect to mister with putty
cd /media/fat (then enter)
./musashi_68020_mister (then enter)
Worth a read:
https://www.jamesfmackenzie.com/2021/01 ... ing-files/
This will all be made simpler
-
allyourbasekris
- Posts: 51
- Joined: Wed Sep 23, 2020 11:47 pm
- Has thanked: 17 times
- Been thanked: 20 times
Re: Lets actually try Hybrid Emulation
https://schh.medium.com/ssh-for-dummies-ea168e6ff547lordoftime79 wrote: ↑Wed Apr 14, 2021 11:20 pm i just want to look i am excited if I had some instuctions i cud follow them.