summaryrefslogtreecommitdiffhomepage
path: root/source/ethernet_params.v
diff options
context:
space:
mode:
authorPrivate Island Networks <opensource@privateisland.tech>2025-09-01 12:34:17 -0400
committerPrivate Island Networks <opensource@privateisland.tech>2025-09-01 12:34:17 -0400
commitc8b273c80abe98e53828f46079a187975938a56a (patch)
tree410577af8067ee001ba473dcf0c7bcae46d83de1 /source/ethernet_params.v
parentac2bbbd2f816c223ef4dcfa2f8440d9c0c73bffe (diff)
rename source to src
Diffstat (limited to 'source/ethernet_params.v')
-rw-r--r--source/ethernet_params.v39
1 files changed, 0 insertions, 39 deletions
diff --git a/source/ethernet_params.v b/source/ethernet_params.v
deleted file mode 100644
index dcb7dba..0000000
--- a/source/ethernet_params.v
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * ethernet_params.v
- *
- * 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * function: Ethernet related parameters
- *
- */
-
-
-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_UDP_HEADER = 8;
-
-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,
-ETHER_TYPE_IPV6 = 16'h86DD,
-ETHER_TYPE_ARP = 16'h0806;

Highly Recommended Verilog Books