Commit 9aa8d2d
committed
Minor
* The concatenated value can be set with the special `kwarg` "_value". This is
useful when the `wire_struct`'s class name is not known.
* Changes to make `wire_structs` documentable with Sphinx. The generated class
copies documentation from the decorated class (`__doc__`), and the generated
class's name now matches the decorated class's name. Previously all
`wire_struct` classes were named `_WireStruct`.
* Add a new `class_name` argument to `wire_matrix`. This lets users set the
name of the generated class. This is optional for backwards compatibility,
but highly recommended to help with debugging. Previously all `wire_matrix`
classes were named `_WireMatrix`.wire_struct improvements:1 parent 4ace6d3 commit 9aa8d2d
5 files changed
Lines changed: 301 additions & 265 deletions
File tree
- examples
- ipynb-examples
- pyrtl
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
0 commit comments