OpenCores
URL https://opencores.org/ocsvn/turbo8051/turbo8051/trunk

Subversion Repositories turbo8051

[/] [turbo8051/] [trunk/] [rtl/] [gmac/] [ctrl/] [eth_parser.v] - Diff between revs 36 and 50

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 36 Rev 50
Line 99... Line 99...
//-----------------------------             
//-----------------------------             
// output status 
// output status 
//-----------------------------
//-----------------------------
output   [11:0]     pkt_len;     // Packet Length
output   [11:0]     pkt_len;     // Packet Length
output              pkt_done;    // Packet Processing done indication
output              pkt_done;    // Packet Processing done indication
output   [6:0]      pkt_status;  // packet processing status
output   [15:0]     pkt_status;  // packet processing status
                                 // [1:0] - MAC-DA
                                 // [1:0] - MAC-DA
                                 //         2'b00  - Broadcast frame
                                 //         2'b00  - Broadcast frame
                                 //         2'b01  - Multicast frame
                                 //         2'b01  - Multicast frame
                                 //         2'b10  - unicast frame, other than local DA
                                 //         2'b10  - unicast frame, other than local DA
                                 //         2'b11  - unicast local DA frame
                                 //         2'b11  - unicast local DA frame
Line 131... Line 131...
                                 // [7] - L4 Check Sum Error
                                 // [7] - L4 Check Sum Error
 
 
reg [11:0]      bcnt           ; // Byte counter
reg [11:0]      bcnt           ; // Byte counter
reg [11:0]      pkt_len        ; // packet length
reg [11:0]      pkt_len        ; // packet length
reg             pkt_done       ; // packet complete indication + Packet Status Valid
reg             pkt_done       ; // packet complete indication + Packet Status Valid
 
reg             pkt_drop_ind   ;
 
 
 
 
always @(s_reset_n  or posedge app_clk) begin
always @(s_reset_n  or posedge app_clk) begin
   if(s_reset_n == 1'b0) begin
   if(s_reset_n == 1'b0) begin
      bcnt     <= 0;
      bcnt     <= 0;
      pkt_len  <= 0;
      pkt_len  <= 0;
      pkt_done <= 0;
      pkt_done <= 0;
 
      pkt_drop_ind <= 0;
   end
   end
   else begin
   else begin
      if(dval) begin
      if(dval) begin
         if(eop) begin
         if(eop) begin
            bcnt <= 0;
            bcnt <= 0;
Line 166... Line 169...
reg        arpf          ; // frame is arp
reg        arpf          ; // frame is arp
reg        tcpf          ; // frame is tcp
reg        tcpf          ; // frame is tcp
reg        udpf          ; // frame is udp
reg        udpf          ; // frame is udp
reg        ip_sa_match   ; // ip4 sa matches to local IP Address 
reg        ip_sa_match   ; // ip4 sa matches to local IP Address 
reg        ip_da_match   ; // ip4 da matches to local IP Address
reg        ip_da_match   ; // ip4 da matches to local IP Address
reg[6:0]   pkt_status    ; // Packet Status
reg[15:0]  pkt_status    ; // Packet Status
 
 
always @(s_reset_n or posedge app_clk) begin
always @(s_reset_n or posedge app_clk) begin
   if(s_reset_n == 1'b0) begin
   if(s_reset_n == 1'b0) begin
      mac_da_bc     <= 0;
      mac_da_bc     <= 0;
      mac_da_mc     <= 0;
      mac_da_mc     <= 0;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.