summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormindchasers <privateisland@mindchasers.com>2020-11-16 18:12:45 -0500
committermindchasers <privateisland@mindchasers.com>2020-11-16 18:12:45 -0500
commit911ca639433604e7e3616817fc35dbab5e0b70ec (patch)
tree5520103f5303d014ef5ea8c5c387fca47d4b772c
parent6e969b02b4f6266bb9af926bfba6698468c74c28 (diff)
eth_params: add TX_MODE_CUSTOM to support custom MAC layers
-rw-r--r--source/ethernet_params.v13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/ethernet_params.v b/source/ethernet_params.v
index e974a05..3238592 100644
--- a/source/ethernet_params.v
+++ b/source/ethernet_params.v
@@ -1,7 +1,7 @@
/*
* ethernet_params.v
*
- * Copyright (C) 2018, 2019 Mind Chasers Inc.
+ * Copyright (C) 2018, 2019, 2020 Mind Chasers Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,13 +24,14 @@ localparam MTU = 1520; // Ethernet is actually 1500+framing (max 18)
localparam IPG = 96; // Inter-packet Gap Bits
localparam SZ_ETH_HEADER = 14; // w/o VLAN
-localparam SZ_IPV4_HEADER = 20; // w/o Options
+localparam SZ_IPV4_HEADER = 20; // w/o Options
localparam SZ_UDP_HEADER = 8;
-localparam TX_MODE_AN = 2'b00,
-TX_MODE_IDLE = 2'b01,
-TX_MODE_XMT_PKT = 2'b10, // anything >= to this is a mode where a packet is transmitted
-TX_MODE_XMT_METRICS = 2'b11;
+localparam TX_MODE_AN = 3'b000,
+TX_MODE_IDLE = 3'b001,
+TX_MODE_XMT_PKT = 3'b010, // anything >= to this is a mode where a packet is transmitted
+TX_MODE_XMT_METRICS = 3'b011;
+TX_MODE_XMT_CUSTOM = 3'b100;
// Note: The Length/Type field is transmitted and received with the high order octet first.
localparam ETHER_TYPE_IPV4 = 16'h0800,