URL
https://opencores.org/ocsvn/xge_ll_mac/xge_ll_mac/trunk
Subversion Repositories xge_ll_mac
[/] [xge_ll_mac/] [trunk/] [rtl/] [oc_mac.h] - Rev 2
Compare with Previous | Blame | View Log
////////////////////////////////////////////////////////////////////// //// //// //// This file is part of the "10GE LL MAC" project //// //// http://www.opencores.org/cores/xge_ll_mac/ //// //// //// //// This project is derived from the "10GE MAC" project of //// //// A. Tanguay (antanguay@opencores.org) by Andreas Peters //// //// for his Diploma Thesis at the University of Heidelberg. //// //// The Thesis was supervised by Christian Leber //// //// //// //// Author(s): //// //// - Andreas Peters //// //// //// ////////////////////////////////////////////////////////////////////// //// //// //// Copyright (C) 2008-2012 AUTHORS. All rights reserved. //// //// //// //// This source file may be used and distributed without //// //// restriction provided that this copyright statement is not //// //// removed from the file and that any derivative work contains //// //// the original copyright notice and the associated disclaimer. //// //// //// //// This source file is free software; you can redistribute it //// //// and/or modify it under the terms of the GNU Lesser General //// //// Public License as published by the Free Software Foundation; //// //// either version 2.1 of the License, or (at your option) any //// //// later version. //// //// //// //// This source is distributed in the hope that it will be //// //// useful, but WITHOUT ANY WARRANTY; without even the implied //// //// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //// //// PURPOSE. See the GNU Lesser General Public License for more //// //// details. //// //// //// //// You should have received a copy of the GNU Lesser General //// //// Public License along with this source; if not, download it //// //// from http://www.opencores.org/lgpl.shtml //// //// //// ////////////////////////////////////////////////////////////////////// //========================= Defines for oc_mac ======================== // Ethernet codes `define IDLE 8'h07 `define PREAMBLE 8'h55 `define SEQUENCE 8'h9c `define SFD 8'hd5 `define START 8'hfb `define TERMINATE 8'hfd `define ERROR 8'hfe `define LINK_FAULT_OK 2'd0 `define LINK_FAULT_LOCAL 2'd1 `define LINK_FAULT_REMOTE 2'd2 `define FAULT_SEQ_LOCAL 1'b0 `define FAULT_SEQ_REMOTE 1'b1 `define LOCAL_FAULT 8'd1 `define REMOTE_FAULT 8'd2 `define PAUSE_FRAME 48'h010000c28001 `define LANE0 7:0 `define LANE1 15:8 `define LANE2 23:16 `define LANE3 31:24 `define LANE4 39:32 `define LANE5 47:40 `define LANE6 55:48 `define LANE7 63:56 `define TXSTATUS_NONE 8'h10 `define TXSTATUS_START 8'd144 `define TXSTATUS_END 8'd80 `define TXSTATUS_EOP 3'd6 `define TXSTATUS_SOP 3'd7 `define TXSTATUS_VALID 3'd4 `define RXSTATUS_NONE 8'h0 `define RXSTATUS_ERR 3'd5 `define RXSTATUS_EOP 3'd6 `define RXSTATUS_SOP 3'd7 `define RXSTATUS_VALID 3'd4 //`define SIMULATION