Example | OP4810-IO/OP4815-IO with OP48H30

Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Example | OP4810-IO/OP4815-IO with OP48H30

Page Contents


Location

This example model is available in the software under the "IO Interfaces" category, with the file name: OP4810_OP4815_Integration_OP48H30.ecf.

Description

This example project demonstrates how to use the OPAL-RT Board interface to interact with the various I/O types—Analog, Static Digital, Pulse Width Modulation (PWM), and Time-Sampled Digital (TSD)—provided by the OP48H30 High Density I/O module. Two OP48H30 modules can be mounted in an OP48XX FPGA expansion chassis, such as the OP4810-IO or OP4815-IO.

More information can be found in the Hardware Products Documentation about OPAL-RT hardware products:

To execute this example project, you will need:

  • One OPAL-RT Simulator, that supports I/O expansion chassis.

  • One OP48XX expansion chassis, with two OP48H30 modules.

  • One PCIe cable, between the OPAL-RT Simulator and the OP48XX expansion chassis.

  • Two Ethernet cables:

    • One between the OPAL-RT Simulator and the Windows Host network.

    • One between the OP48XX expansion chassis and the Windows Host network or with the OPAL-RT Simulator.

  • Two OP8331 splitter cables, at least. A complete setup for all I/O’s on both slots will require eight cables.

  • One DB37 gender changers or cable, at least. A complete setup for all I/O’s on both slots will require six cables.

OP48XX Expansion Chassis

  • Connect the OP48XX chassis to a real-time simulator using the PCIe cable.

  • Connect the OPAL-RT simulator to the same network as the host using an Ethernet cable.

  • Connect the OP48XX chassis to the network, or to a local network with the OPAL-RT simulator, using an Ethernet cable.

  • An OP48XX chassis has two H-factor mezzanine module slots. For this example, both slots should have an OP48H30 I/O Module installed.

OP48H30 module connectors (one slot)

To set up I/O’s loop-backs, you will need to connect an OP8331 splitter cable to each targeted module slot connector.

splitterDB62M_DB37F_small.png
OP8331 splitter cable connectors

 

OP48H30 Slot Connectors

OP8331 Splitter Cable Connectors

OP48H30 Slot Connectors

OP8331 Splitter Cable Connectors

P1 (Ain Ch. 00-15 / Aout Ch. 00-15)

P1-B1 (Ain Ch. 00-15)

P1-B2 (Aout Ch. 00-15)

P2 (Dio Ch. 00-31)

P2-B1 (Dio Ch. 00-15)

P2-B2 (Dio Ch. 16-31)

P3 (Aout Ch. 16-47)

P3-B1 (Aout Ch. 16-31)

P3-B2 (Aout Ch. 32-47)

P4 (Dio Ch. 32-63)

P4-B1 (Dio Ch. 32-47)

P4-B2 (Dio Ch. 48-63)

OP48H30 I/O's Loop-backs

Each OP48H30 module supports 48 analog outputs but only 16 analog inputs. So there are three ways to set up an analog loop-back, depending on the analog outputs range targeted:

  • For analog outputs, range 00-15: connect between P1-B2 and P1-B1.

  • For analog outputs, range 16-31: connect between P3-B1 and P1-B1.

  • For analog outputs, range 32-47: connect between P3-B2 and P1-B1.

loopback_AIO.jpg
Loopbacks for Analog I/O’s

Each OP48H30 module also supports 64 configurable digital I/Os.

  • For Static digital I/O’s: connect between P4-B1 and P2-B1.

  • For PWM or TSD digital I/O’s: connect between P4-B2 and P2-B2.

loopback_DIO.jpg
Loopbacks for Digital I/O’s

I/O Interface Configuration

All OPAL-RT Board configurations are performed via HYPERSIM's GUI, under the “I/O Interface” section of the project.

image-20251022-201924.png
I/O Interface Configuration

Before starting the simulation, configure the following chassis information:

  • Chassis type: Only OP4810 (Versal) or OP4815 (Versal) are supported.

  • IP address and Chassis ID: Available on the OP48XX chassis LCD screen.

  • (Optional) Chassis name: Displayed on the OP48XX chassis LCD screen.

OP4815-LCD_screen.jpg
Use the menu button to display chassis information on LCD screen

You can also get this information by running the flashupdate -enumRemote command in an SSH session on the OPAL-RT real-time simulator.

