How to Check Which I/O Cards Are Installed in Your OPAL-RT Simulator

How to Check Which I/O Cards Are Installed in Your OPAL-RT Simulator

Why check your I/O cards?

Your simulator’s I/O cards are how it talks to the outside world (analog and digital signals, communication, and so on). The bitstream loaded on the FPGA tells the simulator which cards to expect in each slot. If the installed cards don’t match the bitstream, your I/O may not behave as expected.

This tutorial shows you how to see exactly which cards are in each slot, and whether they match your bitstream. It only reads information from your simulator and doesn’t change or reprogram anything, so it’s safe to run anytime. :slightly_smiling_face:

:fire:Heads up: RT-LAB and HYPERSIM check I/O cards in slightly different ways, so this tutorial has two sections. Jump to the one you use:

  • PART 1 : TARGETS CONNECTED TO RT-LAB AND HYPERSIM
  • PART 2 : HYPERSIM ONLY CONNECTED TARGET

Quick overview

Connect to your target → Get your Chassis ID → List your I/O cards


PART 1: RT-LAB

OVERALL DIRECTION: Connect to target → Get Chassis ID → List I/O cards

Step 1: Ensure your Target is connected to RT-lab and active

Make sure your simulator (target) is connected to RT-LAB or HYPERSIM. New to this? Learn how to connect your target here

Step 2: Find your board’s Chassis ID.

  • Right-click on your Target
  • Select Tools > Get I/O infos
  • Under Console, your output should look like below. Look out for Board ID

WHY? Your simulator can have more than one FPGA board, so you need the Chassis ID to tell the command which board to check.

Step 3: Find I/O cards on that board

  • Right-click on the target
  • Select Execute > Command ( This will open console)
  • Run this command, replacing 0 with your Chassis ID from Step 1:
/usr/opalrt/common/bin/flash_update -hinfo 0

The command output should look similar to the example below. In the table, each row is one slot section on the board (Group = slot number, Side = A or B). The Card column shows which I/O card is installed there, and EMPTY means nothing is installed in that section.

:warning: If you see Hardware mismatch lines below the table, the cards installed don’t match what the loaded bitstream expects. For example, the bitstream expects a card in a slot that’s empty.


PART 2: HYPERSIM

OVERALL DIRECTION: Connect to target → Get Chassis ID → List I/O cards

:police_car_light: This section is for simulators that only have HYPERSIM installed. If RT-LAB is also installed on the target, you can follow Part 1 instead.

Step 1: Connect to your target with MobaXterm

  • Open an SSH session to your simulator’s IP address. New to this? Here’s how to connect to your target on MobaXterm.
  • HYPERSIM doesn’t have an “Execute > Command” option like RT-LAB, so you’ll run the commands directly on the target.

Step 2: Find your board’s Chassis ID

You can do this in either of two ways:

1. THROUGH HYPERSIM:

Go to Target Manager > your simulator IP > Refresh FPGA. This shows the FPGA type and the Chassis ID.

2. In MobaXterm:

In command, run. Use the following command, replace hypersim-target_R6.0.6.o403 with the correct version of your HYPERSIM installation:

/export/local/ssr/hypersim-target_R6.0.6.o403/linux-rhel5-32-opalrt/HyServer/bin/flashupdate -hinfo <board id>

:light_bulb: If you aren’t sure of your version:
Run ls /export/local/ssr/ to see the folder name, for example hypersim-target_R6.0.6.o403, and copy it into the command.

WHY? Your simulator can have more than one FPGA board, so you need the Chassis ID to tell the command which board to check.

Step 3: List the I/O cards on that board

In MobaXterm, run this command, replacing <version> with your HYPERSIM version and 0 with your Chassis ID from Step 2:

/export/local/ssr/hypersim-target_<version>/linux-rhel5-32-opalrt/HyServer/bin/flashupdate -hinfo 0

The command output should look similar to the example below. In the table, each row is one slot section on the board (Group = slot number, Side = A or B). The Card column shows which I/O card is installed there, and EMPTY means nothing is installed in that section.

:warning: If you see Hardware mismatch lines below the table, the cards installed don’t match what the loaded bitstream expects. For example, the bitstream expects a card in a slot that’s empty.

3 Likes

@sorfina it’s great.

1 Like