summaryrefslogtreecommitdiff
path: root/projects/05/CPU.cmp
blob: 8025e6171e57673324d992b18de816f555cfb373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|time| inM  |  instruction   |reset| outM  |writeM |addre| pc  |DRegiste|
|0+  |     0|0011000000111001|  0  |*******|   0   |    0|    0|      0 |
|1   |     0|0011000000111001|  0  |*******|   0   |12345|    1|      0 |
|1+  |     0|1110110000010000|  0  |*******|   0   |12345|    1|  12345 |
|2   |     0|1110110000010000|  0  |*******|   0   |12345|    2|  12345 |
|2+  |     0|0101101110100000|  0  |*******|   0   |12345|    2|  12345 |
|3   |     0|0101101110100000|  0  |*******|   0   |23456|    3|  12345 |
|3+  |     0|1110000111110000|  0  |*******|   0   |23456|    3|  11111 |
|4   |     0|1110000111110000|  0  |*******|   0   |11111|    4|  11111 |
|4+  |     0|0000001111101011|  0  |*******|   0   |11111|    4|  11111 |
|5   |     0|0000001111101011|  0  |*******|   0   | 1003|    5|  11111 |
|5+  |     0|1110001100001000|  0  |  11111|   1   | 1003|    5|  11111 |
|6   |     0|1110001100001000|  0  |  11111|   1   | 1003|    6|  11111 |
|6+  |     0|0000001111101100|  0  |*******|   0   | 1003|    6|  11111 |
|7   |     0|0000001111101100|  0  |*******|   0   | 1004|    7|  11111 |
|7+  |     0|1110001110011000|  0  |  11110|   1   | 1004|    7|  11110 |
|8   |     0|1110001110011000|  0  |  11109|   1   | 1004|    8|  11110 |
|8+  |     0|0000001111101000|  0  |*******|   0   | 1004|    8|  11110 |
|9   |     0|0000001111101000|  0  |*******|   0   | 1000|    9|  11110 |
|9+  | 11111|1111010011110000|  0  |*******|   0   | 1000|    9|     -1 |
|10  | 11111|1111010011110000|  0  |*******|   0   |32767|   10|     -1 |
|10+ | 11111|0000000000001110|  0  |*******|   0   |32767|   10|     -1 |
|11  | 11111|0000000000001110|  0  |*******|   0   |   14|   11|     -1 |
|11+ | 11111|1110001100000100|  0  |*******|   0   |   14|   11|     -1 |
|12  | 11111|1110001100000100|  0  |*******|   0   |   14|   14|     -1 |
|12+ | 11111|0000001111100111|  0  |*******|   0   |   14|   14|     -1 |
|13  | 11111|0000001111100111|  0  |*******|   0   |  999|   15|     -1 |
|13+ | 11111|1111110111100000|  0  |*******|   0   |  999|   15|     -1 |
|14  | 11111|1111110111100000|  0  |*******|   0   |11112|   16|     -1 |
|14+ | 11111|1110001100101000|  0  |     -1|   1   |11112|   16|     -1 |
|15  | 11111|1110001100101000|  0  |     -1|   1   |32767|   17|     -1 |
|15+ | 11111|0000000000010101|  0  |*******|   0   |32767|   17|     -1 |
|16  | 11111|0000000000010101|  0  |*******|   0   |   21|   18|     -1 |
|16+ | 11111|1110011111000010|  0  |*******|   0   |   21|   18|     -1 |
|17  | 11111|1110011111000010|  0  |*******|   0   |   21|   21|     -1 |
|17+ | 11111|0000000000000010|  0  |*******|   0   |   21|   21|     -1 |
|18  | 11111|0000000000000010|  0  |*******|   0   |    2|   22|     -1 |
|18+ | 11111|1110000010111000|  0  |      1|   1   |    2|   22|      1 |
|19  | 11111|1110000010111000|  0  |      2|   1   |    1|   23|      1 |
|19+ | 11111|1111110111001000|  0  |  11112|   1   |    1|   23|      1 |
|20  | 11111|1111110111001000|  0  |  11112|   1   |    1|   24|      1 |
|20+ | 11111|1111110010101000|  0  |  11110|   1   |    1|   24|      1 |
|21  | 11111|1111110010101000|  0  |  11110|   1   |11110|   25|      1 |
|21+ | 11111|0000001111101000|  0  |*******|   0   |11110|   25|      1 |
|22  | 11111|0000001111101000|  0  |*******|   0   | 1000|   26|      1 |
|22+ | 11111|1110111010010000|  0  |*******|   0   | 1000|   26|     -1 |
|23  | 11111|1110111010010000|  0  |*******|   0   | 1000|   27|     -1 |
|23+ | 11111|1110001100000001|  0  |*******|   0   | 1000|   27|     -1 |
|24  | 11111|1110001100000001|  0  |*******|   0   | 1000|   28|     -1 |
|24+ | 11111|1110001100000010|  0  |*******|   0   | 1000|   28|     -1 |
|25  | 11111|1110001100000010|  0  |*******|   0   | 1000|   29|     -1 |
|25+ | 11111|1110001100000011|  0  |*******|   0   | 1000|   29|     -1 |
|26  | 11111|1110001100000011|  0  |*******|   0   | 1000|   30|     -1 |
|26+ | 11111|1110001100000100|  0  |*******|   0   | 1000|   30|     -1 |
|27  | 11111|1110001100000100|  0  |*******|   0   | 1000| 1000|     -1 |
|27+ | 11111|1110001100000101|  0  |*******|   0   | 1000| 1000|     -1 |
|28  | 11111|1110001100000101|  0  |*******|   0   | 1000| 1000|     -1 |
|28+ | 11111|1110001100000110|  0  |*******|   0   | 1000| 1000|     -1 |
|29  | 11111|1110001100000110|  0  |*******|   0   | 1000| 1000|     -1 |
|29+ | 11111|1110001100000111|  0  |*******|   0   | 1000| 1000|     -1 |
|30  | 11111|1110001100000111|  0  |*******|   0   | 1000| 1000|     -1 |
|30+ | 11111|1110101010010000|  0  |*******|   0   | 1000| 1000|      0 |
|31  | 11111|1110101010010000|  0  |*******|   0   | 1000| 1001|      0 |
|31+ | 11111|1110001100000001|  0  |*******|   0   | 1000| 1001|      0 |
|32  | 11111|1110001100000001|  0  |*******|   0   | 1000| 1002|      0 |
|32+ | 11111|1110001100000010|  0  |*******|   0   | 1000| 1002|      0 |
|33  | 11111|1110001100000010|  0  |*******|   0   | 1000| 1000|      0 |
|33+ | 11111|1110001100000011|  0  |*******|   0   | 1000| 1000|      0 |
|34  | 11111|1110001100000011|  0  |*******|   0   | 1000| 1000|      0 |
|34+ | 11111|1110001100000100|  0  |*******|   0   | 1000| 1000|      0 |
|35  | 11111|1110001100000100|  0  |*******|   0   | 1000| 1001|      0 |
|35+ | 11111|1110001100000101|  0  |*******|   0   | 1000| 1001|      0 |
|36  | 11111|1110001100000101|  0  |*******|   0   | 1000| 1002|      0 |
|36+ | 11111|1110001100000110|  0  |*******|   0   | 1000| 1002|      0 |
|37  | 11111|1110001100000110|  0  |*******|   0   | 1000| 1000|      0 |
|37+ | 11111|1110001100000111|  0  |*******|   0   | 1000| 1000|      0 |
|38  | 11111|1110001100000111|  0  |*******|   0   | 1000| 1000|      0 |
|38+ | 11111|1110111111010000|  0  |*******|   0   | 1000| 1000|      1 |
|39  | 11111|1110111111010000|  0  |*******|   0   | 1000| 1001|      1 |
|39+ | 11111|1110001100000001|  0  |*******|   0   | 1000| 1001|      1 |
|40  | 11111|1110001100000001|  0  |*******|   0   | 1000| 1000|      1 |
|40+ | 11111|1110001100000010|  0  |*******|   0   | 1000| 1000|      1 |
|41  | 11111|1110001100000010|  0  |*******|   0   | 1000| 1001|      1 |
|41+ | 11111|1110001100000011|  0  |*******|   0   | 1000| 1001|      1 |
|42  | 11111|1110001100000011|  0  |*******|   0   | 1000| 1000|      1 |
|42+ | 11111|1110001100000100|  0  |*******|   0   | 1000| 1000|      1 |
|43  | 11111|1110001100000100|  0  |*******|   0   | 1000| 1001|      1 |
|43+ | 11111|1110001100000101|  0  |*******|   0   | 1000| 1001|      1 |
|44  | 11111|1110001100000101|  0  |*******|   0   | 1000| 1000|      1 |
|44+ | 11111|1110001100000110|  0  |*******|   0   | 1000| 1000|      1 |
|45  | 11111|1110001100000110|  0  |*******|   0   | 1000| 1001|      1 |
|45+ | 11111|1110001100000111|  0  |*******|   0   | 1000| 1001|      1 |
|46  | 11111|1110001100000111|  0  |*******|   0   | 1000| 1000|      1 |
|46+ | 11111|1110001100000111|  1  |*******|   0   | 1000| 1000|      1 |
|47  | 11111|1110001100000111|  1  |*******|   0   | 1000|    0|      1 |
|47+ | 11111|0111111111111111|  0  |*******|   0   | 1000|    0|      1 |
|48  | 11111|0111111111111111|  0  |*******|   0   |32767|    1|      1 |