root@rtserver:/usr/opalrt/common# /usr/opalrt/common/bin/flashupdate -enumRemote =================================================================== OPAL-RT FLASH UPDATE PROGRAM V2.6 OPAL-RT FLASH UPDATE RT-LAB path is /usr/opalrt/v2025.1.3.77 OPAL-RT TECHNOLOGIES INC. All rights reserved, Copyright 2015. Compiled on Mar 28 2025 ----- CENTRAL BOARD ----- VM1X02 board found (VendorID=0x1B2C, DeviceID=0x1402) PCI Index: 0 IRQ Number: 11 RT-XSG: 3.7.2.2 Chassis ID: 0 Card type: VM1X02_1402_5R Bus type: EX Minor ID: 1 Revision ID: 4 Speed 5GT/s Width x4 ARM Core: Software version: 1.3.0 Ethernet 1: MAC address: 54:91:AF:00:00:53 IP: 192.168.3.5 (Reachable) Netmask: 255.255.255.0 Gateway: 192.168.3.1 OPAL-RT Board: VM1X02 boards search done. OPAL-RT Board: XDMA registers mapped successfully. XDMA engine succesfully configured in Versal board with board index 0. PCIe detection of VM1X02 cards: XDMA engine succesfully configured in Versal board with board index 0. Board found with board index 0 Slot | Category | Card | More Information | 1 | 16DIN 16DOUT 8AIN 12/24AOUT | OP48H20 | STANDARD | 2 | 16DIN 16DOUT 8AIN 12/24AOUT | OP48H20 | STANDARD | Extra IO | DIN/DOUT | OP5969-1 | RS422 5V | No hardware mismatch found for this system. VM1X02 hardware search done. Bitstream supports Multi-System Expansion Link functionality (4 SFP channels available) Launching enumeration of remote boards.. ----- REMOTE BOARD(S) ----- Found 0 remote device(s) Enumeration of remote boards done
flashupdate.png
Chassis information from flashupdate command

 

Simulation and Results

The example model includes designs for each I/O type supported by the OP48H30 modules:

  • Analog I/Os

  • Static Digital I/Os

  • Pulse Width Modulated I/Os

  • Time-Sampled Digital I/Os

image-20251017-142159.png
OP48H30 Example project

For more details about the OPAL-RT Board configuration, please refer to the OPAL-RT Board I/O Interface documentation.

IO interface_help.png
OPAL-RT Board I/O Interface documentation link

After the simulation is started, Inputs and Outputs signals can be inspected and compared using the ScopeView tool. A predefined template file named OP40810_OP4815_Integration_OP48H30.svt is available in the example project directory.

image-20251022-195716.png
ScopeView predefined template file

Analog I/O’s

Each OP48H30 module has eight groups of eight analog I/O channels:

Two groups are analog inputs:

  1. Ain Channels 0-7 (connector P1)

  2. Ain channels 8-15 (connector P1)

Six groups are analog outputs:

  1. Aout channel 0-7 (connector P1)

  2. Aout channels 8-15 (connector P1)

  3. Aout channels 16-23 (connector P3)

  4. Aout channels 24-31 (connector P3)

  5. Aout channels 32-39 (connector P3)

  6. Aout channels 40-47 (connector P3)

image-20251022-200423.png
Analog I/O’s configuration

This example model defines eight reference analog signals that are sent to all groups of analog outputs in both slots, supporting any of the analog loop-back configurations.

image-20251017-204015.png
Analog IO's model

The ScopeView pages AIO1 and AIO2 display the 16 analog inputs for each slot. Each graph shows one analog input and its associated reference analog output.

image-20251017-144513.png
Analog IO’s ScopeView

Static Digital I/O’s

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Four of these groups are configured as static digital I/Os:

  1. Dio channels 0-7: static digital inputs (connector P2)

  2. Dio channels 8-15: static digital inputs (connector P2)

  3. Dio channels 32-39: static digital outputs (connector P4)

  4. Dio channels 40-47: static digital outputs (connector P4)

image-20251022-203825.png
Static Digital I/O’s configuration

This example model defines eight random binary reference signals that are sent to all groups of static digital outputs in both slots.

image-20251017-204040.png
Static Digital I/O's model

The ScopeView pages DIO1 and DIO2 display all static digital inputs, from channels 0 to 15. Each graph shows one static digital input and its associated reference random binary output.

image-20251017-151137.png
Static Digital I/O’s ScopeView

Pulse Width Modulated I/O’s

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Two of these groups are configured as Pulse Width Modulated I/Os:

  1. Dio channels 16-23: PWM digital inputs (connector P2)

  2. Dio channels 48-55: PWM digital outputs (connector P4)

image-20251022-203129.png
PWM I/O’s configuration

This example model defines eight frequencies (from 100 Hz to 800 Hz) and eight duty cycle ratios (from 0.1 to 0.8) that are sent to the PWM digital output group of each slot.

image-20251017-204115.png
PWM I/O’s model

The ScopeView pages PWMIO1 and PWMIO2 display the eight frequencies and the eight duty cycle ratios detected from the PWM digital input channels. Each graph shows the frequency or duty cycle ratio detected for an input channel and the associated reference value.

image-20251017-151158.png
PWM I/O’s ScopeView

Time Sampled Digital I/O’s

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Two of these groups are configured as Time-Sampled Digital I/Os:

  1. Dio channels 24-31: TSD Event Detector (connector P2)

  2. Dio channels 56-63: TSD Event Generator (connector P4)

image-20251022-203429.png
TSD I/O’s configuration

This example model defines eight reference sequences of events. Each sequence contains four events (rising, falling, rising, falling) at different ratio values.

image-20251017-204151.png
TSD I/O’s model
TSD I/O’s: one reference sequence of events

 

The ScopeView pages TSDIO1 and TSDIO2 display, side by side, the four ratio values of the events generated by an output channel and the ratio values of the events detected on the associated input channel. The types of events (rising or falling edges) are not shown.

image-20251017-151229.png
TSD I/O’s ScopeView