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

Subversion Repositories ethmac10g

[/] [ethmac10g/] [trunk/] [rtl/] [verilog/] [rx_engine/] [rxStatModule.v] - Diff between revs 41 and 56

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

Rev 41 Rev 56
Line 73... Line 73...
         input length_256_511;
         input length_256_511;
         input length_512_1023;
         input length_512_1023;
         input length_1024_max;
         input length_1024_max;
         input jumbo_frame;
         input jumbo_frame;
         input get_error_code;
         input get_error_code;
         output [18:0] rxStatRegPlus;
         output [17:0] rxStatRegPlus;
 
 
         parameter TP =1;
         parameter TP =1;
 
 
         wire[18:0] rxStatRegPlus_tmp;
         wire[17:0] rxStatRegPlus_tmp;
 
 
         ////////////////////////////////////////////
         ////////////////////////////////////////////
         // Count for Frames Received OK
         // Count for Frames Received OK
         ////////////////////////////////////////////
         ////////////////////////////////////////////
         assign rxStatRegPlus_tmp[0] = good_frame_get;
         assign rxStatRegPlus_tmp[0] = good_frame_get;
Line 139... Line 139...
         //////////////////////////////////////////////
         //////////////////////////////////////////////
         // Count for Length/Type Out of Range
         // Count for Length/Type Out of Range
         //////////////////////////////////////////////
         //////////////////////////////////////////////
         assign rxStatRegPlus_tmp[11] = large_error;
         assign rxStatRegPlus_tmp[11] = large_error;
 
 
 
 
         //////////////////////////////////////////////
 
         // Count for Pause Frames Received OK
 
         //////////////////////////////////////////////
 
//       assign rxStatRegPlus_tmp[12] = tagged_frame & good_frame_get;
 
 
 
         //////////////////////////////////////////////
         //////////////////////////////////////////////
         // Count for Pause Frames Received OK
         // Count for Pause Frames Received OK
         //////////////////////////////////////////////
         //////////////////////////////////////////////
         assign rxStatRegPlus_tmp[13] = pause_frame & good_frame_get;
         assign rxStatRegPlus_tmp[12] = pause_frame & good_frame_get;
 
 
         /////////////////////////////////////////////////////////////
         /////////////////////////////////////////////////////////////
         // Count for Control Frames Received with Unsupported Opcode.
         // Count for Control Frames Received with Unsupported Opcode.
         /////////////////////////////////////////////////////////////
         /////////////////////////////////////////////////////////////
   // assign rxStatRegPlus_tmp[14] = pause_frame & good_frame_get;
    assign rxStatRegPlus_tmp[13] = 0;//pause_frame & good_frame_get;
 
 
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         // Count for Oversize Frames Received OK
         // Count for Oversize Frames Received OK
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         assign rxStatRegPlus_tmp[15] = jumbo_frame & good_frame_get;
         assign rxStatRegPlus_tmp[14] = jumbo_frame & good_frame_get;
 
 
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         // Count for Undersized Frames Received
         // Count for Undersized Frames Received
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         assign rxStatRegPlus_tmp[16] = small_error;
         assign rxStatRegPlus_tmp[15] = small_error;
 
 
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         // Count for Fragment Frames Received
         // Count for Fragment Frames Received
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         assign rxStatRegPlus_tmp[17] = receiving & get_error_code;
         assign rxStatRegPlus_tmp[16] = receiving & get_error_code;
 
 
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         // Count for Number of Bytes Received
         // Count for Number of Bytes Received
         ///////////////////////////////////////////////
         ///////////////////////////////////////////////
         assign rxStatRegPlus_tmp[18] = receiving;
         assign rxStatRegPlus_tmp[17] = receiving;
 
 
         reg[18:0] rxStatRegPlus;
         reg[17:0] rxStatRegPlus;
         always@(posedge rxclk or posedge reset) begin
         always@(posedge rxclk or posedge reset) begin
               if(reset)
               if(reset)
                           rxStatRegPlus <=#TP 0;
                           rxStatRegPlus <=#TP 0;
                         else
                         else
                           rxStatRegPlus <=#TP rxStatRegPlus_tmp;
                           rxStatRegPlus <=#TP rxStatRegPlus_tmp;

powered by: WebSVN 2.1.0

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