-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubiks.json
109 lines (109 loc) · 2.49 KB
/
rubiks.json
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
{
"projectName": "Rubik's cube",
"author": "Jesse Wei",
"schema": "1.0",
"instructionSet": "2018",
"programCounter": 0,
"memories": [
{
"type": "InstructionMemory",
"initFile": {
"filepath": "imem.mem",
"format": "hex"
}
},
{
"type": "DataMemory",
"startAddr": "0x10010000",
"endAddr": "0x1001FFFC",
"length": "0x00001000",
"initFile": {
"filepath": "dmem.mem",
"format": "hex"
}
},
{
"type": "BitmapMemory",
"initFile": {
"filepath": "bmem.mem",
"format": "hex"
}
},
{
"type": "ScreenMemory",
"startAddr": "0x10020000",
"initFile": {
"filepath": "smem.mem",
"format": "hex"
}
},
{
"type": "Keyboard",
"startAddr": "0x10030000",
"initFile": {
"filepath": "smem.mem",
"format": "hex"
}
},
{
"type": "Accelerometer",
"startAddr": "0x10030004"
},
{
"comment": "LED's value is shown in the Other Memory tab.",
"type": "DataMemory",
"name": "LED",
"startAddr": "0x1003000c",
"length": 1
},
{
"type": "Sound",
"startAddr": "0x10030008"
},
{
"comment": "The rest of my mappings are unique to my project.",
"comment2": "Presumably, if you memory map something in your project, you'd have Verilog support for it to implement some new functionality. That can't be done in the emulator, so additional memory mappings in the JSON don't really do anything besides letting you see the value stored at that mapped address.",
"type": "DataMemory",
"name": "RNG",
"startAddr": "0x10000000",
"length": 1
},
{
"type": "DataMemory",
"name": "curr_time",
"startAddr": "0x10000004",
"length": 1
},
{
"comment": "Two sound registers to play chords.",
"type": "DataMemory",
"name": "sound_2",
"startAddr": "0x10000008",
"length": 1
},
{
"type": "DataMemory",
"name": "timer_reset",
"startAddr": "0x10070000",
"length": 1
},
{
"type": "DataMemory",
"name": "timer_enable",
"startAddr": "0x10070004",
"length": 1
},
{
"type": "DataMemory",
"name": "timer_disp",
"startAddr": "0x10070008",
"length": 1
},
{
"type": "DataMemory",
"name": "timer_old_time",
"startaddr": "0x1007000C",
"length": 1
}
]
}