siliconize 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.
- siliconize-0.1.0/CONTRIBUTING.md +108 -0
- siliconize-0.1.0/DISCLAIMER.md +78 -0
- siliconize-0.1.0/LICENSE +202 -0
- siliconize-0.1.0/MANIFEST.in +3 -0
- siliconize-0.1.0/NOTICE +41 -0
- siliconize-0.1.0/PKG-INFO +436 -0
- siliconize-0.1.0/README.md +369 -0
- siliconize-0.1.0/pyproject.toml +70 -0
- siliconize-0.1.0/setup.cfg +4 -0
- siliconize-0.1.0/siliconize/__init__.py +18 -0
- siliconize-0.1.0/siliconize/__main__.py +7 -0
- siliconize-0.1.0/siliconize/api.py +265 -0
- siliconize-0.1.0/siliconize/asserts.py +116 -0
- siliconize-0.1.0/siliconize/board_design.py +88 -0
- siliconize-0.1.0/siliconize/boards/__init__.py +69 -0
- siliconize-0.1.0/siliconize/boards/board_sim.py +344 -0
- siliconize-0.1.0/siliconize/boards/bridge.py +1415 -0
- siliconize-0.1.0/siliconize/boards/catalog.py +134 -0
- siliconize-0.1.0/siliconize/boards/mojo_loader.py +81 -0
- siliconize-0.1.0/siliconize/boards/mojo_v3.py +64 -0
- siliconize-0.1.0/siliconize/boards/openfpgaloader.py +45 -0
- siliconize-0.1.0/siliconize/boards/pins.py +355 -0
- siliconize-0.1.0/siliconize/boards/protocol.py +214 -0
- siliconize-0.1.0/siliconize/boards/spec.py +138 -0
- siliconize-0.1.0/siliconize/cli.py +424 -0
- siliconize-0.1.0/siliconize/cycle.py +1102 -0
- siliconize-0.1.0/siliconize/device.py +316 -0
- siliconize-0.1.0/siliconize/doctor.py +212 -0
- siliconize-0.1.0/siliconize/export.py +198 -0
- siliconize-0.1.0/siliconize/fit.py +93 -0
- siliconize-0.1.0/siliconize/fixed.py +409 -0
- siliconize-0.1.0/siliconize/fixed_lower.py +393 -0
- siliconize-0.1.0/siliconize/frontend.py +1522 -0
- siliconize-0.1.0/siliconize/hardware.py +173 -0
- siliconize-0.1.0/siliconize/hdl/i2c_target_model.v +106 -0
- siliconize-0.1.0/siliconize/host.py +858 -0
- siliconize-0.1.0/siliconize/ir.py +565 -0
- siliconize-0.1.0/siliconize/memory.py +472 -0
- siliconize-0.1.0/siliconize/ml/__init__.py +127 -0
- siliconize-0.1.0/siliconize/ml/codegen.py +323 -0
- siliconize-0.1.0/siliconize/ml/data/iris.csv +151 -0
- siliconize-0.1.0/siliconize/ml/datasets.py +57 -0
- siliconize-0.1.0/siliconize/ml/digits.py +29 -0
- siliconize-0.1.0/siliconize/ml/folded.py +100 -0
- siliconize-0.1.0/siliconize/ml/graph.py +326 -0
- siliconize-0.1.0/siliconize/ml/iris.py +28 -0
- siliconize-0.1.0/siliconize/ml/jax_frontend.py +325 -0
- siliconize-0.1.0/siliconize/ml/keras_frontend.py +175 -0
- siliconize-0.1.0/siliconize/ml/onnx_frontend.py +204 -0
- siliconize-0.1.0/siliconize/ml/quantize.py +374 -0
- siliconize-0.1.0/siliconize/ml/report.py +65 -0
- siliconize-0.1.0/siliconize/ml/sklearn_frontend.py +129 -0
- siliconize-0.1.0/siliconize/ml/tflite_frontend.py +194 -0
- siliconize-0.1.0/siliconize/ml/torch_frontend.py +320 -0
- siliconize-0.1.0/siliconize/ml/trees.py +718 -0
- siliconize-0.1.0/siliconize/np_lower.py +1006 -0
- siliconize-0.1.0/siliconize/pipeline.py +530 -0
- siliconize-0.1.0/siliconize/placement.py +312 -0
- siliconize-0.1.0/siliconize/portability.py +205 -0
- siliconize-0.1.0/siliconize/procs.py +405 -0
- siliconize-0.1.0/siliconize/pytest_plugin.py +158 -0
- siliconize-0.1.0/siliconize/scheduling.py +2225 -0
- siliconize-0.1.0/siliconize/sequential.py +1561 -0
- siliconize-0.1.0/siliconize/serve.py +1132 -0
- siliconize-0.1.0/siliconize/sim.py +332 -0
- siliconize-0.1.0/siliconize/srcmap.py +238 -0
- siliconize-0.1.0/siliconize/steps.py +411 -0
- siliconize-0.1.0/siliconize/stimulus.py +215 -0
- siliconize-0.1.0/siliconize/stream.py +1026 -0
- siliconize-0.1.0/siliconize/testbench.py +367 -0
- siliconize-0.1.0/siliconize/timing.py +327 -0
- siliconize-0.1.0/siliconize/tools.py +263 -0
- siliconize-0.1.0/siliconize/types.py +172 -0
- siliconize-0.1.0/siliconize/vendors/__init__.py +3 -0
- siliconize-0.1.0/siliconize/vendors/flows.py +720 -0
- siliconize-0.1.0/siliconize/vendors/ise.py +361 -0
- siliconize-0.1.0/siliconize/vendors/yosys_netlist.py +299 -0
- siliconize-0.1.0/siliconize/verilog.py +572 -0
- siliconize-0.1.0/siliconize.egg-info/PKG-INFO +436 -0
- siliconize-0.1.0/siliconize.egg-info/SOURCES.txt +120 -0
- siliconize-0.1.0/siliconize.egg-info/dependency_links.txt +1 -0
- siliconize-0.1.0/siliconize.egg-info/entry_points.txt +5 -0
- siliconize-0.1.0/siliconize.egg-info/requires.txt +58 -0
- siliconize-0.1.0/siliconize.egg-info/top_level.txt +1 -0
- siliconize-0.1.0/tests/test_asserts.py +224 -0
- siliconize-0.1.0/tests/test_bench_crypto.py +192 -0
- siliconize-0.1.0/tests/test_bench_dataflow.py +246 -0
- siliconize-0.1.0/tests/test_bench_gaps.py +27 -0
- siliconize-0.1.0/tests/test_bench_riscv.py +339 -0
- siliconize-0.1.0/tests/test_board_design.py +81 -0
- siliconize-0.1.0/tests/test_boards.py +286 -0
- siliconize-0.1.0/tests/test_compiler.py +352 -0
- siliconize-0.1.0/tests/test_const_mul.py +100 -0
- siliconize-0.1.0/tests/test_cycle.py +502 -0
- siliconize-0.1.0/tests/test_device.py +539 -0
- siliconize-0.1.0/tests/test_fit.py +104 -0
- siliconize-0.1.0/tests/test_fixed.py +272 -0
- siliconize-0.1.0/tests/test_hardware.py +253 -0
- siliconize-0.1.0/tests/test_host_faults.py +335 -0
- siliconize-0.1.0/tests/test_hw_regress_generic.py +244 -0
- siliconize-0.1.0/tests/test_i2c_target.py +338 -0
- siliconize-0.1.0/tests/test_infer_widths.py +153 -0
- siliconize-0.1.0/tests/test_keyword_names.py +73 -0
- siliconize-0.1.0/tests/test_link.py +265 -0
- siliconize-0.1.0/tests/test_memory.py +166 -0
- siliconize-0.1.0/tests/test_ml.py +430 -0
- siliconize-0.1.0/tests/test_ml_cnn.py +443 -0
- siliconize-0.1.0/tests/test_ml_sklearn.py +165 -0
- siliconize-0.1.0/tests/test_ml_tf.py +141 -0
- siliconize-0.1.0/tests/test_ml_trees.py +431 -0
- siliconize-0.1.0/tests/test_modulo.py +157 -0
- siliconize-0.1.0/tests/test_numpy_frontend.py +582 -0
- siliconize-0.1.0/tests/test_pipeline.py +256 -0
- siliconize-0.1.0/tests/test_portability.py +400 -0
- siliconize-0.1.0/tests/test_procs.py +255 -0
- siliconize-0.1.0/tests/test_protocols.py +169 -0
- siliconize-0.1.0/tests/test_schedule.py +510 -0
- siliconize-0.1.0/tests/test_sequential.py +305 -0
- siliconize-0.1.0/tests/test_serve.py +829 -0
- siliconize-0.1.0/tests/test_srcmap.py +198 -0
- siliconize-0.1.0/tests/test_stimulus.py +75 -0
- siliconize-0.1.0/tests/test_stream.py +250 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Contributing to siliconize
|
|
2
|
+
|
|
3
|
+
Thank you for helping. This page explains how to set up, test and submit a change.
|
|
4
|
+
|
|
5
|
+
## License of contributions
|
|
6
|
+
|
|
7
|
+
siliconize is licensed under the [Apache License 2.0](LICENSE). By submitting a contribution you
|
|
8
|
+
agree that it is licensed under the same terms (inbound = outbound). Every source file carries
|
|
9
|
+
`# SPDX-License-Identifier: Apache-2.0` and a copyright line; keep them (and add the same header to
|
|
10
|
+
new `.py` files, and `// SPDX-License-Identifier: Apache-2.0` to hand-written `.v` files in the package).
|
|
11
|
+
|
|
12
|
+
### Sign off your commits (DCO)
|
|
13
|
+
|
|
14
|
+
Every commit must carry a `Signed-off-by` line, which certifies the
|
|
15
|
+
[Developer Certificate of Origin 1.1](https://developercertificate.org/): that you wrote the change or
|
|
16
|
+
have the right to submit it under the project's license. Use `git commit -s`:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
Signed-off-by: Your Name <you@example.com>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Do not copy code from other projects unless its license is compatible with Apache-2.0, and say so
|
|
23
|
+
in the pull request (and add it to `NOTICE`).
|
|
24
|
+
|
|
25
|
+
## Set up
|
|
26
|
+
|
|
27
|
+
```console
|
|
28
|
+
$ python3 -m venv .venv && . .venv/bin/activate
|
|
29
|
+
$ pip install -e '.[dev]' # pytest, pytest-xdist, Verilator, Yosys, pyserial, NumPy, pycryptodome
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The ML importers and their tests need the optional frameworks: `pip install -e '.[ml]'`. Tests that need a
|
|
33
|
+
missing tool or framework skip with an explicit reason; they do not pass silently.
|
|
34
|
+
|
|
35
|
+
## Run the tests
|
|
36
|
+
|
|
37
|
+
```console
|
|
38
|
+
$ pytest # the default set, all cores: everything except `hardware`
|
|
39
|
+
$ pytest -m "not slow" # fast tier: skips netlist/board simulations and tests over ~10 s
|
|
40
|
+
$ pytest -m slow # only the slow tier
|
|
41
|
+
$ pytest --ff -x -m "not slow" # fail-fast: the last failures first, stop at the first new one
|
|
42
|
+
$ pytest --testmon # affected-only: reruns the tests whose code changed since the last run
|
|
43
|
+
$ pytest -n 0 tests/test_fixed.py # serial, to debug one file
|
|
44
|
+
$ pytest -m hardware # needs vendor tools (Xilinx ISE in Docker) or a board; deselected by default
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The tiers are plain markers. `slow` is applied automatically in `tests/conftest.py`: a test is `slow` if
|
|
48
|
+
it was measured above 10 s in `tests/data/.test_durations`, or its name or source marks it as a netlist
|
|
49
|
+
or board-level (UART) simulation. Nothing is hand-marked; `pytest` with no `-m` still runs every
|
|
50
|
+
non-`hardware` test, and `-m hardware` never runs by accident (`-m "not slow"` does not select it).
|
|
51
|
+
|
|
52
|
+
Testmon records which source lines each test executes and reruns only the tests affected by a change.
|
|
53
|
+
It works with the default `-n auto`. The first run builds the database (`.testmondata`, ignored by git);
|
|
54
|
+
later runs select only what changed (nothing changed: 0 tests). Testmon switches its selection off when
|
|
55
|
+
`-m` is given, so use `--testmon` on its own, not together with `-m "not slow"`. Use the full run
|
|
56
|
+
before you submit.
|
|
57
|
+
|
|
58
|
+
CI runs the fast tier first, then the full set in 6 shards balanced by the stored durations
|
|
59
|
+
(`pytest --splits 6 --group N`). After adding many tests or changing the cost of a slow one, refresh the
|
|
60
|
+
durations file:
|
|
61
|
+
|
|
62
|
+
```console
|
|
63
|
+
$ pytest --store-durations --durations-path tests/data/.test_durations
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The full default run takes a long time on one core; use all your cores. Tests must be
|
|
67
|
+
parallel-safe: no fixed directory names; use `tmp_path` or the `ise_dir` fixture.
|
|
68
|
+
|
|
69
|
+
Hardware tests and `scripts/hw_regress.py` need the vendor tool and a connected board. Never run them
|
|
70
|
+
against a board you are not prepared to risk; read [DISCLAIMER.md](DISCLAIMER.md) first.
|
|
71
|
+
|
|
72
|
+
## Contributing results for another board
|
|
73
|
+
|
|
74
|
+
Run `python scripts/hw_regress.py --board <your-board> --port <the board's UART>` (see "Running the hardware
|
|
75
|
+
regression on your board" in [docs/BOARDS.md](docs/BOARDS.md)); it builds with the board's own flow, loads each design into
|
|
76
|
+
the FPGA's volatile memory and checks it against Python. Open an issue or pull request with
|
|
77
|
+
`build/hw_regress/HW_RESULTS.md`, the board and tool versions, and anything that failed, as it failed: a nonzero
|
|
78
|
+
"link retries" count or a failing design is a finding, not noise. If openFPGALoader's board name differs from the
|
|
79
|
+
catalog's `loader=`, or a pin is wrong, fix the catalog entry and say so. Only when designs pass on the
|
|
80
|
+
real board do we set `hardware_tested=True`.
|
|
81
|
+
|
|
82
|
+
## Code principles
|
|
83
|
+
|
|
84
|
+
* **Python is the golden model.** The user's Python function defines correct behavior. Nothing is
|
|
85
|
+
"done" until Python, the IR, the RTL simulation, the synthesized-netlist simulation and (where it
|
|
86
|
+
applies) a real board agree. Never claim a flow works unless it was run; mark untested things as such.
|
|
87
|
+
* **Portable Verilog-2001 only** ([docs/PORTABILITY.md](docs/PORTABILITY.md)): no SystemVerilog, no vendor
|
|
88
|
+
primitives, no initial values or latches. Emit signed-typed wires and let Verilog widen operands;
|
|
89
|
+
never hand-build sign extension (a vendor synthesizer miscompiles it). Rename names that are reserved
|
|
90
|
+
words in IEEE 1800-2017. Generated Verilog must lint clean with `verilator --lint-only -Wall`.
|
|
91
|
+
* **No per-design flags.** Every fix is a general compiler or wrapper rule that applies to all programs.
|
|
92
|
+
What the user does not state is inferred: bit widths from range analysis, the clock from the board,
|
|
93
|
+
resource limits from the device, FIFO depths from frame sizes. A per-design switch added to make one
|
|
94
|
+
design work is a bug to remove.
|
|
95
|
+
* **DRY, YAGNI, KISS.** Reuse existing helpers, add nothing speculative, prefer the simplest correct design.
|
|
96
|
+
Refactors must leave generated output byte-identical (`scripts/snapshot_verilog.py`).
|
|
97
|
+
* **Anything unsupported is a compile error** that points at the source line; the compiler never quietly
|
|
98
|
+
compiles something that would behave differently from Python.
|
|
99
|
+
|
|
100
|
+
## Submitting a change
|
|
101
|
+
|
|
102
|
+
1. Open an issue first for anything large, or for a new board or flow.
|
|
103
|
+
2. Add tests with the change, and keep the default suite green.
|
|
104
|
+
3. For a new board: follow "How to add a board" in [docs/BOARDS.md](docs/BOARDS.md), cite the source of every
|
|
105
|
+
pin, and keep `hardware_tested=False` until someone has run `python -m siliconize.host` on the real board.
|
|
106
|
+
Results from real boards are very welcome.
|
|
107
|
+
4. Update the documentation that describes the behavior you changed.
|
|
108
|
+
5. Open a pull request with your signed-off commits.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Disclaimer
|
|
2
|
+
|
|
3
|
+
Please read this before generating a design or loading anything onto hardware.
|
|
4
|
+
|
|
5
|
+
## No warranty
|
|
6
|
+
|
|
7
|
+
siliconize is provided **"AS IS", without warranty of any kind**, express or implied, including
|
|
8
|
+
but not limited to the warranties of merchantability, fitness for a particular purpose and
|
|
9
|
+
non-infringement. See the Apache License 2.0 (`LICENSE`), sections 7 and 8, which govern this
|
|
10
|
+
software. In no event shall the authors or contributors be liable for any claim, damages or other
|
|
11
|
+
liability arising from the use of the software or of anything it generates.
|
|
12
|
+
|
|
13
|
+
## Generated designs may be wrong
|
|
14
|
+
|
|
15
|
+
siliconize checks its output against the Python function it came from (RTL simulation, netlist
|
|
16
|
+
simulation, and optionally a real board), but **passing verification is not a guarantee** of
|
|
17
|
+
correctness. Compilers, synthesis tools and simulators have bugs (a real miscompilation in a vendor
|
|
18
|
+
synthesizer was found while building this project), tests cover finite sets of inputs, and a
|
|
19
|
+
design that passes on one device, tool version or clock may fail on another. Generated Verilog,
|
|
20
|
+
testbenches, constraints, build scripts and bitstreams may be incorrect. Review and test what you
|
|
21
|
+
intend to use.
|
|
22
|
+
|
|
23
|
+
## Hardware: your own risk
|
|
24
|
+
|
|
25
|
+
Loading a bitstream onto hardware is **at your own risk**. Wrong pin assignments, wrong I/O
|
|
26
|
+
standards or voltages, contention on shared pins and faulty constraints can **damage boards,
|
|
27
|
+
attached circuits or your computer**. The pin data for each supported board was copied from public
|
|
28
|
+
sources and is not verified for every board (see `docs/BOARDS.md`: most boards have never been run
|
|
29
|
+
by the project). Check every constraint file against your board's documentation and schematic before
|
|
30
|
+
you program it or connect anything to its pins. Use only the loader and programmer procedures
|
|
31
|
+
documented by your board's vendor.
|
|
32
|
+
|
|
33
|
+
## Not for safety-critical use
|
|
34
|
+
|
|
35
|
+
siliconize and the designs it generates must **not** be used in safety-critical, medical,
|
|
36
|
+
automotive, aerospace, nuclear, or life-support applications, or anywhere that a failure could
|
|
37
|
+
cause injury, death or serious property or environmental damage. It has not been certified or
|
|
38
|
+
qualified for any such use.
|
|
39
|
+
|
|
40
|
+
## Trademarks
|
|
41
|
+
|
|
42
|
+
Xilinx, ISE, Spartan, Artix, Vivado, AMD, Intel, Quartus, MAX, Cyclone, Lattice, iCE40, ECP5,
|
|
43
|
+
Diamond, Radiant, Gowin, Microchip, PolarFire, Libero, Digilent, Arty, Basys, Alchitry, Mojo,
|
|
44
|
+
iCEBreaker, ULX3S, Tang Nano, Sipeed, Trenz, Arrow, and other product and company names are
|
|
45
|
+
trademarks or registered trademarks of their respective owners. Their use here only identifies
|
|
46
|
+
compatible products. There is **no affiliation with, or endorsement by,** any of these companies
|
|
47
|
+
or projects.
|
|
48
|
+
|
|
49
|
+
## Third-party tools
|
|
50
|
+
|
|
51
|
+
siliconize does not bundle or redistribute any of the following. They are installed separately by
|
|
52
|
+
you and are used under their own licences, which you must accept and comply with. The list
|
|
53
|
+
describes what siliconize can call; licences are given for orientation and may change, so check each
|
|
54
|
+
project.
|
|
55
|
+
|
|
56
|
+
| Tool | Used for | Licence (see the project) |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| Yosys (also as the `yowasp-yosys` package) | synthesis, netlist simulation models | ISC |
|
|
59
|
+
| Verilator | lint and simulation | LGPL-3.0-only or Artistic-2.0 |
|
|
60
|
+
| Icarus Verilog | simulation | GPL-2.0-or-later (tool); output is not covered |
|
|
61
|
+
| nextpnr, Project IceStorm, Project Trellis, Apycula (as `yowasp-*` and `apycula` packages or native) | open-source place and route and bitstream flows for iCE40, ECP5 and Gowin | ISC / MIT |
|
|
62
|
+
| pyserial | serial link to boards | BSD-3-Clause |
|
|
63
|
+
| NumPy, scikit-learn | optional inputs and examples | BSD-3-Clause |
|
|
64
|
+
| PyTorch, TensorFlow/Keras/TFLite, JAX, ONNX, ONNX Runtime, safetensors, XGBoost, LightGBM | optional model importers | BSD-style, Apache-2.0, MIT (per project) |
|
|
65
|
+
| pytest, pytest-xdist, pycryptodome | tests | MIT, MIT, BSD-2-Clause |
|
|
66
|
+
| Xilinx ISE, AMD Vivado, Intel Quartus, Lattice Radiant and Diamond, Gowin EDA, Microchip Libero | optional vendor flows | proprietary, under the vendor's licence agreement |
|
|
67
|
+
| Docker images containing vendor tools (the ISE flow can use a community image) | running ISE without a native install | the image's and the vendor's terms; you are responsible for having the right to use them |
|
|
68
|
+
| openFPGALoader, iceprog | loading bitstreams (not called by siliconize) | Apache-2.0, ISC |
|
|
69
|
+
|
|
70
|
+
Generated files may be used under the terms you choose, but the vendor tools' licences may limit what you
|
|
71
|
+
can do with their reports and bitstreams.
|
|
72
|
+
|
|
73
|
+
## Models from untrusted sources
|
|
74
|
+
|
|
75
|
+
Importing a model file means parsing data produced by someone else. Do so **at your own risk** and
|
|
76
|
+
only from sources you trust. siliconize refuses whole-model Python pickles (a pickle can execute
|
|
77
|
+
arbitrary code when loaded); weights files such as `.safetensors` are read as data. Framework
|
|
78
|
+
libraries that siliconize calls to read other formats have their own security properties.
|
siliconize-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
siliconize-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
siliconize
|
|
2
|
+
Copyright 2026 Hussain Khan and contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
Third-party material
|
|
7
|
+
--------------------
|
|
8
|
+
|
|
9
|
+
No source code from other projects is copied into siliconize. The following
|
|
10
|
+
data and specification-derived material is included; none of it is subject to
|
|
11
|
+
a licence that restricts redistribution under Apache-2.0:
|
|
12
|
+
|
|
13
|
+
* siliconize/ml/data/iris.csv, examples/ml/iris.onnx and examples/ml/iris.tflite:
|
|
14
|
+
the Iris flower data set (R. A. Fisher, 1936; UCI Machine Learning Repository),
|
|
15
|
+
as distributed with scikit-learn (BSD-3-Clause), and models trained on it.
|
|
16
|
+
* Pin assignments in siliconize/boards/ are facts about the boards (package pin
|
|
17
|
+
numbers), written in siliconize's own format; no constraint-file text is
|
|
18
|
+
copied. Each board description cites its sources in its `sources` field. With
|
|
19
|
+
thanks to their authors:
|
|
20
|
+
- Digilent digilent-xdc (Arty A7-35T, Basys 3): MIT License,
|
|
21
|
+
Copyright (c) 2017 Digilent.
|
|
22
|
+
- Radiona/EMARD ULX3S constraints (ULX3S): MIT-style licence,
|
|
23
|
+
Copyright (c) 2016-2018 EMARD.
|
|
24
|
+
- Embedded Micro mojo-base-project (Mojo V3): MIT License,
|
|
25
|
+
Copyright (c) 2015 Embedded Micro.
|
|
26
|
+
- LiteX-Boards platform files (iCEBreaker, Arty A7, Tang Nano 9K, MAX1000):
|
|
27
|
+
BSD-2-Clause, Copyright (c) 2012-2026 Enjoy-Digital and the LiteX-Hub community.
|
|
28
|
+
- 1BitSquared iCEBreaker examples (iCEBreaker pin cross-check; no licence
|
|
29
|
+
stated by that repository) and the Sipeed Tang Nano 9K wiki (UART pins).
|
|
30
|
+
- gralco/FPGA-Elevator-Project (GPL-2.0): the pin numbers of the Mojo IO
|
|
31
|
+
Shield's header I/O were cross-checked against its constraint file. Only
|
|
32
|
+
the pin numbers (facts) are used; no code or text from that project is
|
|
33
|
+
included.
|
|
34
|
+
* Constants and tables in benchmarks/ (the AES S-box and the SHA-256 constants)
|
|
35
|
+
come from the public standards FIPS 197 and FIPS 180-4; the RV32I encodings
|
|
36
|
+
come from the RISC-V instruction set specification.
|
|
37
|
+
* tests/data contains small excerpts of reports printed by vendor tools
|
|
38
|
+
(timing and mapping reports) used as parser test input.
|
|
39
|
+
|
|
40
|
+
External tools and libraries are not bundled or redistributed; see
|
|
41
|
+
DISCLAIMER.md for the list and their licences.
|