Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MFeng5
Partner
802 Views

Intel的PAC卡在开发过程中,使用remote signal tap进行时,在本地执行如下命令报错。

remoteDebug Error.png是使用方法不正确?

 

 

0 Kudos
20 Replies
JohnT_Intel
Employee
618 Views

Hi,

 

May I know if you have program the bitstream with the SignalTap enabled? If no, you will need to program it before you are able to run the SignalTap.

618 Views

​Hi JohnT,

 

1, I check the filelist_mode_0_stp.txt as below

 

+define+INCLUDE_REMOTE_STP

C:filelist_mode_0.txt

 

QI:../par/${OPAE_PLATFORM_FPGA_FAMILY}/extra_tcl-0_stp.tcl

../par/nlb_0_stp.sdc

 

2, Also I check the filelist_base.txt

+define+BIST_AFU

nlb_400.json

test_sw1.sv

test_rdwr.sv

test_lpbk1.sv

requestor.sv

nlb_lpbk.sv

nlb_csr.sv

nlb_C1Tx_fifo.sv

ccip_std_afu.sv

ccip_interface_reg.sv

ccip_debug.sv

arbiter.sv

nlb_gram_sdp.v

pipeline.sv

platform/${OPAE_PLATFORM_FPGA_FAMILY}/local_mem.sv

resync.v

altera_std_synchronizer_nocut.v

 

QSYS_IPs/${OPAE_PLATFORM_FPGA_FAMILY}/RAM/req_C1TxRAM2PORT.qsys

QSYS_IPs/${OPAE_PLATFORM_FPGA_FAMILY}/RAM/lpbk1_RdRspRAM2PORT.qsys

 

include_files/common

../par/stp_basic.stp

../par/nlb_0_stp.sdc

 

which means, signaltap remote debug has been enabled .

 

above file including gbs, txt,tcl,stp are unchanged vendor original design example.

just can not active stp according the vendor's example.

 

thanks

 

jim

JohnT_Intel
Employee
618 Views

Hi,

 

Do you program your FPGA using sof file? What is the you use to run the SignalTap?

618 Views

Hi JohnT,

In windows side, we did not download any sof via signaltap GUI. because that is not mentioned in the manual.

I was trying to duplicate the original example on 6.1 remote signal tap setup and use. but failed.

I put what I have done here for reference, maybe I miss out something.

we create project as below using filelist_mode_0_stp.txt

[root@fig01 nlb_mode_0_stp]# afu_synth_setup --source hw/rtl/filelist_mode_0_stp.txt build_synth

Copying build from /root/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/lib/build...

Set OPAE_PLATFORM_FPGA_FAMILY to A10

Configuring Quartus build directory: build_synth/build

Loading platform database: /root/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/lib/platform/platform_db/a10_gx_pac_hssi.json

Loading platform-params database: /usr/share/opae/platform/platform_db/platform_defaults.json

Loading AFU database: /usr/share/opae/platform/afu_top_ifc_db/ccip_std_afu_avalon_mm.json

Loading parent database: ccip_std_afu

Loading AFU database: /usr/share/opae/platform/afu_top_ifc_db/ccip_std_afu.json

Writing platform/platform_afu_top_config.vh

Writing platform/platform_if_addenda.qsf

Writing ../hw/afu_json_info.vh

[root@fig01 nlb_mode_0_stp]#

Open Quartus as below

[root@fig01 nlb_mode_0_stp]# cd build_synth/build

[root@fig01 build]# quartus dcp.qpf

​Once the Intel Quartus Prime Pro Edition GUI opens, open the dcp.qpf project file

Click assignment->Revisions->new revisions-> create a new revision afu_dev based in the revioson afu_synth and the afu_dev will automatically being set up as current version

Quartus GUI->Processing->Start->Start Analysis & Elaboration processing may take several minutes to finish without error

​under Project Navigator,switch page from Hierarchy to Files and double click stp_basic.stp to check ,nothing wrong founded.

close the stp_basic.stp and you will be asked do you want to save your changes? click yes or no both are ok. Do you want to enable current signaltap file for the current project? click yes

Close Quartus

[root@fig01 build]# cd ..

[root@fig01 build_synth]# run.sh

project was be build successfully.

the last part of compilation is shared as below

Info (23030): Evaluation of Tcl script ./a10_partial_reconfig/report_timing.tcl was successful

Info: Quartus Prime TimeQuest Timing Analyzer was successful. 0 errors, 176 warnings

  Info: Peak virtual memory: 5475 megabytes

  Info: Processing ended: Fri Mar 6 14:10:23 2020

  Info: Elapsed time: 00:01:07

  Info: Total CPU time (on all processors): 00:02:03

Info (19538): Reading SDC files took 00:00:12 cumulatively in this process.

Wrote nlb_400.gbs

===========================================================================

 PR AFU compilation complete

 AFU gbs file is 'nlb_400.gbs'

 Design meets timing

===========================================================================

