mak-ide 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mak_ide-0.1.0/.gitignore +119 -0
- mak_ide-0.1.0/LICENSE +201 -0
- mak_ide-0.1.0/PKG-INFO +314 -0
- mak_ide-0.1.0/README.md +299 -0
- mak_ide-0.1.0/bin/mak +62 -0
- mak_ide-0.1.0/docs/commands.svg +218 -0
- mak_ide-0.1.0/docs/screenshots.py +190 -0
- mak_ide-0.1.0/docs/welcome.svg +242 -0
- mak_ide-0.1.0/docs/work.svg +220 -0
- mak_ide-0.1.0/install.ps1 +80 -0
- mak_ide-0.1.0/install.sh +74 -0
- mak_ide-0.1.0/pyproject.toml +51 -0
- mak_ide-0.1.0/src/maku_tui/__init__.py +2 -0
- mak_ide-0.1.0/src/maku_tui/__main__.py +106 -0
- mak_ide-0.1.0/src/maku_tui/app.py +1627 -0
- mak_ide-0.1.0/src/maku_tui/asm.py +207 -0
- mak_ide-0.1.0/src/maku_tui/assistant/__init__.py +6 -0
- mak_ide-0.1.0/src/maku_tui/assistant/credentials.py +128 -0
- mak_ide-0.1.0/src/maku_tui/assistant/guards.py +66 -0
- mak_ide-0.1.0/src/maku_tui/assistant/nim.py +133 -0
- mak_ide-0.1.0/src/maku_tui/assistant/pane.py +193 -0
- mak_ide-0.1.0/src/maku_tui/assistant/retrieval.py +137 -0
- mak_ide-0.1.0/src/maku_tui/board.py +276 -0
- mak_ide-0.1.0/src/maku_tui/build.py +204 -0
- mak_ide-0.1.0/src/maku_tui/canvas.py +178 -0
- mak_ide-0.1.0/src/maku_tui/commands.py +160 -0
- mak_ide-0.1.0/src/maku_tui/config.py +325 -0
- mak_ide-0.1.0/src/maku_tui/doctor.py +144 -0
- mak_ide-0.1.0/src/maku_tui/editor.py +330 -0
- mak_ide-0.1.0/src/maku_tui/files.py +150 -0
- mak_ide-0.1.0/src/maku_tui/focus.py +169 -0
- mak_ide-0.1.0/src/maku_tui/image.py +100 -0
- mak_ide-0.1.0/src/maku_tui/instruments.py +237 -0
- mak_ide-0.1.0/src/maku_tui/isa.py +243 -0
- mak_ide-0.1.0/src/maku_tui/keymap.py +77 -0
- mak_ide-0.1.0/src/maku_tui/layout.py +121 -0
- mak_ide-0.1.0/src/maku_tui/messages.py +62 -0
- mak_ide-0.1.0/src/maku_tui/modal.py +211 -0
- mak_ide-0.1.0/src/maku_tui/palette.py +108 -0
- mak_ide-0.1.0/src/maku_tui/ports.py +197 -0
- mak_ide-0.1.0/src/maku_tui/project.py +282 -0
- mak_ide-0.1.0/src/maku_tui/screens/__init__.py +1 -0
- mak_ide-0.1.0/src/maku_tui/screens/dev.py +1003 -0
- mak_ide-0.1.0/src/maku_tui/screens/overlay.py +127 -0
- mak_ide-0.1.0/src/maku_tui/screens/welcome.py +497 -0
- mak_ide-0.1.0/src/maku_tui/selfboot.py +161 -0
- mak_ide-0.1.0/src/maku_tui/templates.py +164 -0
- mak_ide-0.1.0/src/maku_tui/theme.py +108 -0
- mak_ide-0.1.0/src/maku_tui/wordmark.py +46 -0
- mak_ide-0.1.0/tests/gate_eight_images.py +178 -0
- mak_ide-0.1.0/tests/gate_pty.py +247 -0
- mak_ide-0.1.0/tests/gate_witness.py +60 -0
- mak_ide-0.1.0/tests/run_all.py +37 -0
- mak_ide-0.1.0/tests/test_app.py +1370 -0
- mak_ide-0.1.0/tests/test_asm.py +298 -0
- mak_ide-0.1.0/tests/test_assistant_pane.py +245 -0
- mak_ide-0.1.0/tests/test_board.py +258 -0
- mak_ide-0.1.0/tests/test_build.py +163 -0
- mak_ide-0.1.0/tests/test_commands.py +168 -0
- mak_ide-0.1.0/tests/test_config.py +323 -0
- mak_ide-0.1.0/tests/test_controls.py +197 -0
- mak_ide-0.1.0/tests/test_credentials.py +191 -0
- mak_ide-0.1.0/tests/test_dev.py +724 -0
- mak_ide-0.1.0/tests/test_docs_region.py +165 -0
- mak_ide-0.1.0/tests/test_editor.py +206 -0
- mak_ide-0.1.0/tests/test_files.py +238 -0
- mak_ide-0.1.0/tests/test_focus.py +196 -0
- mak_ide-0.1.0/tests/test_form.py +117 -0
- mak_ide-0.1.0/tests/test_guards.py +75 -0
- mak_ide-0.1.0/tests/test_image.py +128 -0
- mak_ide-0.1.0/tests/test_instruments.py +173 -0
- mak_ide-0.1.0/tests/test_isa.py +206 -0
- mak_ide-0.1.0/tests/test_keymap.py +103 -0
- mak_ide-0.1.0/tests/test_launcher.py +515 -0
- mak_ide-0.1.0/tests/test_layout.py +146 -0
- mak_ide-0.1.0/tests/test_messages.py +140 -0
- mak_ide-0.1.0/tests/test_modal.py +107 -0
- mak_ide-0.1.0/tests/test_mouse.py +226 -0
- mak_ide-0.1.0/tests/test_palette.py +139 -0
- mak_ide-0.1.0/tests/test_ports.py +101 -0
- mak_ide-0.1.0/tests/test_project.py +315 -0
- mak_ide-0.1.0/tests/test_regions.py +100 -0
- mak_ide-0.1.0/tests/test_retrieval.py +114 -0
- mak_ide-0.1.0/tests/test_screenshots.py +112 -0
- mak_ide-0.1.0/tests/test_scroll.py +111 -0
- mak_ide-0.1.0/tests/test_selfboot.py +128 -0
- mak_ide-0.1.0/tests/test_templates.py +120 -0
- mak_ide-0.1.0/tests/test_theme.py +86 -0
- mak_ide-0.1.0/tests/test_undo.py +202 -0
- mak_ide-0.1.0/tests/test_welcome.py +164 -0
- mak_ide-0.1.0/tests/test_welcome_nav.py +184 -0
- mak_ide-0.1.0/tests/test_wordmark.py +92 -0
mak_ide-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# MAKu Microcontroller - ignored files
|
|
3
|
+
#
|
|
4
|
+
# Rule of thumb: everything here is REGENERATED by scripts/ from the sources in
|
|
5
|
+
# rtl/, simulation/, constraints/ and software/. Nothing that is ignored should
|
|
6
|
+
# ever be needed to rebuild the design.
|
|
7
|
+
# - the Vivado project comes from scripts/create_project.tcl
|
|
8
|
+
# - the simulation library comes from scripts/run_all_tests.ps1
|
|
9
|
+
# =============================================================================
|
|
10
|
+
|
|
11
|
+
# --- Vivado project (fully generated by scripts/create_project.tcl) ---
|
|
12
|
+
vivado/
|
|
13
|
+
*.xpr
|
|
14
|
+
*.jou
|
|
15
|
+
*.str
|
|
16
|
+
*.wdb
|
|
17
|
+
*.wcfg
|
|
18
|
+
*.pb
|
|
19
|
+
.Xil/
|
|
20
|
+
.srcs/
|
|
21
|
+
.runs/
|
|
22
|
+
.cache/
|
|
23
|
+
.hw/
|
|
24
|
+
.ip_user_files/
|
|
25
|
+
.sim/
|
|
26
|
+
*.backup.jou
|
|
27
|
+
*.backup.log
|
|
28
|
+
|
|
29
|
+
# --- Vivado / XSim logs and intermediates ---
|
|
30
|
+
vivado.log
|
|
31
|
+
vivado_*.log
|
|
32
|
+
xsim.dir/
|
|
33
|
+
xsim.log
|
|
34
|
+
xsim.jou
|
|
35
|
+
xsim_*.log
|
|
36
|
+
xsim_*.jou
|
|
37
|
+
xvlog.log
|
|
38
|
+
xvlog.pb
|
|
39
|
+
xvlog_*.log
|
|
40
|
+
xelab.log
|
|
41
|
+
xelab.pb
|
|
42
|
+
xelab_*.log
|
|
43
|
+
flash_*.log
|
|
44
|
+
xsc.log
|
|
45
|
+
xsim.covdb/
|
|
46
|
+
webtalk*.jou
|
|
47
|
+
webtalk*.log
|
|
48
|
+
webtalk*.backup.jou
|
|
49
|
+
webtalk*.backup.log
|
|
50
|
+
|
|
51
|
+
# --- Synthesis / implementation outputs ---
|
|
52
|
+
*.dcp
|
|
53
|
+
*.bit
|
|
54
|
+
*.bin
|
|
55
|
+
*.ltx
|
|
56
|
+
*.rpt
|
|
57
|
+
*.edn
|
|
58
|
+
*.mmi
|
|
59
|
+
usage_statistics_webtalk.*
|
|
60
|
+
tight_setup_hold_pins.txt
|
|
61
|
+
|
|
62
|
+
# --- Vivado IP / block design generated output ---
|
|
63
|
+
*.gen/
|
|
64
|
+
*.hbs
|
|
65
|
+
hd_visual/
|
|
66
|
+
incrCheckPhaseSaveFP.dcp
|
|
67
|
+
|
|
68
|
+
# --- Editor / OS noise ---
|
|
69
|
+
.DS_Store
|
|
70
|
+
Thumbs.db
|
|
71
|
+
desktop.ini
|
|
72
|
+
*.swp
|
|
73
|
+
*.swo
|
|
74
|
+
*~
|
|
75
|
+
.vscode/
|
|
76
|
+
.idea/
|
|
77
|
+
|
|
78
|
+
# --- Scratch ---
|
|
79
|
+
scratch/
|
|
80
|
+
tmp/
|
|
81
|
+
*.tmp
|
|
82
|
+
|
|
83
|
+
# regression-runner lock
|
|
84
|
+
.maku_test.lock
|
|
85
|
+
|
|
86
|
+
# --- Python bytecode from software/ tooling ---
|
|
87
|
+
__pycache__/
|
|
88
|
+
*.pyc
|
|
89
|
+
impl_*.log
|
|
90
|
+
cp_*.log
|
|
91
|
+
|
|
92
|
+
# per-test durations, written by run_all_tests.ps1 for longest-first scheduling
|
|
93
|
+
.maku_test_times.json
|
|
94
|
+
|
|
95
|
+
impl_*.log
|
|
96
|
+
impl_*_console.log
|
|
97
|
+
prog_*.log
|
|
98
|
+
prog_*.jou
|
|
99
|
+
impl_*.jou
|
|
100
|
+
suite_*.log
|
|
101
|
+
mut_*.log
|
|
102
|
+
soak_*.log
|
|
103
|
+
partition_*.log
|
|
104
|
+
g?.log
|
|
105
|
+
gate*.log
|
|
106
|
+
create_proj*.log
|
|
107
|
+
*.jou
|
|
108
|
+
sweep_*.log
|
|
109
|
+
software/_sweep_*
|
|
110
|
+
|
|
111
|
+
# mutation campaign leftovers - a run must not dirty the tree
|
|
112
|
+
mutation_results_*.txt
|
|
113
|
+
*.campaign_backup
|
|
114
|
+
|
|
115
|
+
# The IDE's virtualenv. It is a build artefact with absolute paths baked into
|
|
116
|
+
# it - and `~/.config/maku/credentials.toml` lives OUTSIDE the tree for the
|
|
117
|
+
# same reason maku.toml may not hold a key (spec 13.5).
|
|
118
|
+
tools/maku-tui/.venv/
|
|
119
|
+
tools/maku-tui/**/__pycache__/
|
mak_ide-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Manikanta Gonugondla
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
mak_ide-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mak-ide
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An instrument workbench for the MAK8u dual-core microcontroller
|
|
5
|
+
Project-URL: Homepage, https://github.com/Manikanta25055/MAK8u
|
|
6
|
+
Project-URL: Source, https://github.com/Manikanta25055/MAK8u/tree/main/tools/maku-tui
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.11
|
|
10
|
+
Requires-Dist: pyserial>=3.5
|
|
11
|
+
Requires-Dist: textual<1.0,>=0.79
|
|
12
|
+
Provides-Extra: assistant
|
|
13
|
+
Requires-Dist: openai>=1.40; extra == 'assistant'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# MAK IDE
|
|
17
|
+
|
|
18
|
+
An instrument workbench for the **MAK8u**, a dual-core deterministic
|
|
19
|
+
microcontroller on a Nexys A7 (Artix-7). It runs in a terminal.
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
mak
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Read this first: there is no debugger, and there cannot be one
|
|
28
|
+
|
|
29
|
+
The obvious ask for a microcontroller IDE is Keil, and Keil's value is
|
|
30
|
+
overwhelmingly its **debugger** — halt the core, single-step, set a breakpoint,
|
|
31
|
+
watch registers and memory live.
|
|
32
|
+
|
|
33
|
+
> **The MAK8u has no debug interface.** There is no halt, no single-step, no
|
|
34
|
+
> breakpoint, no register readback, and no way for the host to read target
|
|
35
|
+
> memory. The only host-to-target channel is one UART.
|
|
36
|
+
|
|
37
|
+
That is the hardware as built, not a gap in this tool. A tool that implied
|
|
38
|
+
otherwise would be promising a product that cannot exist on this silicon.
|
|
39
|
+
|
|
40
|
+
What the machine does offer, and what this workbench is built on:
|
|
41
|
+
|
|
42
|
+
| channel | direction | carries |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| UART bootloader protocol | host → target | a whole program image, magic-framed and checksummed |
|
|
45
|
+
| UART, program-driven | target → host | whatever the running program chooses to transmit |
|
|
46
|
+
| 16 LEDs | target → eye | heartbeats, lock, reset, per-core retire, error stickies |
|
|
47
|
+
| 8-digit seven-segment | target → eye | one of eight values, selected by `sw[5:3]` |
|
|
48
|
+
| `sw[7]`, `sw[6]` | hand → target | boot-witness probe; priming defeat |
|
|
49
|
+
| boot witness | target → program | what the flash reader saw, readable only *by a program on the target* |
|
|
50
|
+
|
|
51
|
+
**Every observation of internal state is made by a program you load.** The host
|
|
52
|
+
never reads the machine; it reads what a program on the machine says. So this is
|
|
53
|
+
an instrument workbench, not a debugger — which turns out to suit the device,
|
|
54
|
+
because its whole method is purpose-built witness images.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## What works
|
|
59
|
+
|
|
60
|
+
| feature | state |
|
|
61
|
+
|---|---|
|
|
62
|
+
| Editor with live assembler diagnostics | **works** — line and, where the assembler quotes a token, column |
|
|
63
|
+
| Build to a `.mem` image | **works** |
|
|
64
|
+
| Image inspector and disassembler | **works** — what is at word N, and which source line put it there |
|
|
65
|
+
| Load over UART, run, monitor | **works** — hex/ascii, pause, save log |
|
|
66
|
+
| Instruments pane, seventeen `read_*_hw.py` readers | **works**, one command each, globbed from disk |
|
|
67
|
+
| Boot-witness reader | **works** — refuses a short dump rather than decoding it |
|
|
68
|
+
| Self-boot regression checklist | **works** — and reports INCONCLUSIVE, never green, on a one-sided run |
|
|
69
|
+
| Command line, three layout modes | **works** — `/` lists everything, by name |
|
|
70
|
+
| Program the FPGA or its flash from macOS | **not shipped** — see below |
|
|
71
|
+
| RTL regression suite | **impossible here** — Vivado has no macOS build |
|
|
72
|
+
| Source-level debugger | **impossible** — see above |
|
|
73
|
+
| Assistant pane | **works** — NVIDIA NIM, grounded in the repository, citing every fact |
|
|
74
|
+
| Project window, file operations, documentation panel | **works** |
|
|
75
|
+
|
|
76
|
+
### What it looks like
|
|
77
|
+
|
|
78
|
+
Work mode, with the assembler's verdict under the token it quoted — `R9` is
|
|
79
|
+
not a register this machine has:
|
|
80
|
+
|
|
81
|
+

