]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 5 Oct 2010 16:01:36 +0000 (16:01 +0000)
committerhadeshyp <hadeshyp>
Tue, 5 Oct 2010 16:01:36 +0000 (16:01 +0000)
media_interfaces/trb_net16_med_ecp_fot_4_ctc.vhd
media_interfaces/trb_net16_rx_checker.vhd

index 3ff51636ac8a18e7155e465f7e73fb886d8c2cee..8d818f31baaac1b4dcec348438fa398ad9ebdc94 100644 (file)
@@ -581,6 +581,7 @@ gen_tx: for i in 0 to 3 generate
       RESET_IN                       => tx_lane_reset,
 
       TX_DATA_IN                     => MED_DATA_IN(i*16+15 downto i*16),
+      TX_PACKET_NUMBER_IN            => MED_PACKET_NUM_IN(i*3+2 downto i*3),
       TX_WRITE_IN                    => MED_DATAREADY_IN(i),
       TX_READ_OUT                    => MED_READ_OUT(i),
 
index 034411ffe259e1c3c7b645f6a4a68f93b78788f5..759014d85123802ddc87f4d7636bdfda55da7eb2 100644 (file)
@@ -15,6 +15,7 @@ port(
        PKT_TOC_IN            : in  std_logic; -- full packet RX timeout\r
        RX_IC_IN              : in  std_logic; -- illegal comma or CodeViolation on RX\r
        STX_FND_IN            : in  std_logic; -- StartOfTransmission found on RX\r
+  STX_TOC_IN            : in  std_logic; -- timeout waiting for StartOfTransmission\r
        PKT_IN_TRANS_IN       : in  std_logic; -- paket in transmission to media interface\r
        -- control signals\r
        FIFO_RST_OUT          : out std_logic; -- clear RX FIFO\r
@@ -106,6 +107,8 @@ begin
                                                if( STX_FND_IN = '1' ) then\r
                                                        next_state <= DONE;\r
                                                        resume_x   <= '1';\r
+            elsif STX_TOC_IN = '1' then\r
+              next_state <= RX_FAIL;\r
                                                else\r
                                                        next_state <= WAIT_STX;\r
                                                        fifo_rst_x <= '1';\r