[root@fig01 build_synth]# 

one thing I am quite confused was this compilation updated nlb_400.gbs file , i thought it should regenerate $OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0_stp/bin/nlb_mode_0_stp.gbs , but not.

​and I have checked the nlb_mode_0_stp.gbs, and found that file was be updated based on modified time.

​​

in linux side, we did like below

[root@fig01 build_synth]# sudo fpgaconf -B 0XD8 -D 00 -F 00 $OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0_stp/bin/nlb_mode_0_stp.gbs

[root@fig01 build_synth]# sudo mmlink -P 3333 -B 0XD8

 ------- Command line Input START ---- 

 

 Bus          : 216

 Device        : -1

 Function       : -1

 Socket-id       : -1

 Port         : 3333

 IP address      : 0.0.0.0

 ------- Command line Input END ---- 

PORT Resource found.

Remote STP : Assert Reset

Remote STP : De-Assert Reset

Read signature value 53797343 to hw

Read version value 1 to hw

Read write fifo capacity value 32 to hw

m_listen: 4

listening on ip: 0.0.0.0; port: 3333

in windows side, we did like below

cmd

cd D:\Jimlin\FPGA\devkits\PACArria10GX\example\nlb_mode_0_stp

D:\Jimlin\FPGA\devkits\PACArria10GX\example\nlb_mode_0_stp>system-console --rc_script=mmlink_setup_profiled.tcl remote_debug.sof 192.168.111.210 3333

and then we see the system-console GUI will launch and communicate with debug target until it print Remote system ready.

​same time I could see new text kept updating from LINUX terminal side,seems handshake communication between host and target was success.

then we open stp_basic.stp was able to choose “System Console on … Sld Hub Controller System and jtag is reday.but keep asking me to program device to continue as in the firt picture.

also there is warning

Error(261009): Cannot run Signal Tap Logic Analyzer. Signal Tap File is not compatible with the file programmed in your device. The expected compatibility checksum value is 0x76AF59AF; the value read from your device is 0x9DDC57FD  

 

hope this can give you a whole picture .

 

any other thing we can try ,please let me know

 

thanks

 

Jim

618 Views

one spelling mistake

 

one thing I am quite confused was this compilation updated nlb_400.gbs file , i thought it should regenerate $OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0_stp/bin/nlb_mode_0_stp.gbs , but was not.

​and I have checked the nlb_mode_0_stp.gbs, and found that file was NOT be updated based on modified time.

 

JohnT_Intel
Employee
618 Views

Hi,

 

Please performed "sudo fpgaconf -B 0XD8 -D 00 -F 00 <build_synth dir>/nlb_400.gbs.gbs" before running the stp file.

618 Views

Jo JohnT,

 

thanks for your suggestion.

Following your suggestion, performed "sudo fpgaconf -B 0XD8 -D 00 -F 00 <build_synth dir>/nlb_400.gbs.gbs" before running the stp file.

linux side :

[root@fig01 build_synth]# fpgaconf -B 0XD8 -D 00 -F 00 $OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0_stp/build_synth/nlb_400.gbs

[root@fig01 build_synth]# sudo mmlink -P 3333 -B 0XD8

 ------- Command line Input START ---- 

 

 Bus          : 216

 Device        : -1

 Function       : -1

 Socket-id       : -1

 Port         : 3333

 IP address      : 0.0.0.0

 ------- Command line Input END ---- 

 

PORT Resource found.

Remote STP : Assert Reset

Remote STP : De-Assert Reset

Read signature value 53797343 to hw

Read version value 1 to hw

Read write fifo capacity value 32 to hw

m_listen: 4

listening on ip: 0.0.0.0; port: 3333

I have 1 connections now; latest socket is 5

5: binding first connection

5: Accepted connection request from 192.168.111.204

I have 2 connections now; latest socket is 6

6: Accepted connection request from 192.168.111.204

mmlink_connection::handle_management_command('HANDLE 00000001')

6: accepted handle value (' HANDLE 00000001'), setting to bound state

5: handle_receive() returned -1, closing connection, now have 1

6: handle_receive() returned -1, closing connection, now have 0

I have 1 connections now; latest socket is 5

5: binding first connection

5: Accepted connection request from 192.168.111.204

I have 2 connections now; latest socket is 6

6: Accepted connection request from 192.168.111.204

mmlink_connection::handle_management_command('HANDLE 00000002')

6: accepted handle value (' HANDLE 00000002'), setting to bound state

mmlink_connection::handle_management_command('RESET 1')

Write reset value 1 to hw

mmlink_connection::handle_management_command('RESET 0')

Write reset value 0 to hw

mmlink_connection::handle_management_command('ENABLE 1 1')

Enable channel 257 to hw

6: converted to data

 

windows side

D:\Jimlin\FPGA\devkits\PACArria10GX\example\nlb_mode_0_stp>system-console --rc_script=mmlink_setup_profiled.tcl remote_debug.sof 192.168.111.210 3333

 

 then we see the system-console GUI will launch and communicate with debug target until it print Remote system ready.

