Example: the sample package¶
The page below is generated by running the extension over
tests/fixtures/sv/sample_pkg.sv — a small package that exercises classes,
inheritance, documented and inline-documented members, functions with
parameters, and tasks. The source of this page is just:
```{eval-rst}
.. autosvpackage:: sample_pkg
.. autosvclass:: sample_pkg::sample_base
:members:
.. autosvclass:: sample_pkg::sample_txn
:members:
```
Rendered output¶
- package sample_pkg[source]¶
sample_pkg: a small package exercising the Phase-1 feature set.
It contains a base class, a derived class with documented and undocumented members, a function with parameters, a task, and a typedef.
- class sample_txn extends sample_base[source]¶
A bus transaction.
Models a single read or write transfer on the sample bus, carrying an address and a data payload.