PySHDL 0.1.0__tar.gz → 0.1.3__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.
- {pyshdl-0.1.0 → pyshdl-0.1.3}/DOCS.md +2 -2
- {pyshdl-0.1.0 → pyshdl-0.1.3}/PKG-INFO +11 -7
- {pyshdl-0.1.0 → pyshdl-0.1.3}/README.md +6 -5
- {pyshdl-0.1.0 → pyshdl-0.1.3}/examples/interacting.py +1 -1
- {pyshdl-0.1.0 → pyshdl-0.1.3}/pyproject.toml +8 -3
- {pyshdl-0.1.0 → pyshdl-0.1.3}/src/PySHDL/__init__.py +2 -2
- {pyshdl-0.1.0 → pyshdl-0.1.3}/uv.lock +2 -2
- {pyshdl-0.1.0 → pyshdl-0.1.3}/.gitignore +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/C_API.md +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/examples/SHDL_components/addSub16.shdl +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/examples/SHDL_components/fullAdder.shdl +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/examples/SHDL_components/reg16.shdl +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/src/PySHDL/circuit.py +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/src/PySHDL/cli.py +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/src/PySHDL/py.typed +0 -0
- {pyshdl-0.1.0 → pyshdl-0.1.3}/src/PySHDL/shdlc.py +0 -0
|
@@ -540,7 +540,7 @@ shdlc adder.shdl -O 3
|
|
|
540
540
|
## Language Examples
|
|
541
541
|
|
|
542
542
|
### Full Adder
|
|
543
|
-
from
|
|
543
|
+
from PySHDL import Circuit
|
|
544
544
|
|
|
545
545
|
circuit = Circuit("reg16.shdl")
|
|
546
546
|
|
|
@@ -563,7 +563,7 @@ print(f"Stored: {value}") # Output: Stored: 12345
|
|
|
563
563
|
```
|
|
564
564
|
|
|
565
565
|
```python
|
|
566
|
-
from
|
|
566
|
+
from PySHDL import Circuit
|
|
567
567
|
|
|
568
568
|
circuit = Circuit("addSub16.shdl")
|
|
569
569
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PySHDL
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: SHDL (Simple Hardware Description Language) is a minimal HDL designed for creating digital circuits and easily simulating them. It compiles directly to C for maximum performance and portability.
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: SHDL (Simple Hardware Description Language) is a minimal HDL designed for creating digital circuits and easily simulating them. It compiles directly to C for maximum performance and portability. PySHDL is the Python interface for SHDL.
|
|
5
|
+
Project-URL: Homepage, https://github.com/rafa-rrayes/SHDL
|
|
6
|
+
Project-URL: Repository, https://github.com/rafa-rrayes/SHDL
|
|
7
|
+
Project-URL: Documentation, https://github.com/rafa-rrayes/SHDL/blob/master/DOCS.md
|
|
5
8
|
Author-email: rafa-rrayes <rafa@rayes.com.br>
|
|
6
9
|
Requires-Python: >=3.9
|
|
7
10
|
Description-Content-Type: text/markdown
|
|
8
11
|
|
|
9
12
|
# SHDL - Simple Hardware Description Language
|
|
10
13
|
|
|
11
|
-
A lightweight hardware description language and Python driver for digital circuit simulation. SHDL provides an intuitive syntax for defining digital circuits and a clean Python API for interacting with them.
|
|
14
|
+
A lightweight hardware description language and Python driver for digital circuit simulation. SHDL provides an intuitive syntax for defining digital circuits and a clean Python API for interacting with them (PySHDL).
|
|
12
15
|
|
|
13
16
|
## Features
|
|
14
17
|
|
|
@@ -21,7 +24,7 @@ A lightweight hardware description language and Python driver for digital circui
|
|
|
21
24
|
## Installation
|
|
22
25
|
|
|
23
26
|
```bash
|
|
24
|
-
pip install
|
|
27
|
+
pip install PySHDL
|
|
25
28
|
```
|
|
26
29
|
|
|
27
30
|
## Quick Start
|
|
@@ -59,7 +62,7 @@ component Adder16(A[16], B[16], Cin) -> (Sum[16], Cout) {
|
|
|
59
62
|
### 2. Use in Python
|
|
60
63
|
|
|
61
64
|
```python
|
|
62
|
-
from
|
|
65
|
+
from PySHDL import Circuit
|
|
63
66
|
|
|
64
67
|
# Load and compile the circuit
|
|
65
68
|
circuit = Circuit("adder.shdl")
|
|
@@ -124,18 +127,19 @@ See the `examples/` directory for more complete examples:
|
|
|
124
127
|
- `SHDL_components/` - Reusable component library
|
|
125
128
|
|
|
126
129
|
## Documentation
|
|
127
|
-
|
|
130
|
+
Github repository: [rafa-rrayes/SHDL](https://github.com/rafa-rrayes/SHDL)
|
|
128
131
|
For more detailed documentation, see [DOCS.md](DOCS.md).
|
|
129
132
|
|
|
130
133
|
## Requirements
|
|
131
134
|
|
|
132
|
-
- Python >= 3.
|
|
135
|
+
- Python >= 3.9
|
|
133
136
|
- GCC or compatible C compiler (for circuit compilation)
|
|
134
137
|
|
|
135
138
|
## Author
|
|
136
139
|
|
|
137
140
|
**Rafa Rayes**
|
|
138
141
|
Email: rafa@rayes.com.br
|
|
142
|
+
GitHub: [rafa-rrayes](https://github.com/rafa-rrayes)
|
|
139
143
|
|
|
140
144
|
## Contributing
|
|
141
145
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SHDL - Simple Hardware Description Language
|
|
2
2
|
|
|
3
|
-
A lightweight hardware description language and Python driver for digital circuit simulation. SHDL provides an intuitive syntax for defining digital circuits and a clean Python API for interacting with them.
|
|
3
|
+
A lightweight hardware description language and Python driver for digital circuit simulation. SHDL provides an intuitive syntax for defining digital circuits and a clean Python API for interacting with them (PySHDL).
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ A lightweight hardware description language and Python driver for digital circui
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
pip install
|
|
16
|
+
pip install PySHDL
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Quick Start
|
|
@@ -51,7 +51,7 @@ component Adder16(A[16], B[16], Cin) -> (Sum[16], Cout) {
|
|
|
51
51
|
### 2. Use in Python
|
|
52
52
|
|
|
53
53
|
```python
|
|
54
|
-
from
|
|
54
|
+
from PySHDL import Circuit
|
|
55
55
|
|
|
56
56
|
# Load and compile the circuit
|
|
57
57
|
circuit = Circuit("adder.shdl")
|
|
@@ -116,18 +116,19 @@ See the `examples/` directory for more complete examples:
|
|
|
116
116
|
- `SHDL_components/` - Reusable component library
|
|
117
117
|
|
|
118
118
|
## Documentation
|
|
119
|
-
|
|
119
|
+
Github repository: [rafa-rrayes/SHDL](https://github.com/rafa-rrayes/SHDL)
|
|
120
120
|
For more detailed documentation, see [DOCS.md](DOCS.md).
|
|
121
121
|
|
|
122
122
|
## Requirements
|
|
123
123
|
|
|
124
|
-
- Python >= 3.
|
|
124
|
+
- Python >= 3.9
|
|
125
125
|
- GCC or compatible C compiler (for circuit compilation)
|
|
126
126
|
|
|
127
127
|
## Author
|
|
128
128
|
|
|
129
129
|
**Rafa Rayes**
|
|
130
130
|
Email: rafa@rayes.com.br
|
|
131
|
+
GitHub: [rafa-rrayes](https://github.com/rafa-rrayes)
|
|
131
132
|
|
|
132
133
|
## Contributing
|
|
133
134
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "PySHDL"
|
|
3
|
-
version = "0.1.
|
|
4
|
-
description = "SHDL (Simple Hardware Description Language) is a minimal HDL designed for creating digital circuits and easily simulating them. It compiles directly to C for maximum performance and portability."
|
|
3
|
+
version = "0.1.3"
|
|
4
|
+
description = "SHDL (Simple Hardware Description Language) is a minimal HDL designed for creating digital circuits and easily simulating them. It compiles directly to C for maximum performance and portability. PySHDL is the Python interface for SHDL."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
7
7
|
{ name = "rafa-rrayes", email = "rafa@rayes.com.br" }
|
|
@@ -9,8 +9,13 @@ authors = [
|
|
|
9
9
|
requires-python = ">=3.9"
|
|
10
10
|
dependencies = []
|
|
11
11
|
|
|
12
|
+
[project.urls]
|
|
13
|
+
Homepage = "https://github.com/rafa-rrayes/SHDL"
|
|
14
|
+
Repository = "https://github.com/rafa-rrayes/SHDL"
|
|
15
|
+
Documentation = "https://github.com/rafa-rrayes/SHDL/blob/master/DOCS.md"
|
|
16
|
+
|
|
12
17
|
[project.scripts]
|
|
13
|
-
shdlc = "
|
|
18
|
+
shdlc = "PySHDL.cli:main"
|
|
14
19
|
|
|
15
20
|
[build-system]
|
|
16
21
|
requires = ["hatchling"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""PySHDL library."""
|
|
2
2
|
|
|
3
3
|
from importlib import import_module
|
|
4
4
|
from importlib.metadata import PackageNotFoundError, version
|
|
@@ -16,6 +16,6 @@ __all__ = [
|
|
|
16
16
|
"__version__",
|
|
17
17
|
]
|
|
18
18
|
try:
|
|
19
|
-
__version__ = version("
|
|
19
|
+
__version__ = version("PySHDL")
|
|
20
20
|
except PackageNotFoundError:
|
|
21
21
|
__version__ = "0.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|