FPGA implementation of 68020

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

Post Reply
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

FPGA implementation of 68020

Post by gary36 »

looking for VHDL/verilog code of 68020 processor.
User avatar
farvardin
Captain Atari
Captain Atari
Posts: 452
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: FPGA implementation of 68020

Post by farvardin »

you can find this on the minimig project: https://github.com/rkrajnc/minimig-mist

probably there too: https://opencores.org/projects/tg68kc
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

I am just a beginner. There are so any files. Please let me know where to look into. I am also looking for self checking testbench for 68020.
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: FPGA implementation of 68020

Post by slingshot »

The latest from TobiFlex:
https://github.com/TobiFlex/TG68K.C

It has some missing pieces, and the bus is 16 bit only, but still the most compatible 68020 available.

Testbench? That doesn't exist.
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

Can anybody explain the microarchitecture of the soft core processor?
stormy
Atari God
Atari God
Posts: 1639
Joined: Tue Jan 26, 2016 12:39 pm

Re: FPGA implementation of 68020

Post by stormy »

gary36 wrote: Wed Nov 03, 2021 2:57 pm Can anybody explain the microarchitecture of the soft core processor?
You realise you can directly ask the guy who wrote it?
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

I could locate 68k patents . but finding difficult to find patents for 68020. Could anybody provide the link?
User avatar
mfro
Atari God
Atari God
Posts: 1290
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: FPGA implementation of 68020

Post by mfro »

This might help if you want to learn: https://www.jwhitham.org/ri/pr3-40189.pdf

It's not a complete '020 (and no microcode implementation), but it starts at the beginning.
User avatar
mfro
Atari God
Atari God
Posts: 1290
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: FPGA implementation of 68020

Post by mfro »

... excuse the double post :?
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

I have seen the above link. However for full 68020 compatibility, microcode is required. Behavioral implementation will be tenuous
User avatar
sporniket
Captain Atari
Captain Atari
Posts: 244
Joined: Fri Feb 16, 2018 5:39 pm

Re: FPGA implementation of 68020

Post by sporniket »

What is your purpose exactly ?

Being a beginner myself in VHDL, I find it quite big to tackle directly a CPU model like one of the 68k family.

ijor retro-engineered the 68k, with microcode, cycle exact timings etc... https://github.com/ijor/fx68k
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

My purpose is to replace 68020 for a legacy system. I understood from various sources that the micro-architecture for 68000 and 68020 are identical ( except for some fancy features such as dynamic bus sizing, cache etc) and they differ only in microcode. So looking for the same.
User avatar
mfro
Atari God
Atari God
Posts: 1290
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: FPGA implementation of 68020

Post by mfro »

gary36 wrote: Tue Nov 30, 2021 4:38 am ... I understood from various sources that the micro-architecture for 68000 and 68020 are identical ( except for some fancy features such as dynamic bus sizing, cache etc) and they differ only in microcode...
I would seriously doubt that.

The 68020 is much more sophisticated than the (rather simple) 68000. Unlike the '000, the '020 has a 3-stage pipelined architecture and additional complex adressing modes (both documented in the UM). Just like the '030.
I would assume the internal architecture much more comparable to an 'unfinished 68030' than to the 68000. Or roughly: 68020 + 68851 = 68030.

There's no guarantee, but I would also assume cycle exactness isn't a strict requirement if you want to replace a real 68020 with an FPGA implementation. As long as your replacement cleanly implements the documented bus protocol, you should be good to go.
This assumption is based on the pipelined architecture together with the processor caches. These make the '020 runtime performance somehow non-deterministic already (similar to modern processor architectures): you can't really tell what the real runtime of a certain instruction sequence will be unless you specifically prepared your code upfront (i.e. flush instruction pipe and caches).

Anyway, implementation of a '020 (cycle exact or not) will be a steep learning curve for a HDL/FPGA beginner. Good luck with that!
gary36
Retro freak
Retro freak
Posts: 12
Joined: Mon Oct 18, 2021 4:19 pm

Re: FPGA implementation of 68020

Post by gary36 »

Ok. I got it. Ho do we go about bench marking the performance of 68k processor?
kolla
Captain Atari
Captain Atari
Posts: 451
Joined: Thu Sep 17, 2015 11:39 pm
Contact:

Re: FPGA implementation of 68020

Post by kolla »

gary36 wrote: Wed Dec 01, 2021 4:44 am Ok. I got it. Ho do we go about bench marking the performance of 68k processor?
Same as with any other processor, you run software on it and compare performance with other implementations.
-- kolla
Post Reply

Return to “FPGA Chat”