1 |
209 |
dgisselq |
This directory contains three sub-directories:
|
2 |
|
|
|
3 |
|
|
- [core](core), where all of the actual components to the CPU proper are contained
|
4 |
|
|
- [peripherals](peripherals), where several common CPU peripherals are kept. These aren't really external peripherals per se, although they may be implemented as such. Rather, these peripherals are components that are important to the CPU's functionality. As such, they are often distributed with the CPU proper, and used internally by supervisor programs.
|
5 |
|
|
- [ex](ex), where some general wishbone cores are kept, such as arbiters, delays, and even where I keep a copy of the formal wishbone properties.
|
6 |
|
|
|
7 |
|
|
Within this ZipCPU RTL directory are just the two primary wrappers for the
|
8 |
|
|
ZipCPU: [ZipBones](zipbones.v) and [ZipSystem](zipsystem.v). These wrappers
|
9 |
|
|
connect an external wishbone slave interface to the debugging port of the
|
10 |
|
|
CPU, so that the CPU can be reset, started, stopped, and in general debugged.
|
11 |
|
|
|
12 |
|
|
The [ZipBones](./zipbones.v) would be the appropriate wrapper if you want the
|
13 |
|
|
CPU to fit in the tightest space possible (Ex: Digilent's [CMod
|
14 |
|
|
S6](https://github.com/ZipCPU/s6soc)).
|
15 |
|
|
|
16 |
|
|
Use the [ZipSystem](./zipsystem.v) if you want to give the CPU some
|
17 |
|
|
basic peripherals, such as:
|
18 |
|
|
|
19 |
|
|
- 2x [Interrupt controllers](./peripherals/icontrol.v)
|
20 |
|
|
- [Timers](peripherals/ziptimer), and an [experimental timer called zipjiffies](peripherals/zipjiffies.v) that's been with the CPU for some time
|
21 |
|
|
- [Performance counters](peripherals/zipcounter.v), to measure your performance
|
22 |
|
|
- A [Direct Memory Access Controller](./peripherals/wbdmac.v)
|
23 |
|
|
- Or even the [Memory Management Unit](./peripherals/zipmmu.v)
|
24 |
|
|
|
25 |
|
|
If you are just looking for the CPU's code itself, check out
|
26 |
|
|
[zipcpu.v](core/zipcpu.v)
|
27 |
|
|
within the
|
28 |
|
|
[core](core) subdirectory.
|
29 |
|
|
That's of the main core of the ZipCPU itself.
|
30 |
|
|
|