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

Subversion Repositories can

[/] [can/] [tags/] [rel_7/] [rtl/] [verilog/] [can_bsp.v] - Diff between revs 90 and 93

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

Rev 90 Rev 93
Line 48... Line 48...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.33  2003/06/21 12:16:30  mohor
 
// paralel_case and full_case compiler directives added to case statements.
 
//
// Revision 1.32  2003/06/17 14:28:32  mohor
// Revision 1.32  2003/06/17 14:28:32  mohor
// Form error was detected when stuff bit occured at the end of crc.
// Form error was detected when stuff bit occured at the end of crc.
//
//
// Revision 1.31  2003/06/16 14:31:29  tadejm
// Revision 1.31  2003/06/16 14:31:29  tadejm
// Bit stuffing corrected when stuffing comes at the end of the crc.
// Bit stuffing corrected when stuffing comes at the end of the crc.
Line 1294... Line 1297...
    begin
    begin
      if (extended_mode)      // extended mode
      if (extended_mode)      // extended mode
        begin
        begin
          if (ide)              // extended format
          if (ide)              // extended format
            begin
            begin
              case (header_cnt) /* synthesis full_case synthesis parallel_case */
              case (header_cnt) /* synthesis full_case parallel_case */
                3'h0  : data_for_fifo <= {1'b1, rtr2, 2'h0, data_len};
                3'h0  : data_for_fifo <= {1'b1, rtr2, 2'h0, data_len};
                3'h1  : data_for_fifo <= id[28:21];
                3'h1  : data_for_fifo <= id[28:21];
                3'h2  : data_for_fifo <= id[20:13];
                3'h2  : data_for_fifo <= id[20:13];
                3'h3  : data_for_fifo <= id[12:5];
                3'h3  : data_for_fifo <= id[12:5];
                3'h4  : data_for_fifo <= {id[4:0], 3'h0};
                3'h4  : data_for_fifo <= {id[4:0], 3'h0};
                default: data_for_fifo <= 0;
 
              endcase
              endcase
            end
            end
          else                  // standard format
          else                  // standard format
            begin
            begin
              case (header_cnt) /* synthesis full_case synthesis parallel_case */
              case (header_cnt) /* synthesis full_case parallel_case */
                3'h0  : data_for_fifo <= {1'b0, rtr1, 2'h0, data_len};
                3'h0  : data_for_fifo <= {1'b0, rtr1, 2'h0, data_len};
                3'h1  : data_for_fifo <= id[10:3];
                3'h1  : data_for_fifo <= id[10:3];
                3'h2  : data_for_fifo <= {id[2:0], 5'h0};
                3'h2  : data_for_fifo <= {id[2:0], 5'h0};
                default: data_for_fifo <= 0;
 
              endcase
              endcase
            end
            end
        end
        end
      else                    // normal mode
      else                    // normal mode
        begin
        begin
          case (header_cnt) /* synthesis full_case synthesis parallel_case */
          case (header_cnt) /* synthesis full_case parallel_case */
            3'h0  : data_for_fifo <= id[10:3];
            3'h0  : data_for_fifo <= id[10:3];
            3'h1  : data_for_fifo <= {id[2:0], rtr1, data_len};
            3'h1  : data_for_fifo <= {id[2:0], rtr1, data_len};
            default: data_for_fifo <= 0;
 
          endcase
          endcase
        end
        end
    end
    end
  else
  else
    data_for_fifo <= tmp_fifo[data_cnt-header_len];
    data_for_fifo <= tmp_fifo[data_cnt-header_len];

powered by: WebSVN 2.1.0

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