1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Add documentation on clock info register block

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-02-01 18:49:52 -08:00
parent e4764bc600
commit c396da2ebc
2 changed files with 92 additions and 1 deletions

View File

@ -0,0 +1,91 @@
.. _rb_clk_info:
=========================
Clock info register block
=========================
The clock info register block has a header with type 0x0000C008, version 0x00000100, and contains information about clocks in the design.
.. table::
=========== ============= ====== ====== ====== ====== =============
Address Field 31..24 23..16 15..8 7..0 Reset value
=========== ============= ====== ====== ====== ====== =============
RBB+0x00 Type Vendor ID Type RO 0x0000C008
----------- ------------- -------------- -------------- -------------
RBB+0x04 Version Major Minor Patch Meta RO 0x00000100
----------- ------------- ------ ------ ------ ------ -------------
RBB+0x08 Next pointer Pointer to next register block RO -
----------- ------------- ------------------------------ -------------
RBB+0x0C Channel count Channel count RO -
----------- ------------- ------------------------------ -------------
RBB+0x10 Ref period Ref per num Ref per denom RO -
----------- ------------- -------------- -------------- -------------
RBB+0x18 Clk period Clk per num Clk per denom RO -
----------- ------------- -------------- -------------- -------------
RBB+0x1C Clk freq Core clock frequency (Hz) RO -
----------- ------------- ------------------------------ -------------
RBB+0x20+4n Channel freq Channel clock frequency (Hz) RO -
=========== ============= ============================== =============
See :ref:`rb_overview` for definitions of the standard register block header fields.
.. object:: Channel count
The channel count field contains the number of clocks, excluding the core and reference clocks.
.. table::
======== ====== ====== ====== ====== =============
Address 31..24 23..16 15..8 7..0 Reset value
======== ====== ====== ====== ====== =============
RBB+0x0C Channel count RO -
======== ============================== =============
.. object:: Reference clock period
The reference clock period field contains the nominal period of the reference clock in nanoseconds as a fractional value, consisting of a 16-bit numerator and a 16-bit denominator.
.. table::
======== ====== ====== ====== ====== =============
Address 31..24 23..16 15..8 7..0 Reset value
======== ====== ====== ====== ====== =============
RBB+0x10 Ref per num Ref per denom RO -
======== ============== ============== =============
.. object:: Core clock period
The core clock period field contains the nominal period of the core clock in nanoseconds as a fractional value, consisting of a 16-bit numerator and a 16-bit denominator.
.. table::
======== ====== ====== ====== ====== =============
Address 31..24 23..16 15..8 7..0 Reset value
======== ====== ====== ====== ====== =============
RBB+0x18 Clk per num Clk per denom RO -
======== ============== ============== =============
.. object:: Core clock frequency
The core clock frequency field contains the measured core clock frequency in Hz, measured relative to the reference clock.
.. table::
======== ====== ====== ====== ====== =============
Address 31..24 23..16 15..8 7..0 Reset value
======== ====== ====== ====== ====== =============
RBB+0x1C Core clock frequency (Hz) RO -
======== ============================== =============
.. object:: Channel clock frequency
The channel clock frequency fields contain the measured channel clock frequency in Hz, measured relative to the reference clock. There is one register per channel.
.. table::
=========== ====== ====== ====== ====== =============
Address 31..24 23..16 15..8 7..0 Reset value
=========== ====== ====== ====== ====== =============
RBB+0x20+4n Channel clock frequency (Hz) RO -
=========== ============================== =============

View File

@ -70,7 +70,7 @@ The NIC register space is constructed from a linked list of register blocks. Ea
0x0000C005 0x00000200 :ref:`rb_app_info`
0x0000C006 0x00000100 stats
0x0000C007 0x00000100 IRQ config
0x0000C008 0x00000100 Clock info
0x0000C008 0x00000100 :ref:`rb_clk_info`
0x0000C010 0x00000100 :ref:`rb_cqm_event`
0x0000C020 0x00000100 :ref:`rb_qm_tx`
0x0000C021 0x00000100 :ref:`rb_qm_rx`