]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Fri, 30 Apr 2010 17:41:50 +0000 (17:41 +0000)
committerhadeshyp <hadeshyp>
Fri, 30 Apr 2010 17:41:50 +0000 (17:41 +0000)
special/handler_ipu.vhd

index 7fd28c9f37a7965767bc48f3f9630f411798588e..1c3864bdf9e5183270908c4683e6d3cf9ae53ffa 100644 (file)
@@ -51,7 +51,7 @@ end entity;
 architecture handler_ipu_arch of handler_ipu is
 
   type cnt10_DAT_t is array (DATA_INTERFACE_NUMBER-1 downto 0) of unsigned(15 downto 0);
-  type fsm_state_t is (IDLE, WAIT_FOR_LENGTH, GOT_LENGTH, WAITING_FOR_EVENT, SEND_DHDR, READ_DATA, END_READOUT);
+  type fsm_state_t is (IDLE, WAIT_FOR_LENGTH, WAITING_FOR_EVENT, SEND_DHDR, READ_DATA, END_READOUT);
   signal current_state,          next_state                    : fsm_state_t;
   signal state_bits                                            : std_logic_vector(3 downto 0);
 
@@ -142,17 +142,15 @@ begin
           end if;
 
         when WAIT_FOR_LENGTH =>
-          if DAT_HDR_DATA_EMPTY_IN = '0' then
-            next_state <= WAITING_FOR_EVENT;
-          else
-            next_state <= GOT_LENGTH;
-          end if;
-
-        when GOT_LENGTH =>
+                  --missing: compare data flags and hdr fifo data
+--           next_state <= GOT_LENGTH;
           if last_hdr_fifo_valid_read = '1' then
             next_state <= SEND_DHDR;
           end if;
-          --missing: compare data flags and hdr fifo data
+
+--         when GOT_LENGTH =>
+
+
 
         when SEND_DHDR =>
           next_ipu_data_i      <= x"0" & DAT_HDR_DATA_IN(27 downto 0);
@@ -343,7 +341,7 @@ begin
 ---------------------------------------------------------------------------
   state_bits <=     x"0" when current_state = IDLE
                else x"1" when current_state = WAIT_FOR_LENGTH
-               else x"2" when current_state = GOT_LENGTH
+--                else x"2" when current_state = GOT_LENGTH
                else x"3" when current_state = SEND_DHDR
                else x"4" when current_state = READ_DATA
                else x"5" when current_state = END_READOUT