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

Unread post by robinsonb5 »

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.
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

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.
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

Its going to work this time, its going to work this time! I think that every time :D
jca
Posts: 536
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 29 times
Been thanked: 101 times

Re: Lets actually try Hybrid Emulation

Unread post by jca »

So far you made incredible progress in the blink of an eye.
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

We have workbench. Repeat, we have workbench!!

Many thanks for the help/advice @robinsonb5!
jca
Posts: 536
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 29 times
Been thanked: 101 times

Re: Lets actually try Hybrid Emulation

Unread post by jca »

One week since your original post :shock:
Did you get any sleep lately?
Congratulations!
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

So, ran sysinfo. Says its only half the speed of a 68040! Hmmm....
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

Unread post by robinsonb5 »

foft wrote: Wed Apr 14, 2021 7:12 pm We have workbench. Repeat, we have workbench!!
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

Unread post by robinsonb5 »

foft wrote: Wed Apr 14, 2021 7:28 pm So, ran sysinfo. Says its only half the speed of a 68040! Hmmm....
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?
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

Well I have 8MB fast ram set up arm side.

Yes Musashi, looks like it pre-compiles a jump table then runs through those.

Yeah, investigating:-)
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

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.
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

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.
Attachments
minimig_hybrid_early_test1.tar.gz
(2.5 MiB) Downloaded 54 times
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

So tomorrow evening:
i) Wire up reset to make it less annoying to use!
ii) Wire up some settings so you can e.g. select fast ram
iii) Try to make it faster
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

Unread post by ByteMavericks »

That’s inspiringly awesome! Would love to get started with fpga stuff...
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

Tomorrow I’m going to try out Michal Schulz’s Emu68
https://github.com/michalsc/Emu68
Wish me luck!
kolla
Posts: 143
Joined: Sat Jun 13, 2020 7:56 am
Has thanked: 11 times
Been thanked: 21 times

Re: Lets actually try Hybrid Emulation

Unread post by kolla »

Where is the Sysinfo screenshot! :)
Neocaron
Posts: 47
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 9 times
Been thanked: 4 times

Re: Lets actually try Hybrid Emulation

Unread post by Neocaron »

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!
Good 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

Unread post by allyourbasekris »

kolla wrote: Wed Apr 14, 2021 9:25 pm Where is the Sysinfo screenshot! :)
I just tried it out and got to Workbench and took you a nice screenshot.
Screenshot (4).png
Screenshot (4).png (580.41 KiB) Viewed 1609 times
Neocaron
Posts: 47
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 9 times
Been thanked: 4 times

Re: Lets actually try Hybrid Emulation

Unread post by Neocaron »

allyourbasekris wrote: Wed Apr 14, 2021 10:18 pm
kolla wrote: Wed Apr 14, 2021 9:25 pm Where is the Sysinfo screenshot! :)
I just tried it out and got to Workbench and took you a nice screenshot.Screenshot (4).png
:shock: :shock: :shock: :shock: :shock:

BEAUTIFUL :mrgreen:
lordoftime79
Posts: 64
Joined: Sun Feb 14, 2021 6:29 pm
Been thanked: 1 time

Re: Lets actually try Hybrid Emulation

Unread post by lordoftime79 »

how do i start musashi_68020_mister?
lordoftime79
Posts: 64
Joined: Sun Feb 14, 2021 6:29 pm
Been thanked: 1 time

Re: Lets actually try Hybrid Emulation

Unread post by lordoftime79 »

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?
jca
Posts: 536
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 29 times
Been thanked: 101 times

Re: Lets actually try Hybrid Emulation

Unread post by jca »

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?
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
Posts: 64
Joined: Sun Feb 14, 2021 6:29 pm
Been thanked: 1 time

Re: Lets actually try Hybrid Emulation

Unread post by lordoftime79 »

i just want to look i am excited if I had some instuctions i cud follow them.
foft
Posts: 232
Joined: Thu Dec 03, 2020 11:05 am
Has thanked: 27 times
Been thanked: 66 times

Re: Lets actually try Hybrid Emulation

Unread post by foft »

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
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

Unread post by allyourbasekris »

lordoftime79 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.
https://schh.medium.com/ssh-for-dummies-ea168e6ff547
Post Reply