Z80 Project Memory Expansion
Last updated: 14 Mar 2011 - 00:11
The Mark 2 Z80 project featured a pair of memory slots each capable of taking up to 32K of RAM. This meant that a full 64K of RAM could be used because the ROM image is copied from the PIC's memory at boot time. However that didn't seem like much to me so a banking system and MMU were in order. (Also I found I couldn't get the 32K RAMTRON FM1808 chips in DIP any more!)
The new system is designed around 512K SRAM chips, up to 8 of them, although I've only wired up two sockets for 1MB of RAM for now. If you know your base 2 maths you should realise that I need a 22 bit address bus for the 4MB address space. This initially seems like an odd size but the design is based on the internals of the Amstrad NC100, a portable Z80 machine from the early '90s. The top 8 bits of the 22 are provided by one of four latches. Which of these latches provides the last 8 bits is decided by the Z80 address lines A14 and A15.
This means the physical memory space of the Z80 is made up by four 16K