Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PYTHON=python
PYTHON=uv run python3
PY_FILES=$(wildcard *.py)
IPYNB_FILES=$(addprefix ../ipynb-examples/, $(PY_FILES:.py=.ipynb))

Expand Down
2 changes: 1 addition & 1 deletion examples/example1.2-wire-struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Pixel:
# `PixelPair` is a pair of two `Pixels`. This also shows how `wire_matrix()` and
# `wire_struct` work together - `PixelPair` is a `wire_struct` nested in a
# `wire_matrix()`.
PixelPair = pyrtl.wire_matrix(component_schema=Pixel, size=2)
PixelPair = pyrtl.wire_matrix(component_schema=Pixel, size=2, class_name="PixelPair")

# `wire_matrix()` returns a class!
assert inspect.isclass(PixelPair)
Expand Down
2 changes: 1 addition & 1 deletion ipynb-examples/example1.2-wire-struct.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
},
"outputs": [],
"source": [
"PixelPair = pyrtl.wire_matrix(component_schema=Pixel, size=2)\n"
"PixelPair = pyrtl.wire_matrix(component_schema=Pixel, size=2, class_name=\"PixelPair\")\n"
]
},
{
Expand Down
Loading
Loading