You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Memory and Simulation documentation. Lots of improvements:
Memory:
* Add `MemBlock` and `RomBlock` doctest examples.
* Rename `MemBlock` and `RomBlock`'s `__getitem__`` and ``__setitem__`` args to
improve readability and documentation.
* Convert `EnabledWrite` from `namedtuple` to `NamedTuple` so we can document
the fields and their types.
* Move some `MemBlock` documentation from constructor to class.
Simulation:
* Replace `FastSimulation` and `CompiledSimulation`'s copy-and-pasted
docstrings with references to `Simulation`'s docstrings.
* Add a note on how `FastSimulation` can sometimes be a better choice than
`CompiledSimulation`.
* Add documentation for `Simulation.tracer` and `SimulationTrace.trace`.
* Enable doctests for `simulation.py`.
* Do not display documentation for `CompiledSimulation.run`,
`SimulationTrace.add_step`, or `SimulationTrace.add_fast_step`, which are
implementation details.
* Move `enum_name` documentation to the `SimulationTrace` section.
Also:
* Add some documentation on `doctest` to `docs/README.md`.
* Add links to `conditional_assignment`, `working_block`
* In example blocks, the copy button no longer copies the sample output.
This additional documentation is pushed to https://ucsbarchlab.github.io/PyRTL/
30
-
by the `pages-build-deployment` GitHub Action. The additional documentation is
31
-
written in [GitHub MarkDown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax),
32
-
and is not described further in this README.
27
+
There is additional PyRTL documentation in the [`gh-pages`
28
+
branch](https://github.com/UCSBarchlab/PyRTL/tree/gh-pages). This additional
29
+
documentation is pushed to https://ucsbarchlab.github.io/PyRTL/ by the
30
+
`pages-build-deployment` GitHub Action. This additional documentation is
31
+
written HTML and is not described further in this README.
32
+
33
+
## Testing Documentation Examples
34
+
35
+
PyRTL's documentation contains many examples that are tested with
36
+
[`doctest`](https://docs.python.org/3/library/doctest.html). It is important to
37
+
test these examples so we can be sure that they keep working as we change the
38
+
code. These tests run via test fixtures called `TestDocTest`, see the example
0 commit comments