Forum Discussion

SDe_J's avatar
SDe_J
Icon for Occasional Contributor rankOccasional Contributor
4 years ago

Signaltap tcl scripting: trigger

Hello Intel forum,

I'm trying to use a tcl script to retrieve data from a signaltap instance on my project. I'm using Quartus 20.4 if that helps.

My tcl script looks like this:

# Open Signal Tap session 
open_session -name lpGBT_top.stp
### Start acquisition of instances auto_signaltap_0 and
### auto_signaltap_1 at the same time
# Calling run_multiple_end will start all instances
run_multiple_start

run -instance Uplink -data_log log_1 -timeout 5 -trigger trigger_1

run_multiple_end
# Close Signal Tap session
close_session

When I run this, I get this error:

Error (23035): Tcl error: ERROR: Instance, signal set, or trigger does not exist. Make sure the instance, signal set, and trigger exist in the Signal Tap File.

while executing
"run -instance Uplink -data_log log_1 -timeout 5 -trigger trigger_1"
(file "test_stp.tcl" line 23)

My question is, how do I get/set the name of a trigger? Or alternatively, can I capture data without waiting on a trigger?

I've tried it without "-trigger trigger_1" in the "run" command, but I just get a timeout instead.

I've looked at the stp file, and see this line:

<display_branch instance="Uplink" log="USE_GLOBAL_TEMP" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>

which lead me to believe that the trigger name is "USE_GLOBAL_TEMP", but that produces the same error.

In the signaltap gui, I can't find any way to get or set the name of a trigger.

Thank you for your assistance.

4 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    I've never scripted Signal Tap before, but according to the Tcl help (qpro_sh --qhelp), maybe try -signal_set signal_set_1. The naming of signal sets and triggers comes from if you use the Data Log feature and want to reference a stored signal set or trigger from there.

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,

    Since there are no feedback for this thread, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, some one will be right with you.

    Best regards,
    Sheng