Skip to content

Commit dc9cddf

Browse files
v1.0.0
0 parents  commit dc9cddf

Some content is hidden

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

61 files changed

+7856
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Example: Interact
2+
This example demonstrates the Interact menu. The position of the square can be changed with the D-pad, or by adjusting the sliders inside the menu.
3+
* Interact options changing core registers
4+
* Video generation
5+
* User input displayed in Controls menu
6+
7+
8+
9+
## Legal
10+
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.
11+
12+
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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"core": {
3+
"magic": "APF_VER_1",
4+
"metadata": {
5+
"platform_ids": ["ex_platform"],
6+
"shortname": "Interact",
7+
"description": "APF core example. Core Settings menu",
8+
"author": "Example Author",
9+
"url": "https://github.com/open-fpga/",
10+
"version": "1.0.0",
11+
"date_release": "2022-08-23"
12+
},
13+
"framework": {
14+
"target_product": "Analogue Pocket",
15+
"version_required": "1.1",
16+
"sleep_supported": false,
17+
"dock": {
18+
"supported": true,
19+
"analog_output": false
20+
},
21+
"hardware": {
22+
"link_port": false,
23+
"cartridge_adapter": -1
24+
}
25+
},
26+
"cores": [
27+
{
28+
"name": "default",
29+
"id": 0,
30+
"filename": "bitstream.rbf_r"
31+
}
32+
]
33+
}
34+
}

data.json

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

dist/.gitkeep

Whitespace-only changes.

dist/assets/.keep

Whitespace-only changes.

dist/icon.bin

2.53 KB
Binary file not shown.
168 KB
Binary file not shown.

dist/platforms/ex_platform.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"platform": {
3+
"category": "Example Cores",
4+
"name": "Example Platform",
5+
"year": 2022,
6+
"manufacturer": "Example Manufacturer"
7+
}
8+
}

info.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Example Core - Interact
2+
3+
This example demonstrates the Interact menu. The position of the square can be changed with the D-pad, or by adjusting the sliders inside the menu.
4+
5+
* Interact options changing core registers
6+
* Video generation
7+
* User input displayed in Controls menu

input.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"input": {
3+
"magic": "APF_VER_1",
4+
"controllers": [
5+
{
6+
"type": "default",
7+
"mappings": [
8+
{
9+
"id": 0,
10+
"name": "Purple Square",
11+
"key": "pad_btn_a"
12+
},
13+
{
14+
"id": 1,
15+
"name": "Green Square",
16+
"key": "pad_btn_b"
17+
}
18+
]
19+
}
20+
]
21+
}
22+
}

