Global Data


 

--        Packages Used

ieee.STD_LOGIC_1164
ieee.NUMERIC_STD
GTS.gts_pack
ieee.STD_LOGIC_UNSIGNED
 

--        Interface

enable : out std_logic ;
send_comma : out std_logic ;
cmd_strobe : out std_logic ;
event_num : out std_logic_vector (23 downto 0);
msg_in : out std_logic_vector (7 downto 0);
lreset : out std_logic ;
val_tag : out std_logic_vector (15 downto 0);
msg_strobe : out std_logic_vector (1 downto 0);
trigger_request : out std_logic_vector (1 downto 0);
command : out std_logic_vector (3 downto 0);
ocxo_clk : in std_logic ;
cmd_ack : in std_logic ;
trg_tag : in std_logic_vector (15 downto 0);
trg_request : in std_logic ;
rst : in std_logic ;
backp_in : in std_logic ;
 

--        Local Signals

signal ev : unsigned (23 downto 0) ;
signal tg : std_logic_vector (15 downto 0) ;
signal nturn : std_logic  ;
signal ck_count : unsigned (4 downto 0) ;
signal ck1_count : std_logic_vector (6 downto 0) ;
signal trigger_pending : std_logic  ;
 

--        Controls

Initial State: Tst_set
-------------------
Machine:         Synchronous
Clock:           ocxo_clk
Clock Enable:    -
Clock Polarity:  Rising
Reset:           rst
Reset Mode:      Asynchronous
Reset State:     Tst_set
Reset Polarity:  High
State Transition Process:   Synchronous
State Selection:  Case
Transition Selection:  If
     
 

--        Current State


Current Signal Name: visual_Tst_set_current
Next Signal Name: visual_Tst_set_next
Type: enumeration
Hierarchy Mode: Flat
Encoding: User Defined
S0          =>   
S4          =>   
S5          =>   
S6          =>   
S7          =>   
S1          =>   
S2          =>   
S3          =>   
S8          =>   
 

--        States and Transitions

 
Initial State: Tst_set
-------------------
 
State: Tst_set
Hierarchical: Yes
Subdesign: Tst_set
Transitions of state Tst_set:
T0 to S1
 
State: S1
Enter Action:
  send_comma<='0';
  cmd_strobe<='0';
  trigger_request<="00";
  ck1_count<=ck1_count+1;
Transitions of state S1:
T9 to S2
  Priority: 1
  Guard:
    trg_request='1' and backp_in='0'
T13 to S8
  Priority: 3
  Guard:
    ck1_count = "1111111"
T15 to S1
 
State: S2
Enter Action:
  tg<=trg_tag;
  ev<=ev+1;
  command<=C_L1A;
Transitions of state S2:
T11 to S3
 
State: S3
Enter Action:
  event_num<= std_logic_vector(ev);
  cmd_strobe<='1';
  val_tag<=tg;
  ck1_count<=(others=>'0');
  trigger_pending<='0';
Transitions of state S3:
T10 to S1
  Guard:
    cmd_ack='1'
T12 to S3
 
State: S8
Enter Action:
  trigger_request<="01";
Transitions of state S8:
T14 to S1
 
Subdesign Tst_set
---------------
 
Initial State: S0
-------------------
 
State: S0
Enter Action:
  lreset<='1';
  ck_count<=(others=>'0');
  nturn<='0';
  ev<=(others=>'0');
  ck1_count<=(others=>'0');
  trigger_pending<='0';
Transitions of state S0:
T1 to S4
 
State: S4
Transitions of state S4:
T4 to S6
  Guard:
    ck_count="11111"
T2 to S5
 
State: S5
Enter Action:
  lreset<='0';
  enable<='1';
  ck_count<=ck_count+1;
Transitions of state S5:
T3 to S4
 
State: S6
Enter Action:
  send_comma<='1';
  ck_count<=(others=>'0');
Transitions of state S6:
T5 to G0
  Guard:
    nturn='1'
T6 to S7
 
State: S7
Enter Action:
  send_comma<='0';
  nturn<='1';
Transitions of state S7:
T7 to S4