Skip to content

Commit

Permalink
docs: Add redered wavedrom svgs
Browse files Browse the repository at this point in the history
Add SVG for all previously committed wavedrom diagrams:
axi_pwm_gen, axi_ad485x, add_dds, up_interface
axi_jesd204_rx, axi_jesd204_tx, axi_ad7616, axi_ad7606x

The source code is kept as a comment block.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Jan 13, 2025
1 parent 610dce3 commit 267ea02
Show file tree
Hide file tree
Showing 33 changed files with 196 additions and 56 deletions.
18 changes: 12 additions & 6 deletions docs/library/axi_ad485x/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ all of the 8 channels and lanes enabled.

There are no extra definitions for the LVDS interface compared to the datasheet.

.. wavedrom::
.. wavedrom
{ "signal" : [
{ "name": "cnvs", "wave": "010.................................."},
Expand All @@ -259,10 +259,13 @@ There are no extra definitions for the LVDS interface compared to the datasheet.
{ "name": "data 5", "wave": "z...............................4....","data":["ch 5"]},
{ "name": "data 6", "wave": "z...............................4....","data":["ch 6"]},
{ "name": "data 7", "wave": "z...............................4....","data":["ch 7"]},
],
foot: {text: ['tspan', 'all lanesi(8) all channels(8) active']}}
]}
.. wavedrom::
.. figure:: wavedrom-1.svg

all lanesi(8) all channels(8) active.

.. wavedrom
{ "signal" : [
{ "name": "cnvs", "wave": "010.......|.................10......."},
Expand All @@ -286,8 +289,11 @@ There are no extra definitions for the LVDS interface compared to the datasheet.
{ "name": "data 5", "wave": "z..........................4.........","data":["ch 5"]},
{ "name": "data 6", "wave": "z..........................4.........","data":["ch 6"]},
{ "name": "data 7", "wave": "z..........................4.........","data":["ch 7"]},
],
foot: {text: ['tspan', 'all lanesi(8) all channels(8) active']}}
]}
.. figure:: wavedrom-2.svg

All lanesi(8) all channels(8) active.

Register Map
--------------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions docs/library/axi_ad485x/wavedrom-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad485x/wavedrom-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 26 additions & 9 deletions docs/library/axi_ad7606x/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ operation followed by a write operation.
:adi:`AD7606C-18` chip can be obtained from the page 12 of the
:adi:`AD7606C-18 Datasheet <media/en/technical-documentation/data-sheets/ad7606c-18.pdf>`.

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CS_N', wave:'1.0......|......1..'},
Expand All @@ -148,13 +148,15 @@ operation followed by a write operation.
]
}
.. image:: wavedrom-1.svg

The following timing diagrams illustrate available ADC read modes using the
AD7606x family devices.

ADC Read Mode (AD7606B/C-16)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -166,10 +168,12 @@ ADC Read Mode (AD7606B/C-16)
]
}
.. image:: wavedrom-2.svg

ADC Read Mode (AD7606C-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -181,10 +185,12 @@ ADC Read Mode (AD7606C-18)
]
}
.. image:: wavedrom-3.svg

ADC Read Mode with CRC enabled (AD7606B/C-16)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -196,11 +202,12 @@ ADC Read Mode with CRC enabled (AD7606B/C-16)
]
}
.. image:: wavedrom-4.svg

ADC Read Mode with CRC enabled (AD7606C-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -212,10 +219,12 @@ ADC Read Mode with CRC enabled (AD7606C-18)
]
}
.. image:: wavedrom-5.svg

ADC Read Mode with Status enabled (AD7606B/C-16)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -228,10 +237,12 @@ ADC Read Mode with Status enabled (AD7606B/C-16)
]
}
.. image:: wavedrom-6.svg

ADC Read Mode with Status enabled (AD7606C-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|......01.'},
Expand All @@ -258,10 +269,12 @@ ADC Read Mode with Status enabled (AD7606C-18)
]
}
.. image:: wavedrom-7.svg

ADC Read Mode with Status and CRC enabled (AD7606B/C-16)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|..........01.'},
Expand All @@ -274,10 +287,12 @@ ADC Read Mode with Status and CRC enabled (AD7606B/C-16)
]
}
.. image:: wavedrom-8.svg

