Skip to content

Commit e33e12c

Browse files
v1.0.0
0 parents  commit e33e12c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+11728
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Example: Basic Chip32
2+
This example demonstrates basic use of Chip32 to load a small descriptor file, parsing its header, and use it to make decisions about what images to load onto the screen.
3+
The display is split into 4 horizontal regions. One of three possible images can be loaded into each of the 4 regions. Additional error handling is present to prevent loading invalid data.
4+
The Chip32 program is smart enough to handle warm reloads, where it puts the core back into reset before loading new data, and takes it out of reset when complete. The bitstream is only loaded once on the first boot.
5+
6+
* Chip32-assisted asset load
7+
* SDRAM controller
8+
* Video generation
9+
* Reload assets during runtime via the Core Settings menu
10+
11+
12+
13+
## Legal
14+
Analogue’s Development program was created to further video game hardware preservation with FPGA technology. Analogue does not support or endorse the use of infringing content.
15+
16+
Analogue Developers have access to Analogue Pocket I/O’s so Developers can utilize cartridge adapters or interface with other pieces of original or bespoke hardware to support legacy media.

audio.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"audio": {
3+
"magic": "APF_VER_1"
4+
}
5+
}

core.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"core": {
3+
"magic": "APF_VER_1",
4+
"metadata": {
5+
"platform_ids": [
6+
"ex_platform"
7+
],
8+
"shortname": "Basic Chip32",
9+
"description": "APF core example. Displays image strips loaded via Chip32.",
10+
"author": "Example Author",
11+
"url": "https://github.com/open-fpga",
12+
"version": "1.0.0",
13+
"date_release": "2022-09-29"
14+
},
15+
"framework": {
16+
"target_product": "Analogue Pocket",
17+
"version_required": "1.1",
18+
"sleep_supported": false,
19+
"chip32_vm": "example_chip32.bin",
20+
"dock": {
21+
"supported": true,
22+
"analog_output": false
23+
},
24+
"hardware": {
25+
"link_port": false,
26+
"cartridge_adapter": -1
27+
}
28+
},
29+
"cores": [
30+
{
31+
"name": "default",
32+
"id": 0,
33+
"filename": "bitstream.rbf_r"
34+
}
35+
]
36+
}
37+
}

data.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"data": {
3+
"magic": "APF_VER_1",
4+
"data_slots": [
5+
{
6+
"name": "Configuration",
7+
"id": 1,
8+
"required": true,
9+
"parameters": 3,
10+
"extensions": [
11+
"dat"
12+
]
13+
},
14+
{
15+
"name": "Audio",
16+
"id": 99,
17+
"required": true,
18+
"parameters": 2,
19+
"filename": "ex_audio_1.wav",
20+
"extensions": [
21+
"wav"
22+
],
23+
"size_maximum": "0x3C00000",
24+
"address": "0x00400000"
25+
},
26+
{
27+
"name": "Image: Dots",
28+
"id": "0x20",
29+
"required": true,
30+
"parameters": 2,
31+
"filename": "ex_image_1.bin",
32+
"address": "0x00000000"
33+
},
34+
{
35+
"name": "Image: Grid",
36+
"id": "0x21",
37+
"required": true,
38+
"parameters": 2,
39+
"filename": "ex_image_2.bin",
40+
"address": "0x12345678"
41+
},
42+
{
43+
"name": "Image: 12 Colors",
44+
"id": "0x22",
45+
"required": true,
46+
"parameters": 2,
47+
"filename": "ex_image_3.bin"
48+
}
49+
]
50+
}
51+
}

dist/.gitkeep

Whitespace-only changes.

dist/assets/.keep

Whitespace-only changes.

dist/assets/ex_audio_1.wav

1.28 MB
Binary file not shown.

dist/assets/ex_image_1.bin

180 KB
Binary file not shown.

dist/assets/ex_image_2.bin

180 KB
Binary file not shown.

dist/assets/ex_image_3.bin

180 KB
Binary file not shown.

0 commit comments

Comments
 (0)