REU

From C64-Wiki
Jump to: navigation, search
(thumbnail)
Commodore 1750 REU

A REU (RAM Expansion Unit) is a hardware device that increases the amount of RAM available to a computer[1].

Contents


[edit] History

The MOS Technology 65XX and 85XX family of CPUs have an 8-bit data bus and a 16-bit address bus[2]. Memory addressing by the CPU alone is therefore limited to 64 Kb at any one time. The only way to improve (but not increase) this limit is with external logic; which swaps blocks (banks) of 64 Kb memory that the CPU can see (address). The C64 does not have any such logic, but the C128 does[3] (in an additional IC). The MOS Technology 8722 MMU (Memory Management Unit) supplies this logic in order to swap 2 banks of RAM which provide the C128 with 128 Kb of RAM. Unfortunately due to competition from new 16/32-bit computers available at the launch of the C128, Commodore discontinued further development of the 8-bit MMU. However, the potential for RAM expansion was evident, even if the demand was not clear; the REUs were therefore created as a more cost-effective way to increase the default memory of an existing computer. Although Commodore were notably absent[4] from the 1984 CES (Consumer Electronics Show) and COMDEX (Computer Dealers' Exhibition), at the 1985 CES a demonstration of the new Commodore REU with the famous spinning globe demo was on display[5]. REUs continued to be developed and refined for over a decade.

[edit] Hardware

The REU contains a logic IC and DRAM. The IC is is known as a REC (RAM Expansion Controller), and contains the logic required to swap banks of memory on request from code executed by the CPU. The RAM is not directly accessible[6] to the CPU and, therefore, no code in the REU can be executed in situ. The data must be transferred to the (default) RAM that is directly accessible to the CPU before it can be executed. Nevertheless, the main advantage of the RAM expansion module is rapid retrieval of relatively large amounts of data. However, RAM is a volatile data storage medium, and data stored within the RAM will be lost when power is interrupted or removed. If data is to be retained for future use, it must be backed-up on a (more permanent) secondary storage device. Some REUs will not operate without an additional power supply (due to the power demand of the ICs) and some have internal power to maintain the contents of the DRAM. The REU attaches to the expansion port of the C64 or C128 and is contained in a cartridge-style (or larger) case. As with all cartridges though, REUs must be attached when there is no power to the motherboard.

[edit] Benefits

  • The 8-bit architecture allows access to a maximum of 28 (256) banks of 28 (256) addresses on each of the 28 (256) pages. The theoretical maximum is therefore 16777216 bytes of RAM.
  • In machine code it is possible to access all 256 ($00-$ff) banks of RAM, which equates to 16 Mb[7]..
  • Where DMA (Direct Memory Access) is used, data can be transferred quickly (one byte per cycle plus some overhead for setting up the transfer) between the REU and the computer's default RAM.
  • Memory transfers between the computer's default RAM and the REU cause only the actual data to travel on the data bus. Compare this to the traditional method where the CPU conducts the transfer; which requires 75% (or more) of the bus capacity on instruction fetches and only 25% (or less) on data[8].
  • After the first transfer to the REU, no time is wasted in seeking data from a secondary storage device.
  • GEOS had built-in support for the REU as a RAM disk, as did the C128's version of CP/M.
  • Some disk copy programs used the REU to facilitate high-speed copying with a single floppy disk drive.
  • Due to its high speed, relative to Commodore's floppy disk drives or even commercially available hard drives, the REU became popular with BBS (Bulletin Board System) operators[9].

[edit] Drawbacks

  • Very little existing software made use of REUs[10].
  • Software developers were hesitant to support REUs due to the relatively small number of units in use; creating a Catch-22 scenario.
  • Complicated programming techniques were required for implementation.
  • The RAM in REUs was only accessible via a few hardware registers, and not directly by the CPU; which limits the amount of code to be executed.
  • The REU did not automatically provide an on-board RAM disk functionality; although some REUs were packaged with with a loadable RAM disk driver.
  • The compatibility of the REU as a RAM disk with commercial software was not guaranteed; as some programs relied on various quirks of the Commodore 1541 floppy disk drive.
  • Some commercial programs wrote to the memory in use by the RAM disk software[11].
  • In BASIC V7 it is only possible to access the first 16 ($0-$f) banks of RAM, which equates to 1 Mb[12].
  • Some REUs required (when attached to the C64) an additional heavy-duty power supply.

[edit] Known REUs

Table 1 - Known REU Products
Name Company Year of Release Machine Size Expanded Remarks
Turbo Chameleon 64 Individual Computers 2013 C64 16 Mb 4 Mb The cartridge has 32 Mb RAM, 16 MB reserved for REU and 4MB reserved for GeoRAM
1700 REU Commodore Business Machines 1985 C128 128 Kb Works on the C64[13] (albeit unsupported)
1750 REU Commodore Business Machines 1985 C128 512 Kb Works on the C64[14](albeit unsupported)
1764 REU Commodore Business Machines 1985 C64 256 Kb Works on the C128 (albeit with timing issues[15])
RAMDrive Creative Micro Designs 1990 C64/C128 512 Kb 2 Mb The RAM Link and RAM Drive were designed to work in tandum.
RAMLink Creative Micro Designs 1990 C64/C128 1 Mb 16 Mb
geoRAM Berkeley Softworks 1991 C64/C128 512 Kb
Super 1750 Clone Chip Level Designs 1991 C64/C128 512 Kb
BBGRAM Performance Peripherals Incorporated  ? C64/C128 1 Mb 2 Mb A GeoRAM clone.
1750XL Creative Micro Designs 1997 C64/C128 2 Mb
SuperCPU Creative Micro Designs 1996 C64 0 Mb 16 Mb In 16 bit mode the SuperCPU has access to 16 Mb maximum system memory. Required RAMLink / RAMDrive for REU functionality.
1541 Ultimate Gideon's Logic Architectures 2008 C64/C128 0 Mb 16 Mb Includes REU support among its features.

[edit] References

  1. 1700/1750 RAM Expansion Module User's Guide For Your Commodore 128, accessed 28 December 2014
  2. Memory expansions for the Commodore 128, Marko Mäkelä, Pekka Pessi, accessed 28 December 2014
  3. Memory expansions for the Commodore 128, Marko Mäkelä, Pekka Pessi, accessed 28 December 2014
  4. The Winter Consumer Electronics Show: A Turning Point For Atari?, COMPUTE! Issue 71, Page 30, April 1986
  5. Commodore REU, accessed 28 December 2014
  6. The Super 1750 Clone User's Guide
  7. RAM Expansion Units from Commodore Designed for the Commodore 128, accessed 28 December 2014
  8. Commodore REU, accessed 28 December 2014
  9. Commodore REU, accessed 28 December 2014
  10. Commodore REU, accessed 28 December 2014
  11. Commodore REU, accessed 28 December 2014
  12. RAM Expansion Units from Commodore Designed for the Commodore 128, accessed 28 December 2014
  13. REU, accessed 28 December 2014
  14. REU, accessed 28 December 2014
  15. The Super 1750 Clone User's Guide

[edit] External Links

WP-W11.png Wikipedia: RAM_Expansion_Unit Language German
Personal tools
In other languages