Welcome, Guest. Please login or register.

Author Topic: Expand A500 beyond 16 MB with KS1.3  (Read 1341 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Expand A500 beyond 16 MB with KS1.3
« on: July 01, 2010, 10:46:32 AM »
If RAM is installed above 16 MB (0x0100 0000), and especially at 0x1000 0000 - 0xFF00 0000. Can the Kickstart v1.3 even handle it ..?, what's needed to add the memory to the available allocation pool?

The m68000 CPU will be made to handle it by using a m680000 variant with 32 bit address bus. It should be able to handle 4 GB of RAM.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #1 on: July 01, 2010, 10:49:51 AM »
Doesn't A500 completely lack the uppermost 8 addressing signals anyway?

Just swapping the CPU alone won't give you true 32bit addressing.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #2 on: July 01, 2010, 11:28:49 AM »
Ofcourse thats because it would be a complete FPGA implementation.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #3 on: July 01, 2010, 11:46:37 AM »
Quote from: freqmax;568364
If RAM is installed above 16 MB (0x0100 0000), and especially at 0x1000 0000 - 0xFF00 0000. Can the Kickstart v1.3 even handle it ..?, what's needed to add the memory to the available allocation pool?
Calling exec/AddMemList is the easy way. The harder way would be to have autoconfig for the memory. But since you're in control of the whole HW anyway, why bother...

Note however that the maximum address you may use is 0x7fffffff. For instance exec/AllocEntry uses negative return code to indicate failure, and thus >= 0x80000000 cannot be used.
« Last Edit: July 01, 2010, 11:48:38 AM by Piru »
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #4 on: July 01, 2010, 01:41:55 PM »
Maximum memory in Amiga is 2 GB then ;)
 

Offline joekster

  • Full Member
  • ***
  • Join Date: May 2007
  • Posts: 203
    • Show only replies by joekster
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #5 on: July 01, 2010, 03:47:10 PM »
I am able to "addmem" on my A500 / csa mega midget racer to give way over 16mb ram under kick 1.3. Below are my memory segments:

2MB chipram
8MB fastram
.5MB CSA-MMR SRAM
8MB CSA-MMR DRAM
Total of 18.5MB
 

Offline psxphill

Re: Expand A500 beyond 16 MB with KS1.3
« Reply #6 on: July 01, 2010, 04:16:08 PM »
Quote from: Piru;568373
Calling exec/AddMemList is the easy way. The harder way would be to have autoconfig for the memory. But since you're in control of the whole HW anyway, why bother...

Autoconfig allows you to call exec/AddMemList from an autoboot "rom" (the rom would be embedded in the fpga image).
 
All you'd have to do is respond internally to e80000 space until told to shut up, at which point you'd pass on the accesses to the cpu socket.
 
As you're going to have to have local vs motherboard accesses anyway then it's not going to be much extra logic.
 
The alternative is a command in s:startup-sequence, but thats boring.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #7 on: July 01, 2010, 05:04:37 PM »
Quote from: psxphill;568421
Autoconfig allows you to call exec/AddMemList from an autoboot "rom" (the rom would be embedded in the fpga image).
 
All you'd have to do is respond internally to e80000 space until told to shut up, at which point you'd pass on the accesses to the cpu socket.
 
As you're going to have to have local vs motherboard accesses anyway then it's not going to be much extra logic.
 
The alternative is a command in s:startup-sequence, but thats boring.

The alternative I was thinking about is actually just executing the AddMemList from regular resident tag. Easier than doing the autoconfig magic, at least if you haven't done it before.
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #8 on: July 01, 2010, 06:57:47 PM »
Quote from: freqmax;568364
If RAM is installed above 16 MB (0x0100 0000), and especially at 0x1000 0000 - 0xFF00 0000. Can the Kickstart v1.3 even handle it ..?, what's needed to add the memory to the available allocation pool?

The m68000 CPU will be made to handle it by using a m680000 variant with 32 bit address bus. It should be able to handle 4 GB of RAM.


Kickstart / AmigaOS has no problems handling 32 bit addresses. As Piru mentioned there are bugs/design problems which limit RAM to 2 GB.

To get access to 'extended memory' (>16 MB) you need a CPU with a 32 bit address bus ('020+). You also need to provide a RAM controller to handle the RAM, the bus decoder logic and the RAM chips of course.

Adding the RAM can't be done by AutoConfig since these addresses can only be handled with Zorro III (possibly it can be faked - not sure here - but that would require 2.0+). Without AutoConfig you either need a boot ROM or just AddMem the RAM.
 

Offline rkauer

  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 3263
    • Show only replies by rkauer
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #9 on: July 03, 2010, 06:31:50 AM »
Resuming the whole thing: you can't have more than 1 or 2Mb of chip RAM plus 9.5Mb of FAST RAM on plain 68000 CPU.

 1 or 2Mb pending the Agnus/Alice version (Alice always accept 2Mb), then up to 8Mb of FAST RAM on "normal" way (Zorro-2 autoconfig space) plus up to 1.5Mb using the slow-RAM space.

 Using a full 68020 or better CPU is another huge matter, as they can handle up to 4Gb of address "space". Not the scope of this thread.

BTW: Alice is also beyond this thread's scope, as it is the AGA Agnus equivalent.

 Comparing it to the available pc equivalent of the era: the 8086 CPU only can handle 1Mb of RAM, at the same time the 68000 can handle 16Mb, which, in Amiga terms, means up to 11.5Mb RAM. Not bad! Not bad at all!
« Last Edit: July 03, 2010, 06:36:46 AM by rkauer »
Goodbye people.

I\'ll pop on from time to time, RL is acting up.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #10 on: July 05, 2010, 12:56:51 PM »
With a softcore CPU it's possible to make an plain 68000 CPU with a physical 32 bit address bus.

As for chip RAM, it would be possible to use 1 GB if you want, as the OCS etc.. can be given more address lines in the same way.

Btw, how does KS "know" how much RAM is inside the machine when it coldboots?
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #11 on: July 05, 2010, 01:51:18 PM »
Quote from: freqmax;569081
how does KS "know" how much RAM is inside the machine when it coldboots?

KS ROM performs a memory test for chip and ranger memory.
Rest is added by autoconfig(TM).
 

Offline gertsy

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 2317
  • Country: au
    • Show only replies by gertsy
    • http://www.members.optusnet.com.au/~gbakker64/
Re: Expand A500 beyond 16 MB with KS1.3
« Reply #12 on: July 05, 2010, 02:07:34 PM »
Quote from: rkauer;568728

Goodbye people.

Was an honour and a pleasure to be in your company.

I'll miss you.


Why rkauer, Where u going ?
?
?
We'll miss you too.  Especially if u just disappear one day without a mewl ?  Can PM if you're up to it.

@all Sorry for the momentary hijack...