​same time I could see new text kept updating from LINUX terminal side,seems handshake communication between host and target was success.

then we open stp_basic.stp was able to choose “System Console on … Sld Hub Controller System and jtag is reday.but keep asking me to program device to continue as in the first picture.

also there is error.

Error(261005): Can't find the instance. Download a design with SRAM Object File containing this instance. 

 

so I think nlb_400.gbs.gbs has no stp file included.

 

 

I go back to check afu.qsf

I have NOT found below assignment,which is used to enale REMOTE SIGNALTAP

 

set_global_assignment -name ENABLE_SIGNALTAP ON

set_global_assignment -name USE_SIGNALTAP_FILE ../hw/par/A10/stp_basic.stp

that 2 assignments suppose be to added to AFU.QSF by filelist_mode_0_stp.txt as below

 

+define+INCLUDE_REMOTE_STP

C:filelist_mode_0.txt

QI:../par/${OPAE_PLATFORM_FPGA_FAMILY}/extra_tcl-0_stp.tcl

../par/nlb_0_stp.sdc

 

 

I am going to put these below 2 assignments into afu.qsf and rebuild system, see what is going on

set_global_assignment -name ENABLE_SIGNALTAP ON

set_global_assignment -name USE_SIGNALTAP_FILE ../hw/par/A10/stp_basic.stp

 

thanks

 

Jim

618 Views

AE.JPGAE.JPG

JohnT_Intel
Employee
618 Views

Hi,

 

Yes, please try to include the stp into the design and try again. If you are still facing the issue, could you share with me your project?

618 Views

Hi JohnT,

 

I am happy to share my project with you, it is a vendor provided example project, under that directory root/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/samples/nlb_mode_0_stp

is there a convenient way to achieve project files like Quartus can does? if so, that would be handy.

If not, can you let me know which directory or which file do you need in what format?

 

thanks

 

Jim

JohnT_Intel
Employee
618 Views

Hi,

 

You can use Quartus to achieve the project which include all revision.

618 Views

Hi ​JohnT,

finally I got it works now.now signaltap can remotely capture data now.

the reason is that

after I put 2 assignments into afu.qsf

set_global_assignment -name ENABLE_SIGNALTAP ON

set_global_assignment -name USE_SIGNALTAP_FILE "../../hw/par/A10/stp_basic.stp"

those above 2 assignmetn supposed be done by extra_tcl-0_stp.tcl

but if you check the path in extra_tcl-0_stp.tcl you will find the path is wrong

set_global_assignment -name USE_SIGNALTAP_FILE ../hw/par/A10/stp_basic.stp.

the correct one is

set_global_assignment -name USE_SIGNALTAP_FILE "../../hw/par/A10/stp_basic.stp"

the wrong one made stp file can not be included during the compilation, that is why stp always reported Can't find the instance. Download a design with SRAM Object File containing this instance.

 

that original extra_tcl-0_stp.tcl is provided by vendor, I have not changed it. that is root cause.

thanks for your help.

I think many other customer would duplicate same issue, if they follow the instruction from page 35 in chapter 6 AFU in-system debug of AFU Developer’s Guide for Intel FPGA Programmable Acceleration Card.

 

thanks all your help.

Best regard

 

Jim

 

AE.JPG

 

618 Views

I Share my project here with everyone for reference.

but when I was doing achieve project with ticking all version, system reported an error

Error(16368): Top-level design entity "dcp_top" is undefined 

anyway I attached my project here, anyone wants single other file can email to me jimlinmake@hotmail.com.

 

thanks

 

jim

JohnT_Intel
Employee
618 Views

Hi,

 

Thanks for sharing. I would recommend to always check on the Quartus report to confirm STP is included and compiled into your design so that the SignalTap is able to run.

618 Views

Hi JohnT,

 

thanks for that, May I know which report and which part in that report should be check for confirming the stp is included?

any key words can be use to search ? I think this is very useful,

 

thanks

 

Jim

JohnT_Intel
Employee
618 Views

Hi,

 

please look at .fit.rpt file.

618 Views

Hi JohnT,

 

I have checked the file afu_fit.fit.rpt,which is 137.9MB, it is too long and too big.

I have not fund signaltap relative information,which can be use to indicate if sitnaltap file is included or not.

 

thanks

 

jim

 

JohnT_Intel
Employee
618 Views

Hi,

 

If you look into fit.rpt, you will observed "inst_SLD_HUB_cont_sys" which is usually the SignalTap resource and in .synth.rpt, you will observed .stp file being included into your design.

618 Views

Hi JohnT,

 

I have found my stp file is in the section source files read of ​afu_synth.syn.rpt, looks like stp file is included by compilation flow.

 

thanks for your help

 

Jim

stp in rpt.JPG

JohnT_Intel
Employee
80 Views

Hi,

 

I am glad to help you on this.

Reply