L- and H-Tile Avalon® Streaming and Single Root I/O Virtualization (SR-IOV) Intel® FPGA IP for PCI Express* User Guide

ID 683111
Date 10/27/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

9.4.10.6. shmem_chk_ok Function

The shmem_chk_ok function checks a block of BFM shared memory against a specified data pattern.

Location

altrpcietb_g3bfm_shmem.v

Syntax

result:= shmem_chk_ok(addr, mode, leng, init, display_error)

Arguments

addr

BFM shared memory starting address for checking data.

mode

Data pattern used for checking the data. Should be one of the constants defined in section “Shared Memory Constants” on page 18–35.

leng

Length, in bytes, of data to check.

init

This argument is reg [63:0].The necessary least significant bits are used for the data patterns that are smaller than 64-bits.

display_error

When set to 1, this argument displays the data failing comparison on the simulator standard output.

Return

Result

Result is 1-bit.

  • 1’b1 — Data patterns compared successfully
  • 1’b0 — Data patterns did not compare successfully