Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Signaltap State-Based Triggering Flow

Hello,

i've read this page: http://www.altera.com/support/examples/on-chip-debugging/signal-tap/signaltap2-design-examples.html and the Handbook.

But I've still two questions.

When is a flag or a counter updated, if I set a flag or e.g. increment a counter.

Is the behavior like a variable or like a signal in VHDL. Combinational or Clocked?

Can I use start_store stop_store as a Storage Qualifier?

like this, it should store two samples, which can be in two ore more clock cycles

state DStore:  
begin
    if (condValid)
    begin
        start_store;
        stop_store;
        set iq;
        if (iq)        //store I and Q sample
        begin
             goto SkipWords;
             clear iq;
        end
        // set iq;
    end
end

Thank you!

Best regards

Malte

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I find it just easier to add detection logic in your RTL. Then you know for sure when odd conditions over several clock cycles have occured.

    You can use the syn_keep attributes on registers so you can then connect them to signaltap.