neoh
NeoH (or NeoHDL) is a declarative HDL, proficient in creating extremely fast and secure testbenches, with complete support for SystemVerilog, as it transpiles into said HDL.
Features
• Modular "blocks", improves on "modules" in SystemVerilog:
block Example(in a, in b, out c) logic {
ret tempassign c [always 7:0] <= a + b;
}
// NOTE tempassign assign a value to a variable for only that block. The [always MSB:LSB] identifier can be assigned to either the result, or expression.
• Improves on "interfaces":
piece ExampleBus {
in addr, in data, out ready
}
pieced block Example(ExampleBus <= bus){}
• Improved hierarchy support:
block top(in x, in y, out z) logic {
n1 passparams example(x,y,z);
ret z <= n1;
}
• Easier macros with "known":
known macro1 <= clk, rst;
// pass into block
block macroeater(in clk, in rst) {}
• Testbenches are easier now:
testbench random target(RandomBlock){
getvars(signal1, signal2, !signal3, clk, rst);
// "!" before a var (in getvars) indicates it should never be included, if, for example, "*" is passed as an argument (which means "all")
when(BEGIN){
put signal1 <= 1;
/10 expect(signal2 == 1);
pulse len(clk), gap(rst);
/50 watchfor req <= ack & /100 out(status);
writefile(mode vcd, file output.vcd);
}
}
• Along with "testgroups":
testgroup ExampleGroup {
do tb_random;
same {
tb1
tb2
} // "same" = synchronous running;
}
• Typing "always_ff" is easier now 🙃:
aff posedge(clk) or negedge(rst) {}
In Conclusion...
• It provides a more declarative way to write testbenches.
• No more boilerplate code with complex hierarchies.
• And more modular syntax.
Installation
Ensure you have Rust/Cargo installed.
cargo install neoh
Quick Start
Create a file called simple.neoh:
// simple.neoh
block Example(in a, in b, out c) logic {
ret c <= a + b;
}
testbench Verification target(Example) {
getvars(a, b, c);
when(BEGIN) {
put a <= 1;
put b <= 2;
/100 out("Hello Neo!");
}
}
Compile it:
neoh simple.neoh
# Generates simple.sv
Contributing
We welcome contributions! Please fork the repository and submit a pull request.
-
Run
cargo testto ensure changes pass. -
Add tests for new features in
/tests.
RELEASES
• v1.0.0-beta on Github • v0.3.2 on crates.io
Metadata
Release files for neoh 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neoh-0.1.0.tar.gz | 16.8 kB | Without provenance | Details for neoh-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neoh-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for neoh-0.1.0-py3-none-any.whl |
Total release size: 32.2 kB
Release files / neoh-0.1.0.tar.gz
| Download URL | neoh-0.1.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a0c4d3afcc0399dd398564d0fc14d09c5d433301a5f40a7df3673ca6afb7d72
|
|
BLAKE2b-256 checksum How to use checksums |
34b6a96b0b62031054a3209ab925354021cf3996e9c1f88a4aaddc2cc676898a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / neoh-0.1.0-py3-none-any.whl
| Download URL | neoh-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1612f534b68eb454fe770cc4d7a04a75943a2eabac7744107574b5306bc4613
|
|
BLAKE2b-256 checksum How to use checksums |
f239c9a2955237df414f44da1092d4534b16224fd6fde97c7f3a89f23386c619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for neoh 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.