interact.json

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"interact": {
3+
"magic": "APF_VER_1",
4+
"variables": [
5+
{
6+
"name": "RGB",
7+
"id": 2,
8+
"type": "radio",
9+
"group": 100,
10+
"enabled": true,
11+
"persist": true,
12+
"address": "0x00F0000C",
13+
"defaultval": 7,
14+
"value": 7
15+
},
16+
{
17+
"name": "Red",
18+
"id": 3,
19+
"type": "radio",
20+
"group": 100,
21+
"enabled": true,
22+
"persist": true,
23+
"address": "0x00F0000C",
24+
"value": "0x4"
25+
},
26+
{
27+
"name": "Green",
28+
"id": 4,
29+
"type": "radio",
30+
"group": 100,
31+
"enabled": true,
32+
"persist": true,
33+
"address": "0x00F0000C",
34+
"value": "0x2"
35+
},
36+
{
37+
"name": "Blue",
38+
"id": 5,
39+
"type": "radio",
40+
"group": 100,
41+
"enabled": true,
42+
"persist": true,
43+
"address": "0x00F0000C",
44+
"value": "0x1",
45+
"mask": "0xFFFF0000"
46+
},
47+
{
48+
"name": "Reset Square",
49+
"id": 6,
50+
"type": "action",
51+
"enabled": true,
52+
"address": "0x00F00010",
53+
"value": 64
54+
},
55+
{
56+
"name": "Square Pos X",
57+
"id": 8,
58+
"type": "slider_u32",
59+
"enabled": true,
60+
"persist": true,
61+
"address": "0x00200000",
62+
"defaultval": 100,
63+
"graphical": {
64+
"signed": false,
65+
"min": 0,
66+
"max": 320,
67+
"adjust_small": 1,
68+
"adjust_large": "0x10"
69+
}
70+
},
71+
{
72+
"name": "Square Pos Y",
73+
"id": 9,
74+
"type": "slider_u32",
75+
"enabled": true,
76+
"persist": true,
77+
"address": "0x00200004",
78+
"defaultval": 100,
79+
"graphical": {
80+
"signed": false,
81+
"min": 0,
82+
"max": 240,
83+
"adjust_small": 1,
84+
"adjust_large": "0x10"
85+
}
86+
},
87+
{
88+
"name": "Animation",
89+
"id": 1,
90+
"type": "check",
91+
"enabled": true,
92+
"address": "0x00100000",
93+
"defaultval": 1,
94+
"value": 1,
95+
"mask": "0xFFFF0000"
96+
},
97+
{
98+
"name": "Increment Frame",
99+
"id": 11,
100+
"type": "action",
101+
"enabled": true,
102+
"address": "0x00F00018",
103+
"value": 0
104+
},
105+
{
106+
"name": "Frame",
107+
"id": 12,
108+
"type": "number_u32",
109+
"enabled": false,
110+
"address": "0x20000000"
111+
},
112+
{
113+
"name": "Reset Frame",
114+
"id": 10,
115+
"type": "action",
116+
"enabled": true,
117+
"address": "0x00F00014",
118+
"value": 0
119+
},
120+
{
121+
"name": "Mask Write Debug",
122+
"id": 13,
123+
"type": "action",
124+
"enabled": true,
125+
"address": "0x00100004",
126+
"value": "0x003400FF",
127+
"mask": "0xFF00FFFF"
128+
},
129+
{
130+
"name": "Debug",
131+
"id": 14,
132+
"type": "number_u32",
133+
"enabled": false,
134+
"address": "0x00100004"
135+
},
136+
{
137+
"name": "Signed Value",
138+
"id": 15,
139+
"type": "slider_u32",
140+
"enabled": true,
141+
"address": "0x00300000",
142+
"persist": true,
143+
"defaultval": 5000,
144+
"graphical": {
145+
"signed": true,
146+
"min": -100000,
147+
"max": 100000,
148+
"adjust_small": 1,
149+
"adjust_large": 1000
150+
}
151+
}
152+
]
153+
}
154+
}

output/.gitkeep

Whitespace-only changes.

output/bitstream.rbf_r

779 KB
Binary file not shown.

src/fpga/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*/db/
2+
*/incremental_db/
3+
*/simulation/
4+
*/greybox_tmp/
5+
incremental_db/
6+
db/
7+
PLLJ_PLLSPE_INFO.txt
8+
c5_pin_model_dump.txt
9+
cr_ie_info.json
10+
*.pin
11+
*.pof
12+
*.ptf.*
13+
*.qar
14+
*.qarlog
15+
*.qws
16+
*.rpt
17+
*.smsg
18+
*.sof
19+
*.sopc_builder
20+
*.summary
21+
*.txt
22+
*.bak
23+
*.cmp
24+
*.done
25+
*.xml
26+
*.sld
27+
*.cdf
28+

src/fpga/ap_core.qpf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# -------------------------------------------------------------------------- #
2+
#
3+
# Copyright (C) 2019 Intel Corporation. All rights reserved.
4+
# Your use of Intel Corporation's design tools, logic functions
5+
# and other software and tools, and any partner logic
6+
# functions, and any output files from any of the foregoing
7+
# (including device programming or simulation files), and any
8+
# associated documentation or information are expressly subject
9+
# to the terms and conditions of the Intel Program License
10+
# Subscription Agreement, the Intel Quartus Prime License Agreement,
11+
# the Intel FPGA IP License Agreement, or other applicable license
12+
# agreement, including, without limitation, that your use is for
13+
# the sole purpose of programming logic devices manufactured by
14+
# Intel and sold by Intel or its authorized distributors. Please
15+
# refer to the applicable agreement for further details, at
16+
# https://fpgasoftware.intel.com/eula.
17+
#
18+
# -------------------------------------------------------------------------- #
19+
#
20+
# Quartus Prime
21+
# Version 18.1.1 Build 646 04/11/2019 SJ Lite Edition
22+
# Date created = 21:31:36 January 22, 2020
23+
#
24+
# -------------------------------------------------------------------------- #
25+
26+
QUARTUS_VERSION = "18.1"
27+
DATE = "21:31:36 January 22, 2020"
28+
29+
# Revisions
30+
31+
PROJECT_REVISION = "ap_core"

0 commit comments

Comments
 (0)