MPROMEditor now calls its columns "Opcode" and "muPC"
[Mograsim.git] / docs / model.md
1 The simulation model consists of components connected by wires.
2
3 Some components consist of other components and wires. The components contained in such a component are called the subcomponents of this component.
4
5 Some wires carry one bit, and some carry multiple bits.
6
7 Each bit carried by a wire is one of 1, 0, U, Z, or X. These values are IEEE 1164-compliant. (We don't use H, L, or W.)  
8 See https://en.wikipedia.org/wiki/IEEE_1164 for an explanation of these values.  
9 Note: We also use X to denote illegal states. For example, when two components try to put different values on the D bus, the conflicting bits on the D bus will become X.
10
11 The simulation model can be viewed in the Simulation view:  
12 Each rectangle represents a component. Zooming in a component reveals its inner structure (if it has one).  
13 The colored lines connecting these rectangles represent wires.  
14 (Multiple-bit wires are displayed thicker than the single-bit wires, and always are black.  
15 For single-bit wires, the color represents their current value. These colors can be configured in the Eclipse preferences. The default values are:
16
17 | Bit | Color  |
18 |:---:| ------ |
19 | 1   | green  |
20 | 0   | grey   |
21 | U   | cyan   |
22 | Z   | yellow |
23 | X   | red    |