verilog-apple-one/README.md

46 lines
2.3 KiB
Markdown
Raw Normal View History

![Apple One](media/apple-logo.png)
2018-01-01 14:28:31 +00:00
2018-02-11 22:44:04 +00:00
This is a basic implementation of the original Apple 1 in Verilog. It can run the Apple 1 WozMon and Integer Basic via the serial or VGA 640x480 video with PS/2 keyboard standalone. This makes this a very compact little set up. So far fully tested and supported boards are:
- iCE40HX8K-B-EVN breakout
- Terasic DE0
2018-01-01 13:56:57 +00:00
2018-02-11 22:46:53 +00:00
<p align="center">
<img src="media/apple-one.png" alt="Apple One Running">
</p>
2018-01-12 03:42:42 +00:00
2018-01-12 03:36:55 +00:00
This project borrows heavily from the *awesome* work of Andrew Holme and his ["Pool"](http://www.aholme.co.uk/6502/Main.htm) project where he built a 6502 CPU core in Verilog using the netlist from the Visual 6502 project. Amazing stuff, and so far seems to work perfectly. Also many special thanks to ["sbprojects.com"](https://www.sbprojects.com/projects/apple1/index.php) for the wealth of information I gleaned from there.
2018-01-01 13:56:57 +00:00
2018-01-01 14:05:01 +00:00
## Memory Map
2018-01-01 13:56:57 +00:00
2018-02-11 22:44:04 +00:00
The memory map is currently set up to have:
2018-01-12 03:32:42 +00:00
Start | End | Description
----- | --- | -----------
0x0000 | 0x1FFF | 8KB of block RAM for system
0xE000 | 0xEFFF | 4KB of block RAM for basic ROM
0xFF00 | 0xFFFF | 512B of block RAM for WozMon ROM
2018-01-01 13:56:57 +00:00
2018-02-11 22:44:04 +00:00
## Building
2018-01-12 03:32:42 +00:00
2018-02-11 22:44:04 +00:00
Each supported board has a directory in `boards`. This directory has a structure where each board can have multiple build environments (eg. yosys, icecube2, quartus etc).
2018-01-12 03:32:42 +00:00
2018-02-11 22:44:04 +00:00
To build for your board you just need to open the project or use the `Makefile` that's compatible with your board.
eg.
```
$ cd boards/ice40hx8k-b-evn/yosys/
$ make
```
2018-01-12 03:32:42 +00:00
2018-01-01 14:05:01 +00:00
## Serial Setup
2018-01-01 14:04:35 +00:00
2018-02-11 22:44:04 +00:00
To communicate with the Apple 1 you need to use the second channel serial interface for the iCE40HX8K-B-EVN board. This should appear as a COM port on you PC. This project is configured to use the 12MHz onboard clock to generate the baud rate, and as such I've selected 19200 baud (8/N/1).
2018-01-01 14:04:35 +00:00
A very very basic hardware flow control is implemented too. You should turn on CTS support as this will allow you to cut and paste code into the Woz Mon without the Apple 1 missing any bytes.
2018-01-01 14:05:01 +00:00
## Helping
2018-01-01 14:04:35 +00:00
All PRs and suggestions happily accepted! Please any support us most welcome, and it would be good to have this as feature complete as possible with the real Apple1. I'd like to implement the cassette interface next with the basic electronics to talk to the headphone/mic jack of a mobile phone to upload and download recordings as a means to save programs.
But yes, help happily accepted!