Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

SignalTap II version 13.0.1 Status Flags do not get set.

Altera_Forum
Honored Contributor II
1,050 Views

I have a state machine. The counters work but the status flags do not. Ex. code below. 

 

if (condition1) 

begin 

set f1; 

goto ST2; 

end 

else 

begin 

reset c1;  

goto ST1; 

end 

 

if (condition2) 

begin 

set f2; 

goto ST3; 

end 

else 

goto ST2; 

 

if (c1==2) 

begin 

trigger; 

goto ST1; 

end 

else if (condition3) 

begin 

increment c1; 

goto ST3; 

end 

 

Neither will be get set to a 1. Always 0. 

Anyone know why the flags don't get set? 

 

Also I found that one does not have to reset the counter. Simply by hitting the 

Run Analysis button seems to reset everything.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
359 Views

How do you know the flag is not set? You don't read it, but just write, in your state machine. 

 

Actually, you can setup the initial value of counter and flag when acquisition is started. By default, they are 0s. 

 

I remember there were problems of changing names and initial values using that table windows in a few versions. I wonder if this could be related.
0 Kudos
Reply