ADC Read Mode with Status and CRC enabled (AD7606C-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. wavedrom::
.. wavedrom
{signal: [
{name: 'CNVST_N', wave: '1..01...........|..........01.'},
Expand All @@ -304,6 +319,8 @@ ADC Read Mode with Status and CRC enabled (AD7606C-18)
]
}
.. image:: wavedrom-9.svg

Software Support
-------------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-7.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7606x/wavedrom-9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 15 additions & 14 deletions docs/library/axi_ad7616/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ signal, that is available in the *up_adc_common* module, controls burst_length.

Software Parallel Mode Channel Conversion Setting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. wavedrom::
.. wavedrom
{signal: [
{name: 'RESET_N', wave:'101................'},
Expand All @@ -122,37 +122,38 @@ Software Parallel Mode Channel Conversion Setting
{name: 'WR_N', wave:'1.....01..............01..............', "period" :0.5},
{name: 'RD_N', wave:'1.................0101................', "period" :0.5},
{name: 'DB[0:15]', wave:'z.....=.z.........=.=.=.z.........|.....', data: ['CHx',"A0","B0","CHy"], "period" :0.45}
],
foot: {text:
['tspan', 'CHx CONVERSION START']
}
}
]}
.. figure:: wavedrom-1.svg

CHx CONVERSION START

Parallel Read Timing Diagram
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. wavedrom::
.. wavedrom
{signal: [
{signal: [
{name: 'CNVST', wave:'010..........10....'},
{name: 'BUSY', wave:'0..1......0................1......0...', "period" :0.5},
{name: 'CS_N', wave:'1..........0..1..0..1..............0..', "period" :0.5},
{name: 'RD_N', wave:'1......................01........01................................01.', "period" :0.25},
{name: 'DB[0:15]', wave:'z.....=.z=.z.......', data: ['CONVA',"CONVB","B0","CHy"], "period" :1,"phase":-0.1}
]
}
]}
.. image:: wavedrom-2.svg

Parallel Write Timing Diagram
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. wavedrom::
.. wavedrom
{signal: [
{signal: [
{name: 'CNVST', wave:'0..........................1..0', "period" :0.5},
{name: 'CS_N', wave:'1......0.....1.....0.....1.....', "period" :0.5},
{name: 'WR_N', wave:'1......0...1.......0...1......', "period" :0.5,"phase":-0.5},
{name: 'DB[0:15]', wave:'z..=.z.=.z.', data: ['WRITE REG 1',"WRITE REG 2","B0","CHy"], "period" :1.3,"phase":0.7}
]
}
]}
.. image:: wavedrom-3.svg

Software Support
--------------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions docs/library/axi_ad7616/wavedrom-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7616/wavedrom-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_ad7616/wavedrom-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 21 additions & 11 deletions docs/library/axi_pwm_gen/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Timing Diagrams and examples
The timing diagram below, shows the ``load_config`` functionality with
force align and start at sync disabled.

.. wavedrom::
.. wavedrom
{ "signal" : [
{ "name": "clk", "wave": "P................................"},
Expand All @@ -191,10 +191,12 @@ force align and start at sync disabled.
{ "name": "pwm 1", "wave": "l....h..l......................h."},
]}
.. image:: wavedrom-load_config.svg

The timing diagram below, shows the ``load_config`` functionality with
force align disabled and start at sync enabled.

.. wavedrom::
.. wavedrom
{ "signal" : [
{ "name": "clk", "wave": "P.............................."},
Expand All @@ -212,10 +214,12 @@ force align disabled and start at sync enabled.
{ "name": "pwm 1", "wave": "l....h..l............h....l...."},
]}
.. image:: wavedrom-load_config-start_at_sync.svg

The timing diagram below, shows the ``load_config`` functionality with
force align and start at sync enabled.

.. wavedrom::
.. wavedrom
{ "signal" : [
{ "name": "clk", "wave": "P.............................."},
Expand All @@ -233,9 +237,11 @@ force align and start at sync enabled.
{ "name": "pwm 1", "wave": "l....h..l....hl...h....l....h.."},
]}
.. image:: wavedrom-load_config-force_align-start_at_sync.svg

The below timing diagrams, shows the ``external_sync`` functionality:

