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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
391 Views
Registered: ‎10-12-2018

can't read "PCW_SILICON_VER_1_0": no such variable

Hi,

During running this command:

source ps7_init.tcl

I got the following error:

can't read "PCW_SILICON_VER_1_0": no such variable

However there here is the snippet from ps7_init.tcl file:

set PCW_SILICON_VER_1_0 "0x0"
set PCW_SILICON_VER_2_0 "0x1"
set PCW_SILICON_VER_3_0 "0x2"
set APU_FREQ  650000000

I use:

  • Win10
  • Vivado 2017.4
  • Custom board, with xc7z030 Zynq FPGA
0 Kudos
1 Reply
Explorer
Explorer
349 Views
Registered: ‎10-12-2018

Re: can't read "PCW_SILICON_VER_1_0": no such variable

Solution:

The problem was that the ps7_init.tcl was sourced inside a tcl procedure. (TCL hasn't got as strong import/source system as python has.) And I got the no such variable because of the namespaces, and visibility of the variables.

Why do I need source ps7_init within a proc?

The ps7_init.tcl generated (extracted) by the loadhw proc, which should run after load of the bitstream (fpga command). I have multiple bitstream, I need to do the bitstream-load inside if a proc, so the loadhw must be in a proc, and therefore the source of the ps7_init.tcl must be in a proc.

0 Kudos