Wiki

This version (10 Oct 2023 19:51) was approved by Gireesha Nirvanaiah.The Previously approved version (08 Dec 2022 13:36) is available.Diff

Click here to return to the QSG homepage

APPENDIX C: Network Analysis and Debug

Bandwidth Calculation

The Bandwidth calculation tab allows user to estimate the total bandwidth used in the A2B network. Bandwidth calculation is useful to design an efficient A2B network.

The following steps are involved in Bandwidth calculation

  1. Create an A2B schematic (or open an existing A2B Schematic project) in SigmaStudio Plus.
  2. Navigate to “Bandwidth Calculations” tab under “Networks → A2B” in “Project window as shown in Figure 62.
  3. Enter required details (Cable delay and Sampling Rate parameters) for calculation. Other values required for Bandwidth calculation like Slot format, data width and number of upstream /downstream slots etc. will be picked up from the device properties window settings.
  4. Press Run button to get the bandwidth information as shown in Error! Reference source not found.. Figure 72: Bandwidth Calculation
  5. Press Save button to store the results in a text file.
  6. Optionally, user can edit Main node response cycles (RESPCYCS) to better utilize the overall bandwidth.
  7. Reset button can be pressed to clear the results and rerun the calculation.

Bandwidth Breakdown chart

The “Chart Breakdown” tab allows user to get a breakdown chart, which will have detail of operation of each node.

  1. After following step1 to step 4 of C.1 Bandwidth Calculation, select “Chart Breakdown” tab to get breakdown chart as shown in Figure 73: Bandwidth breakdown chart.

Figure 73: Bandwidth breakdown chart

Power Calculation

Overall power consumption of the A2B network can be estimated using the Power Calculation tab. Power calculation can assist board designers in estimating power requirements for power supply design.

The following steps are involved in Power calculation

  1. Create an A2B schematic (or open an existing A2B Schematic project) in SigmaStudio.
  2. Set power source and cable length in the Node ‘Device Properties’ window as shown in Figure 74 Figure 74: Power Source
  3. Navigate to “Power Calculations” tab under “Networks → A2B” in “Project window as shown in Figure 62.
  4. Provide values for power calculation parameters of each A2B node in the system. Select the desired power calculation Mode.
  5. Press Run button to get the power consumption information as shown in Figure 75 Figure 75: Power Calculation
  6. Press Save button to store the results in a text file.

Power Breakdown chart

The “Power Breakdown” tab allows user to get a breakdown chart, which will have detail of power requirement of each node.

  1. After following step1 to step 5 of C.2 Power Calculation, select “Power Breakdown” tab to get breakdown chart as shown in Figure 76.

Figure 76: Power Breakdown chart

Bit Error Rate (BERT) Monitoring

Bit errors generated over an A2B network can be monitored in the GUI. BERT calculation is useful to design an efficient error-free A2B network. BERT is supported both via I2C and SPI interfaces.

The following steps are involved in Bandwidth calculation

  1. Create an A2B schematic (or open an existing A2B Schematic project) in SigmaStudio.
  2. Navigate to “BERT” tab under “Networks → A2B” in “Project window as shown in Figure 62.
  3. Select the Bit Stream type to be monitored for errors. Select ‘Pseudo Random’ option to monitor errors on pseudo random bit stream else select ‘Audio’ option to monitor errors on actual audio bit stream.
  4. Select required errors to be monitored and make required display settings. Refer to the tool tip for more information by hovering the mouse pointer over the fields.
    • Display Update Rate (s) defines the rate at which error counts are read and updated on the display.
    • Graph Display Mode sets the BERT graph display mode to either Time vs. Bit error count or Time vs. Bit error ratio.
  5. Press Run button to get the bit error information as shown in Figure 77. Figure 77: BERT Calculation
  6. Optionally, Bit errors can be generated from Generate Error Tab.
  7. Press Save button to store the results in a text file.
  8. Optionally, Reset button can be pressed to clear the results and restart the calculation.

Debug

Trace

The Trace option in the Network properties window show in Figure 61 enables user to log various transactions and network events into a .txt file. Upon enabling this feature the A2B stack running inside SigmaStudio Plus captures all transactions as per the ‘Level’ and ‘Domain’ set. Figure 78 shows a sample Trace file generated for selected Level (Debug, Info, Trace3) and Domain (Plugin, Message, I2C). The Trace file gets saved inside the ‘Settings’ folder corresponding to the A2B schematic project file location.

Figure 78: Sample Trace file

Sequence Chart

The Sequence Chart option in the Network properties window show in Figure 61 enables user to view various transactions and network events as a rich graphical sequence diagram (.png).

The sequence diagram shows interactions between different stack modules arranged in time sequence and the messages exchanged between the stack modules to discover, configure and handle various network events.

The Sequence Chart file gets saved inside the ‘Settings’ folder corresponding to the A2B schematic project file location.

Following prerequisites shall be ensured to generate the sequence chart upon discovery completion.

Prerequisites:

  • Ensure ‘postProcessUML.exe’ and ‘plantuml.jar’ from A2B release package («A2B plugin for SigmaStudio+ installation path»\\GUI) are copied to C:\ProgramData\Analog Devices\SigmaStudio X.Y\Add-Ons
  • Set the PATH environment variable for running ‘java.exe’ (Most of the times they are set by default)
    • C:\Program Files (x86)\Java\jre«xx»\bin

Figure 79: Setting Path in Environment Variables

If the prerequisites are met and sequence chart option is enabled in the Network properties tab, then upon successful discovery of A2B network, the Sequence chart will be generated which can be viewed by clicking on the View button. A Sequence chart generated for a 3 node sample demo schematic is shown in Figure 80.

Figure 80: Sequence Chart Sample

If the prerequisites are not met, then a pop up window will display the error message as shown in Figure 81.

Figure 81: Error Message – Sequence Chart Prerequisites not met

resources/tools-software/a2bv2/quickstartguide/appendix-c.txt · Last modified: 06 Oct 2023 11:04 by Gireesha Nirvanaiah