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# 39858

EDK 12.3 - Is it possible to use the XMD command to return values in binary format in a Tcl file?


In my design, when I use the xmd command in a Tcl file, the values returned are all ASCII.
Is it possible to have the data returned in binary?


The xmd command is designed to return values which can be printed on an XMD terminal, so it is fixed to be ASCII.
You can use the Tcl command below to convert the ASCII to binary:
set binData [binary format c* $datablk] 
AR# 39858
Date 04/08/2015
Status Active
Type General Article
  • EDK - 12.3
Page Bookmarked