]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Fri, 20 Jul 2012 11:46:46 +0000 (11:46 +0000)
committerhadeshyp <hadeshyp>
Fri, 20 Jul 2012 11:46:46 +0000 (11:46 +0000)
gbe2_ecp3/trb_net16_gbe_response_constructor_SCTRL.vhd

index f89160adca05a0837a3b938d2611a865d947c783..164158efd2c2775d984e45a949a47e416f861d4d 100644 (file)
@@ -137,9 +137,6 @@ signal fifo_rd_q               : std_logic;
 
 signal too_much_data           : std_logic;
 
-signal divide_ctr              : std_logic_vector(7 downto 0);
-signal divide_temp_ctr         : std_logic_vector(15 downto 0);
-
 
 begin
 
@@ -260,30 +257,6 @@ begin
        end if;
 end process TOO_MUCH_DATA_PROC;
 
-DIVIDE_CTR_PROC : process(CLK)
-begin
-       if rising_edge(CLK) then
-               if (RESET = '1') or (dissect_current_state = IDLE) then
-                       divide_ctr <= (others => '0');
-               elsif (dissect_current_state = SAVE_RESPONSE) and (divide_temp_ctr = b"101_0111_1000") then
-                       divide_ctr <= divide_ctr + x"1";
-               end if;
-       end if;
-end process DIVIDE_CTR_PROC;
-
-DIVIDE_TEMP_CTR_PROC : process(CLK)
-begin
-       if rising_edge(CLK) then
-               if (RESET = '1') or (dissect_current_state = IDLE) then
-                       divide_temp_ctr <= (others => '0');
-               elsif (tx_fifo_wr = '1') and (divide_temp_ctr /= b"101_0111_1000") then
-                       divide_temp_ctr(15 downto 1) <= divide_temp_ctr(15 downto 1) + x"1";
-               elsif (tx_fifo_wr = '1') and (divide_temp_ctr = b"101_0111_1000") then
-                       divide_temp_ctr <= x"0002";
-               end if;
-       end if;
-end process DIVIDE_TEMP_CTR_PROC;
-
 -- total counter of data transported to frame constructor
 TX_LOADED_CTR_PROC : process(CLK)
 begin
@@ -302,7 +275,7 @@ PS_BUSY_OUT <= '0' when (dissect_current_state = IDLE) else '1';
 
 PS_RESPONSE_READY_OUT <= '1' when (dissect_current_state = WAIT_FOR_LOAD or dissect_current_state = LOAD_FRAME or 
                                                                        dissect_current_state = CLEANUP or dissect_current_state = WAIT_FOR_LOAD_ACK or
-                                                                       dissect_current_state = LOAD_ACK or dissect_current_state = DIVIDE)
+                                                                       dissect_current_state = LOAD_ACK or dissect_current_state = DIVIDE) and (too_much_data = '0')
                                                else '0';
 
 TC_FRAME_TYPE_OUT  <= x"0008";