Example Design Creation, Simulation, and Device Image Generation - 1.5 English

Versal Devices Integrated 100G Multirate Ethernet MAC Subsystem Product Guide (PG314)

Document ID
PG314
Release Date
2022-01-10
Version
1.5 English
  1. Open the Vivado® Design Suite in GUI mode.
  2. Select File > Project > New.
  3. Create a new project with any Versal® device xcvc1902-vsva2197-2MP-e-S (for VCK190 Board) or xcvm1802-vsva2197-2MP-e-S (for VMK180 Board).

  4. Search for and select the MRMAC IP from the IP catalog.

  5. Customize the IP.
    1. For VCK190 bank 200, for the MRMAC site, select MRMAC X0Y0.

      Select MRMAC Configuration Preset as Switching Wide.



    2. Click the GT Information tab, and select GT RefCLK 322.26525. Then click OK to finish the IP customization.

  6. After customizing, the Generate Output Products window appears. Click Generate.

  7. After generating the IP, right-click mrmac_0 from the Design Sources and select Open IP Example Design.

  8. Specify the path where you want to save the example design, and click OK.

    The Vivado project opens with example design ‘mrmac_0’.



  9. Right-click Simulation and select Simulation settings.

    Select the Target simulator as required. The Vivado simulator is shown in the following figure.



  10. Once the simulation setup is done, click Run Behavior Simulation. Observe the simulation results and log on to the Tcl console.

    The example design simulation starts with a core speed of 100GE then does data sanity by sending and receiving few packets in loopback mode. Upon completion, it prints the MRMAC statistics and also the test status. Then, it switches to 50GE, 40GE, 4x25GE, 4x10GE, and repeats the same test.



    Once the simulation is successful, you can generate the bitstream for board validation.

  11. Write the constraints in the XDC file with respect to the selected device/board.

    For VCK190/VMK180, uncomment the following in the example design .xdc file:

    ###### Below is the constraints for VCK190 Board(xcvc1902-vsva2197-2MP-e-S-es1) example design MRMAC_X0Y0-GTY Bank 200 .  Uncomment below to use.
    ##### GTY Bank 200
    ##set_property PACKAGE_PIN AF2 [get_ports {gt_rxp_in[0]}]
    ##set_property PACKAGE_PIN AF1 [get_ports {gt_rxn_in[0]}]
    ##set_property PACKAGE_PIN AF7 [get_ports {gt_txp_out[0]}]
    ##set_property PACKAGE_PIN AF6 [get_ports {gt_txn_out[0]}]
    ##set_property PACKAGE_PIN AE4 [get_ports {gt_rxp_in[1]}]
    ##set_property PACKAGE_PIN AE3 [get_ports {gt_rxn_in[1]}]
    ##set_property PACKAGE_PIN AE9 [get_ports {gt_txp_out[1]}]
    ##set_property PACKAGE_PIN AE8 [get_ports {gt_txn_out[1]}]
    ##set_property PACKAGE_PIN AD2 [get_ports {gt_rxp_in[2]}]
    ##set_property PACKAGE_PIN AD1 [get_ports {gt_rxn_in[2]}]
    ##set_property PACKAGE_PIN AD7 [get_ports {gt_txp_out[2]}]
    ##set_property PACKAGE_PIN AD6 [get_ports {gt_txn_out[2]}]
    ##set_property PACKAGE_PIN AC4 [get_ports {gt_rxp_in[3]}]
    ##set_property PACKAGE_PIN AC3 [get_ports {gt_rxn_in[3]}]
    ##set_property PACKAGE_PIN AC9 [get_ports {gt_txp_out[3]}]
    ##set_property PACKAGE_PIN AC8 [get_ports {gt_txn_out[3]}]
    ### GTREFCLK 0 Configured as Output (Recovered Clock) which connects to 8A34001 CLK1_IN
    ### GTREFCLK 1 ( Driven by 8A34001 Q1 )
    ##set_property PACKAGE_PIN AD11 [get_ports {gt_ref_clk_p}]
    ##set_property PACKAGE_PIN AD10 [get_ports {gt_ref_clk_n}]
    
  12. Click Generate Device Image. It starts from synthesis and implementation, then the image (.pdi) is generated.
  13. After generating the image, export the hardware for application creation by navigating to File > Export > Export Hardware.

    The Export window opens.

  14. Select Fixed and include device image.
  15. Generate the .xsa file by navigating to Fixed > Next > Include Device Image > Next > file_name > Finish.