| 1 | Overview |
| 2 | ======== |
| 3 | |
| 4 | A simulator for the NED architecture. |
| 5 | |
| 6 | Status |
| 7 | ====== |
| 8 | |
| 9 | The CPU simulation is complete except for the CMPSWP instruction. Only a single |
| 10 | CPU is currently supported. |
| 11 | |
| 12 | A UART-like console is included with the following register layout: |
| 13 | |
| 14 | 0x8000000 - Transmit Buffer - Accepts bytes and prints to console |
| 15 | 0x8000004 - Transmit Status - Non-zero when UART is ready to accept a character. |
| 16 | 0x8000008 - Receive Buffer - Contains a byte from the console when available. |
| 17 | 0x800000C - Receive Status - Non-zero when UART contains a character. |
| 18 | |
| 19 | Installation |
| 20 | ============ |
| 21 | |
| 22 | Use `make` and `make clean` to build/remove nedsim files. System installation |
| 23 | requires manually copying the binary in to place. |
| 24 | |
| 25 | What configuration is available can be found as `#define`s at the top of the |
| 26 | nedsim source code. This includes things like size of system RAM, number of |
| 27 | hardware threads, etc. |
| 28 | |
| 29 | Operation |
| 30 | ========= |
| 31 | |
| 32 | Use `nedsim -h` to see current command-line options. |
| 33 | |
| 34 | The simulator will terminate if a HALT instruction is reached and can also be |
| 35 | terminated during operation with Ctrl-C. |
| 36 | |
| 37 | The `nedfp` program provides a passive front panel compatible with `nedsim`. |