.. wavedrom::
.. wavedrom
{ "signal" : [
{ "name": "clk", "wave": "P............................"},
Expand All @@ -251,11 +257,13 @@ The below timing diagrams, shows the ``external_sync`` functionality:
{ "name": "pwm 0", "wave": "l......h..l....h..l....h..l.."},
{ "name": "counter 1", "wave": "=..........44444445555555544=","data":["1","2","3","4","5","6","7","8","1","2","3","4","5","6","7","8","1","2"]},
{ "name": "pwm 1", "wave": "l..........h..l....h..l....h."},
],
foot: {text: ['tspan', 'External sync, start at sync (default) e.g.'],
}}
]}
.. figure:: wavedrom-external_sync-start_at_sync.svg

.. wavedrom::
External sync, start at sync (default).

.. wavedrom
{ "signal" : [
{ "name": "clk", "wave": "P............................"},
Expand All @@ -271,9 +279,11 @@ The below timing diagrams, shows the ``external_sync`` functionality:
{ "name": "pwm 0", "wave": "l.............h..l....h..l..."},
{ "name": "counter 1", "wave": "=..........44444445555555544=","data":["1","2","3","4","5","6","7","8","1","2","3","4","5","6","7","8","1","2"]},
{ "name": "pwm 1", "wave": "l.................h..l....h.."},
],
foot: {text: ['tspan', 'External sync without start at sync e.g.'],
}}
]}
.. figure:: wavedrom-external_sync.svg

External sync without start at sync.

Register Map
--------------------------------------------------------------------------------
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_pwm_gen/wavedrom-external_sync.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/axi_pwm_gen/wavedrom-load_config.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/library/common/ad_dds/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ equal to the CLOCK_RATIO.

.. image:: fw_sync_basics.svg

.. wavedrom::
.. wavedrom
{
"signal" : [
Expand All @@ -302,12 +302,12 @@ equal to the CLOCK_RATIO.
{ "name": "tone 2 gen2", "wave": "=.........5=55|5555555","data":["","i2","","i2+","i2+","i2+","..."]},
{ "name": "tone 2 gen3", "wave": "=..........555|5555555","data":["","i3","i3+","i3+","i3+","..."]},
{ "name": "tone 2", "wave": "=.......======|5555555","data":["","0","0","0","0","0","...","s0-3","s4-8","s8-C","..."]},
],
foot: {
text: ['tspan', 'Frequency word sync at CLK_RATIO=4'],
}
]
}
.. figure:: wavedrom.svg

text: ['tspan', 'Frequency word sync at CLK_RATIO=4'],

In the above diagram example:

Expand Down
4 changes: 4 additions & 0 deletions docs/library/common/ad_dds/wavedrom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/library/jesd204/axi_jesd204_rx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ signal, but not the TREADY flow control signal. The behavior of the interface is
as if the TREADY signal was always asserted. This means as soon as ``rx_valid``
is asserted, a continuous stream of user data must be accepted from ``rx_data``.

.. wavedrom::
:align: center
.. wavedrom
{
signal: [
Expand All @@ -296,6 +295,8 @@ is asserted, a continuous stream of user data must be accepted from ``rx_data``.
}
}
.. image:: wavedrom-1.svg

After reset and during link initialization, the ``rx_valid`` signal is
deasserted. As soon as the User Data Phase is entered, the ``rx_valid`` will be
asserted to indicate that the peripheral is now providing the processed data
Expand Down Expand Up @@ -525,10 +526,7 @@ local-multiblock-clock (LEMC). A setting of 0 indicates that the release
opportunity is aligned to the LMFC/LEMC edge. A setting of X indicates that it
trails the LMFC/LEMC edge by X octets.

.. wavedrom::
:scale: 100%
:align: center

.. wavedrom
{
signal: [
{ name: "device_clk", wave: 'P.........' },
Expand All @@ -538,6 +536,8 @@ trails the LMFC/LEMC edge by X octets.
edge: ['a~>b BUFFER DELAY/4']
}
.. image:: wavedrom-2.svg

The ``BUFFER_DELAY`` field must be set to a multiple of 4. Writing a value that
is not a multiple of 4 will be rounded down to the next multiple of 4. For
correct operation, the ``BUFFER_DELAY`` field must also be set to a value
Expand Down
4 changes: 4 additions & 0 deletions docs/library/jesd204/axi_jesd204_rx/wavedrom-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/library/jesd204/axi_jesd204_rx/wavedrom-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 267ea02

Please sign in to comment.