eugene-tarassov / vivado-risc-v

Xilinx Vivado block designs for FPGA RISC-V SoC running Debian Linux distro
858 stars 196 forks source link

no targets found with "name =~ "Hart #0*"". #107

Closed yswntht closed 9 months ago

yswntht commented 2 years ago

Hi @eugene-tarassov ,

I used nexys-video as base template and ported to a new fpga "xc7k160t". I see timing is met with system clock at 50MHz and bit stream is successfully generated. my board uses PUSH-buttons for reset (button press connects to logic 1) and doenn't have an sdcard. To match the system reset i changed reset polarity to ACTIVE_HIGH in riscv.2020.1.tcl. To program the board I followed your suggestion from previous threads (using xsdb). I see following message:


****** Xilinx System Debugger (XSDB) v2020.1
  **** Build date : May 27 2020-20:33:44
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

xsdb% connect                                                                   
tcfchan#0                                                                       
xsdb% targets -set -filter {name =~ "Hart #0*"}                                 
no targets found with "name =~ "Hart #0*"". available targets:                  
  1  xc7k160t
     2  RISC-V JTAG DTM (Debug Transport Module is held in reset)

Any pointers what could be the issue?

Thanks.

eugene-tarassov commented 2 years ago

To match the system reset i changed reset polarity to ACTIVE_HIGH in riscv.2020.1.tcl

You also need to remove inverter (e.g. util_vector_logic_0) on the reset input.

yswntht commented 2 years ago

Thank a lot. Your suggestion worked. I see the correct functionality now.

****** Xilinx System Debugger (XSDB) v2020.1
  **** Build date : May 27 2020-20:33:44
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

xsdb% connect                                                                   
tcfchan#0                                                                       
xsdb% ta                                                                        
  1  xc7k160t
     2  RISC-V
        3  Hart #0 (Running)
xsdb% exit                                                                      
exit