-
Notifications
You must be signed in to change notification settings - Fork 0
/
One Chunk Man ISA v1.mm
341 lines (308 loc) · 14.5 KB
/
One Chunk Man ISA v1.mm
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<map version="freeplane 1.8.0">
<!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
<node TEXT="One Chunk Man ISA" LOCALIZED_STYLE_REF="AutomaticLayout.level.root" FOLDED="false" ID="ID_464494903" CREATED="1607219573097" MODIFIED="1607238357528"><hook NAME="MapStyle">
<properties edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" fit_to_viewport="false" show_icon_for_attributes="true"/>
<map_styles>
<stylenode LOCALIZED_TEXT="styles.root_node" STYLE="oval" UNIFORM_SHAPE="true" VGAP_QUANTITY="24.0 pt">
<font SIZE="24"/>
<stylenode LOCALIZED_TEXT="styles.predefined" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="default" ICON_SIZE="12.0 pt" COLOR="#000000" STYLE="fork">
<font NAME="SansSerif" SIZE="10" BOLD="false" ITALIC="false"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.details"/>
<stylenode LOCALIZED_TEXT="defaultstyle.attributes">
<font SIZE="9"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.note" COLOR="#000000" BACKGROUND_COLOR="#ffffff" TEXT_ALIGN="LEFT"/>
<stylenode LOCALIZED_TEXT="defaultstyle.floating">
<edge STYLE="hide_edge"/>
<cloud COLOR="#f0f0f0" SHAPE="ROUND_RECT"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.user-defined" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="styles.topic" COLOR="#18898b" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subtopic" COLOR="#cc3300" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subsubtopic" COLOR="#669900">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.important">
<icon BUILTIN="yes"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.AutomaticLayout" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="AutomaticLayout.level.root" COLOR="#000000" STYLE="oval" SHAPE_HORIZONTAL_MARGIN="10.0 pt" SHAPE_VERTICAL_MARGIN="10.0 pt">
<font SIZE="18"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,1" COLOR="#0033ff">
<font SIZE="16"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,2" COLOR="#00b439">
<font SIZE="14"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,3" COLOR="#990000">
<font SIZE="12"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,4" COLOR="#111111">
<font SIZE="10"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,5"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,6"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,7"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,8"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,9"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,10"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,11"/>
</stylenode>
</stylenode>
</map_styles>
</hook>
<hook NAME="AutomaticEdgeColor" COUNTER="7" RULE="ON_BRANCH_CREATION"/>
<richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p style="margin-top: 0">
An Instruction Set Architecture with recommended microcode. Designed by Nathan Fritzler with major feedback from Isaac Fritzler. A similar (earlier) work by Wyatt Brannon may have had some influence in the design of this ISA.
</p>
<p style="margin-top: 0">
This ISA is designed for use in a Minecraft CPU, and is optimized for a small die size.
</p>
<p style="margin-top: 0">
version 1.1
</p>
</body>
</html>
</richcontent>
<node TEXT="Registers" LOCALIZED_STYLE_REF="AutomaticLayout.level,1" POSITION="right" ID="ID_249625636" CREATED="1607219751399" MODIFIED="1607236025891">
<edge COLOR="#0000ff"/>
<richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Min size should be as long as the tape.
</p>
<p>
Defaults to zeros.
</p>
</body>
</html>
</richcontent>
<node TEXT="[A]" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1134177843" CREATED="1607219768574" MODIFIED="1607236091309"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Fastest at Write
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="[B]" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1834691667" CREATED="1607219776477" MODIFIED="1607236098280"/>
<node TEXT="[@]" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1916156865" CREATED="1607219779816" MODIFIED="1607236105833"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Current state determines what Instruction the computer is currently doing. Can only be set to the current value in the tape.
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="[#]" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_314379031" CREATED="1607219795709" MODIFIED="1607237042263"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Can only be read by the tape system that manages current location, but can be written by any Instruction (or signal?)
</p>
</body>
</html>
</richcontent>
</node>
</node>
<node TEXT="Tape" LOCALIZED_STYLE_REF="AutomaticLayout.level,1" POSITION="right" ID="ID_616789481" CREATED="1607219868820" MODIFIED="1607236033400">
<edge COLOR="#ff00ff"/>
<richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Max length is max number that can be stored in a register
</p>
<p>
Min length is 50 or so
</p>
<p>
Rotates one way only.
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="IO ports" LOCALIZED_STYLE_REF="AutomaticLayout.level,1" POSITION="right" ID="ID_1901169444" CREATED="1607219827930" MODIFIED="1607236045275" HGAP_QUANTITY="16.999999910593033 pt" VSHIFT_QUANTITY="-20.99999937415125 pt">
<edge COLOR="#00007c"/>
<node TEXT="<OUT>" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1420013192" CREATED="1607219842867" MODIFIED="1607236135394"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Communication to things outside of computer
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="<IN>" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_851196832" CREATED="1607219856073" MODIFIED="1607236159914"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Communication from things outside of computer
</p>
</body>
</html>
</richcontent>
</node>
</node>
<node TEXT="Signals" LOCALIZED_STYLE_REF="AutomaticLayout.level,1" POSITION="right" ID="ID_1774914395" CREATED="1607219662865" MODIFIED="1607238267185" HGAP_QUANTITY="22.999999731779106 pt" VSHIFT_QUANTITY="-8.249999754130847 pt">
<edge COLOR="#ff0000"/>
<richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Basically Microcode.
</p>
<p>
Before sending a signal, wait for things to be done. (we might not need to wait if the player directly sent this signal?)
</p>
</body>
</html>
</richcontent>
<node TEXT="{POWER}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_685222002" CREATED="1607219710386" MODIFIED="1607236165916"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Starts as off.
</p>
<p>
User can turn it on or off. (with a lever?)
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="{PREPAREHOP}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_953127579" CREATED="1607235126043" MODIFIED="1607236192594">
<node TEXT="Set the [#] register to equal the [B] register" LOCALIZED_STYLE_REF="default" ID="ID_687465189" CREATED="1607235150839" MODIFIED="1607237915332"/>
</node>
<node TEXT="{ROT}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_771254621" CREATED="1607228594367" MODIFIED="1607236171745">
<node TEXT="Rotate tape untill index equals [#] register" LOCALIZED_STYLE_REF="default" ID="ID_994412781" CREATED="1607228605958" MODIFIED="1607237915332"/>
</node>
<node TEXT="{GO}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1870565492" CREATED="1607219742934" MODIFIED="1607236192600"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Monostable
</p>
</body>
</html>
</richcontent>
<node TEXT="Send {ROT} signal" LOCALIZED_STYLE_REF="default" ID="ID_868613316" CREATED="1607223969231" MODIFIED="1607237915332"/>
<node TEXT="Wait until {POWER} signal is on" LOCALIZED_STYLE_REF="default" ID="ID_1725614072" CREATED="1607224035873" MODIFIED="1607237915332"/>
<node TEXT="Update [@] register to value on the tape" LOCALIZED_STYLE_REF="default" ID="ID_87150273" CREATED="1607224072096" MODIFIED="1607237915331"/>
</node>
<node TEXT="{STEP}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_943501620" CREATED="1607219732866" MODIFIED="1607236192602"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Monostable
</p>
</body>
</html>
</richcontent>
<node TEXT="Increase [#] register by one" LOCALIZED_STYLE_REF="default" ID="ID_1524550912" CREATED="1607223724324" MODIFIED="1607237915331"/>
<node TEXT="Send {GO} signal" LOCALIZED_STYLE_REF="default" ID="ID_579140649" CREATED="1607223735834" MODIFIED="1607237915331"/>
</node>
<node TEXT="{SETASTEP}" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_339954261" CREATED="1607228181882" MODIFIED="1607236192604">
<node TEXT="Send {ROT} signal" LOCALIZED_STYLE_REF="default" ID="ID_971172700" CREATED="1607228672760" MODIFIED="1607237915330"/>
<node TEXT="Set [A] register to the number thats in the tape" LOCALIZED_STYLE_REF="default" ID="ID_94797605" CREATED="1607228208571" MODIFIED="1607237915330"/>
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="default" ID="ID_367393062" CREATED="1607228226423" MODIFIED="1607237915329"/>
</node>
</node>
<node TEXT="Instructions" LOCALIZED_STYLE_REF="AutomaticLayout.level,1" POSITION="right" ID="ID_685631083" CREATED="1607224217949" MODIFIED="1607236066263">
<edge COLOR="#7c0000"/>
<node TEXT="Wipe (WIP, 0)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_665792014" CREATED="1607224272214" MODIFIED="1607238057182">
<node TEXT="Set [A] register to zero" LOCALIZED_STYLE_REF="default" ID="ID_1605474316" CREATED="1607224975158" MODIFIED="1607237889474"/>
<node TEXT="Send {Step} signal" LOCALIZED_STYLE_REF="default" ID="ID_1886804393" CREATED="1607224998861" MODIFIED="1607237889478"/>
</node>
<node TEXT="If Goto (IFG, 1)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_858237275" CREATED="1607224338236" MODIFIED="1607236192611">
<node TEXT="If [A] register is zero" LOCALIZED_STYLE_REF="AutomaticLayout.level,3" ID="ID_1586555808" CREATED="1607225208609" MODIFIED="1607236331634">
<node TEXT="Send {PREPAREHOP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_863348963" CREATED="1607225232555" MODIFIED="1607237899150"/>
<node TEXT="Send {GO} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_196256595" CREATED="1607225290716" MODIFIED="1607237899155"/>
</node>
<node TEXT="else" LOCALIZED_STYLE_REF="AutomaticLayout.level,3" ID="ID_587045414" CREATED="1607225222996" MODIFIED="1607236331641">
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_676337795" CREATED="1607225353544" MODIFIED="1607237899156"/>
</node>
</node>
<node TEXT="Subtract/Add (MATH, 2)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_571965779" CREATED="1607224357409" MODIFIED="1607236192614">
<node TEXT="Increase [A] register by one and decrease [B] register by one" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1411012962" CREATED="1607225466513" MODIFIED="1607237899157"/>
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_698389274" CREATED="1607225658538" MODIFIED="1607237899164"/>
</node>
<node TEXT="Swap (SW, 3)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1398278412" CREATED="1607224440797" MODIFIED="1607236192619"><richcontent TYPE="DETAILS">
<html>
<head>
</head>
<body>
<p>
Most used
</p>
</body>
</html>
</richcontent>
<node TEXT="Swaps values stored in [A] register and [B] register" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1474222748" CREATED="1607225734926" MODIFIED="1607237899165"/>
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_205241004" CREATED="1607225902618" MODIFIED="1607237899166"/>
</node>
<node TEXT="Get (GET, 4)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_551750208" CREATED="1607224451403" MODIFIED="1607236192623">
<node TEXT="Send {PREPAREHOP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1440453114" CREATED="1607226034522" MODIFIED="1607237899167"/>
<node TEXT="Send {SETASTEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_638144837" CREATED="1607227073499" MODIFIED="1607237899168"/>
</node>
<node TEXT="Get Next (NEX, 5)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_452603626" CREATED="1607224468245" MODIFIED="1607236192625">
<node TEXT="Increase [#] register by one" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1498698550" CREATED="1607227582372" MODIFIED="1607237899169"/>
<node TEXT="Send {SETASTEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1652852579" CREATED="1607227694054" MODIFIED="1607237899170"/>
</node>
<node TEXT="Input/Output (IO, 6)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_398636506" CREATED="1607224576012" MODIFIED="1607236192628">
<node TEXT="Change the value of <OUT> to [A]" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1159075171" CREATED="1607227776838" MODIFIED="1607237899171"/>
<node TEXT="Change the value of [B] register to <IN>" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_962490077" CREATED="1607227803978" MODIFIED="1607237899172"/>
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1361778221" CREATED="1607227918927" MODIFIED="1607237899173"/>
</node>
<node TEXT="Set (SET, 7)" LOCALIZED_STYLE_REF="AutomaticLayout.level,2" ID="ID_1775466053" CREATED="1607224800546" MODIFIED="1607236192631">
<node TEXT="Send {PREPAREHOP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1467726566" CREATED="1607235008642" MODIFIED="1607238133154"/>
<node TEXT="Send {ROT} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1640396465" CREATED="1607227965873" MODIFIED="1607237899177"/>
<node TEXT="Set the number that's in the tape to the value in the [A] register" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_1529112546" CREATED="1607227990672" MODIFIED="1607237899179"/>
<node TEXT="Send {STEP} signal" LOCALIZED_STYLE_REF="defaultstyle.details" ID="ID_312144983" CREATED="1607228017888" MODIFIED="1607237899182"/>
</node>
</node>
</node>
</map>