UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 68047

Vivado HLS 2016.x - Co-simulation is terminated due to invalid command "enable_beta_device" in version init.tcl

Description

When doing an HLS C/RTL Co-Simulation, I receive the following error when XSim is invoked by HLS stating that "enable_beta_devices" is an unknown command. The operation then dies.

****** xsim v2016.2 (64-bit)
  **** SW Build 1577090 on Thu Jun  2 16:32:35 MDT 2016
  **** IP Build 1577682 on Fri Jun  3 12:00:54 MDT 2016
    ** Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.

Sourcing tcl script '/eda2/xilinx/vivado2016.2/Vivado/2016.2/scripts/init.tcl'
invalid command name "enable_beta_device"
    while executing
"enable_beta_device xczu9eg*"
    (file "/eda2/xilinx/vivado2016.2/Vivado/2016.2/scripts/init.tcl" line 1)
INFO: [Common 17-206] Exiting xsim at Sun Oct  9 17:26:08 2016...
CRITICAL WARNING: [COSIM 212-303] Aborting co-simulation: RTL simulation failed.  
CRITICAL WARNING: [COSIM 212-344] Rtl simulation failed.
CRITICAL WARNING: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***

If I comment out the "enable_beta_device" command from init.tcl, HLS Co-Simulation finishes successfully.

Solution

This issue has been reported by some users.

It occurs because the stand-alone XSim shell command is not supposed to read Vivado's init.tcl, and stand-alone XSim does not load all of the modules that Vivado does.

In versions prior to 2016.3, a work-around is to put "load_features core" before "enable_beta_device" in theinit.tcl file.

For 2016.3, a work-around is to put "catch {enable_beta_device}" in the init.tcl file.

This will allow you to get past the error.

This issue is scheduled to be fixed in a future release of Vivado.

AR# 68047
Date Created 10/09/2016
Last Updated 11/11/2016
Status Active
Type General Article
Tools
  • Vivado Design Suite