MACsec Intel® FPGA System Design User Guide

ID 767516
Date 10/02/2023
Public

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

Document Table of Contents

7.9. Running UVM Simulation

Follow these steps to run Synopsys UVM simulation. These steps are only applicable if your Synopsys simulator supports UVM simulation.

  1. Before running the steps below, you must follow steps 1-4 of the Running Verilog Simulation section.
  2. Go to $SRD_ROOTDIR/verification/testbench.
  3. Run the makefile for your corresponding design.
    • For E-tile: make -f Makefile.mk cmplib
    • For F-tile: make -f Makefile.mk cmplib MACSEC_SRD_FTILE=1
  4. Run the following simulation command for your corresponding design. The simulation is run using a Makefile. Refer to the following for some example commands and explanation of Makefile targets, options, and behaviors.

Example commands:

  • For E-tile:
    • To build and run in a single step for a 25G design:
      make -f Makefile.mk build run
      TESTNAME=macsec_srd_csr_hw_rst_test DUMP=1 25G=1
    • To build and run in a single step for a 100G design:
      make -f Makefile.mk build ru
      TESTNAME=macsec_srd_csr_hw_rst_test DUMP=1
  • For F-tile:
    • To build and run in a single step for a 25G design:
      make -f Makefile.mk build run
      TESTNAME=macsec_srd_csr_hw_rst_test DUMP=1 25G=1
      MACSEC_SRD_FTILE=1
    • To build and run in a single step for a 100G design:
      make -f Makefile.mk build ru
      TESTNAME=macsec_srd_csr_hw_rst_test DUMP=1
      MACSEC_SRD_FTILE=1
Table 13.  Makefile Behavior
Makefile Tasks Options
Makefile targets for running tests
  • build: Compiles the design and the testbench.
  • run: Executes the simulation.
Makefile target options
  • TESTNAME: Mandatory option to provide the test to be run out of a list of test cases.
  • DUMP: Enables waveform dumping.
    Note: This is a mandatory option (due to simulation limitation) that must be added when calling the build target of the Makefile.
  • MSG: Sets the UVM messaging verbosity, such as UVM_LOW/UVM_HIGH/UVM_DEBUG.
  • MACSEC_SRD_FTILE: Mandatory option for F-Tile simulation.
  • 25G: Mandatory option to run 25G. Otherwise, 100G is auto-selected.

Running build and make targets in a single step with DUMP=1 enables waveform dump generation.

To avoid waveform dump generation, you can call the "make targets" separately. For example, for a 25G design:
make -f Makefile.mk build DUMP=1 25G=1
make -f Makefile.mk run
TESTNAME=macsec_srd_csr_hw_rst_test

You can also add DUMP=1 to run target if you desire waveform dumping.