|
|
82
|
+
|
|
83
|
+
`/` on its own, listing every command this project has, including one per
|
|
84
|
+
`read_*_hw.py` found on disk:
|
|
85
|
+
|
|
86
|
+

|
|
87
|
+
|
|
88
|
+
The Welcome screen:
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
These are exported from a real run of the app, not drawn by hand, by
|
|
93
|
+
`docs/screenshots.py` — and `tests/test_screenshots.py` re-renders them and
|
|
94
|
+
fails when the app stops drawing what they show. A screenshot is the one claim
|
|
95
|
+
in a repository that rots without anyone noticing, because a picture cannot
|
|
96
|
+
fail a test.
|
|
97
|
+
|
|
98
|
+
### Programming the board
|
|
99
|
+
|
|
100
|
+
Flashing is **not part of this tool on macOS**. Vivado has no macOS build, and
|
|
101
|
+
while `openFPGALoader` exists and installs cleanly, this checkout has never
|
|
102
|
+
programmed a board with it. Bitstreams are built on the Windows box, and
|
|
103
|
+
`*.bit` is not committed. Treat macOS flashing as unproven until there is a
|
|
104
|
+
measurement saying otherwise.
|
|
105
|
+
|
|
106
|
+
The board **boots from its own flash**, so day-to-day work needs no programming
|
|
107
|
+
at all: load an image over UART and run it.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Install
|
|
112
|
+
|
|
113
|
+
**The command is `mak`. The distribution is `mak-ide`** — `mak` on PyPI is an
|
|
114
|
+
unrelated package, and a console script's name is independent of the
|
|
115
|
+
distribution that installs it.
|
|
116
|
+
|
|
117
|
+
**Not published yet.** `.github/workflows/release.yaml` builds, checks and
|
|
118
|
+
installs the wheel on every push, and uploads only from a manual run with the
|
|
119
|
+
word `publish` typed into it. Until that is fired, the four commands below
|
|
120
|
+
will not resolve; the two after them work today from a clone.
|
|
121
|
+
|
|
122
|
+
### Once it is published
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
uv tool install mak-ide # recommended: isolated, one command on PATH
|
|
126
|
+
pipx install mak-ide # the same thing, if you already use pipx
|
|
127
|
+
pip install mak-ide # only inside a virtualenv you already manage
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
macOS and Linux, in one line:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
curl -LsSf https://raw.githubusercontent.com/Manikanta25055/MAK8u/mak-ide/tools/maku-tui/install.sh | sh
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Windows PowerShell:
|
|
137
|
+
|
|
138
|
+
```powershell
|
|
139
|
+
irm https://raw.githubusercontent.com/Manikanta25055/MAK8u/mak-ide/tools/maku-tui/install.ps1 | iex
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Both scripts find `uv` or install it, run `uv tool install mak-ide`, and tell
|
|
143
|
+
you if the directory they installed into is not on your `PATH` — rather than
|
|
144
|
+
leaving you with a command that "did not install". Neither needs `sudo` or
|
|
145
|
+
administrator rights. `uv tool uninstall mak-ide` undoes either.
|
|
146
|
+
|
|
147
|
+
**The one-liners fetch from a URL, and this repository is private.** They
|
|
148
|
+
return 404 for anyone who cannot read it, including you on a machine without
|
|
149
|
+
credentials, until the repository is public.
|
|
150
|
+
|
|
151
|
+
**The URLs name the `mak-ide` branch, not `main`,** because that is where
|
|
152
|
+
`install.sh` and `install.ps1` actually are — the default branch has no
|
|
153
|
+
`tools/` directory yet. They move to `main` when that branch merges.
|
|
154
|
+
|
|
155
|
+
`mak --version` says which one you have. `mak --doctor` says why it will not
|
|
156
|
+
start.
|
|
157
|
+
|
|
158
|
+
### From a clone, today
|
|
159
|
+
|
|
160
|
+
Pick the path that matches what you are doing — they give you two different
|
|
161
|
+
things and the difference is the point.
|
|
162
|
+
|
|
163
|
+
### To use it
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
uv tool install ./tools/maku-tui
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
or, equivalently:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
pipx install ./tools/maku-tui
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Either one puts **`mak`** on your `PATH` — one command, not three. Both were
|
|
176
|
+
verified on this checkout — `uv` on Python 3.13, `pipx` on 3.14. This is an ordinary
|
|
177
|
+
wheel install: **source edits need a reinstall**, which is what installing
|
|
178
|
+
means. The NIM assistant is an extra and is left out unless you ask:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
uv tool install "./tools/maku-tui[assistant]"
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### To work on it
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
cd tools/maku-tui && python3 -m venv .venv && .venv/bin/pip install -e .
|
|
188
|
+
ln -s "$PWD/bin/mak" ~/.local/bin/mak
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
`bin/mak` is a shell script, not a generated console entry point, and it
|
|
192
|
+
resolves through however many symlinks put it on `PATH` back to this checkout
|
|
193
|
+
and its virtualenv. So **a source edit is live the next time `mak` starts**,
|
|
194
|
+
and there is nothing to reinstall. That is why the developer path exists at
|
|
195
|
+
all.
|
|
196
|
+
|
|
197
|
+
`mak` runs in whatever directory you start it from and finds that project's
|
|
198
|
+
`maku.toml` by searching upward, the way `git` finds a repository.
|
|
199
|
+
|
|
200
|
+
### If `mak` will not start
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
mak --doctor
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
It works on both installs and reports which one it is looking at; `mak --where`
|
|
207
|
+
prints the checkout, or the installed package when there is no checkout.
|
|
208
|
+
|
|
209
|
+
On **this** tree the usual cause is not a broken package. Every `.pth` file in
|
|
210
|
+
a venv under `~/Desktop` acquires the macOS `UF_HIDDEN` flag, and Python 3.13
|
|
211
|
+
**skips hidden `.pth` files** — so an editable install that `pip` reports as
|
|
212
|
+
installed is inert, and the symptom is `No module named maku_tui`. `chflags
|
|
213
|
+
nohidden` works and does not hold. The fix that holds is a symlink from
|
|
214
|
+
site-packages into `src/`, and `--doctor` prints it. Nothing outside that
|
|
215
|
+
situation needs the symlink, and the doctor says so rather than reporting a
|
|
216
|
+
fault.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Using it
|
|
221
|
+
|
|
222
|
+
**There are no keyboard shortcuts, and that is deliberate.** There were
|
|
223
|
+
twenty-one. Ctrl bindings needed a modifier some terminals do not deliver,
|
|
224
|
+
F-keys carried actions nobody could discover, and one of them — `ctrl+i` —
|
|
225
|
+
could never fire at all, because 0x09 *is* the tab character. That binding
|
|
226
|
+
validated, appeared in the key bar and in the palette, and did nothing, for as
|
|
227
|
+
long as it existed. Automated tests could not see it either: a pilot presses
|
|
228
|
+
keys by name, so a binding no terminal can send passes every one of them.
|
|
229
|
+
|
|
230
|
+
Nine keys remain, and all nine are navigation:
|
|
231
|
+
|
|
232
|
+
| key | does |
|
|
233
|
+
|---|---|
|
|
234
|
+
| `/` | open the command line — every action is here, by name |
|
|
235
|
+
| arrows | move between sections, or move the caret inside the editor |
|
|
236
|
+
| `tab` / `shift+tab` | next / previous section, in reading order |
|
|
237
|
+
| `enter` | activate what has focus — open a file, enter edit mode, answer a question |
|
|
238
|
+
| `esc` | close what is open, one layer at a time: a question, the command line, edit mode |
|
|
239
|
+
|
|
240
|
+
Anything else is typed on the command line. `/` on its own lists every command
|
|
241
|
+
this project has, including one per `read_*_hw.py` on disk, and an argument is
|
|
242
|
+
completed from the kind it declares — `/load ` offers `.mem` images and nothing
|
|
243
|
+
else. **An argument that does not resolve is refused with a reason and your
|
|
244
|
+
text is kept**, never rounded to the nearest plausible file.
|
|
245
|
+
|
|
246
|
+
A few worth knowing:
|
|
247
|
+
|
|
248
|
+
| command | does |
|
|
249
|
+
|---|---|
|
|
250
|
+
| `/open` `/save` `/build` `/load` | the working loop |
|
|
251
|
+
| `/new` `/newfolder` `/rename` `/delete` | files; `/delete` asks first |
|
|
252
|
+
| `/key` | store the NVIDIA NIM key for the assistant, in a masked field |
|
|
253
|
+
| `/witness` `/self-boot` | read the boot witness; run the regression |
|
|
254
|
+
| `/focus` `/work` `/bench` | the three layouts |
|
|
255
|
+
|
|
256
|
+
### The mouse
|
|
257
|
+
|
|
258
|
+
Click to focus a pane; click a line in the editor to put the caret there;
|
|
259
|
+
click a folder in the explorer to open or shut it. The wheel scrolls whatever
|
|
260
|
+
is under the pointer, not whatever had focus last. While a question is open it
|
|
261
|
+
owns the pointer as well as the keyboard — a click outside the box does not
|
|
262
|
+
focus what is behind it.
|
|
263
|
+
|
|
264
|
+
### The key is never echoed
|
|
265
|
+
|
|
266
|
+
`/key` opens a field that is drawn as dots. The characters never enter the
|
|
267
|
+
drawing path at all, so the masking is not an overlay a redraw could get
|
|
268
|
+
wrong. The key is written to `~/.config/maku/credentials.toml` at mode 0600 in
|
|
269
|
+
a 0700 directory, with the mode set as the file is created rather than
|
|
270
|
+
tightened afterwards, and it is **never** written to `maku.toml`, which is
|
|
271
|
+
committed. `/key clear` removes it.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Testing
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
tools/maku-tui/.venv/bin/python tools/maku-tui/tests/run_all.py
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
One `PASS`/`FAIL` per file and a single `RESULT:` line. A suite with no
|
|
282
|
+
`RESULT:` line reads as unverified, and this one has none such. A check that
|
|
283
|
+
cannot be *built* on the platform it is running on — there is one, and it needs
|
|
284
|
+
the macOS hidden-flag — reports `SKIP` with its reason, and `run_all.py` lifts
|
|
285
|
+
those lines into its own output so a check cannot stop running quietly.
|
|
286
|
+
|
|
287
|
+
`.github/workflows/maku-tui.yml` runs all of it on macOS and Linux, on Python
|
|
288
|
+
3.11 and 3.13. Linux is there for a reason rather than for symmetry: the
|
|
289
|
+
hidden-`.pth` failure this tool works around is a macOS behaviour, so Linux is
|
|
290
|
+
where a check that quietly depends on the workaround shows up.
|
|
291
|
+
|
|
292
|
+
Three gates are not in `run_all.py`. Two need the board —
|
|
293
|
+
`gate_eight_images.py` and `gate_witness.py` — and one needs a real terminal:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
tools/maku-tui/.venv/bin/python tools/maku-tui/tests/gate_pty.py
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
`gate_pty.py` forks a pseudo-terminal and sends **bytes**. Textual's test
|
|
300
|
+
pilot presses keys *by name*, which is why `ctrl+i` survived a suite that was
|
|
301
|
+
green — no terminal can send it, and a pilot does not have to. It is also why a
|
|
302
|
+
key that was handled twice, once by the router and once by its binding, passed
|
|
303
|
+
everything: no test asked what happens when the bytes for `/` arrive while the
|
|
304
|
+
command line is open. The answer was that the line re-opened at that character,
|
|
305
|
+
so **no path argument could be typed at all**. The gate asserts what is on the
|
|
306
|
+
wire, including the one property that is only meaningful there: the NIM key
|
|
307
|
+
never appears in the byte stream.
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Licence
|
|
312
|
+
|
|
313
|
+
**Apache-2.0** — the full text is in [LICENSE](LICENSE). Chosen over MIT for the
|
|
314
|
+
patent grant, and in place before the first public commit rather than after.
|