From 6a100b578cbb3dd07170cefb2a5aeb116f7740bf Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Wed, 15 Jul 2015 14:34:24 +0000 Subject: [PATCH] Explained g_link_status_check and g_pre_header_padding. --- libraries/technology/eth_10g/tech_eth_10g.vhd | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libraries/technology/eth_10g/tech_eth_10g.vhd b/libraries/technology/eth_10g/tech_eth_10g.vhd index 0fa0119642..b8275ea41c 100644 --- a/libraries/technology/eth_10g/tech_eth_10g.vhd +++ b/libraries/technology/eth_10g/tech_eth_10g.vhd @@ -56,6 +56,23 @@ -- | -- mac_mm -- +-- +-- . g_link_status_check: +-- A link fault eg. due to rx disconnect is detected by the link fault status: +-- 0 = OK +-- 1 = local fault +-- 2 = remote fault +-- +-- From google search: +-- Link fault Operation +-- 1) Device B detects loss of signal. Local fault is signaled by PHY of Device B to Device B. +-- 2) Device B ceases transmission of MAC frames and transmits remote fault to Device A. +-- 3) Device A receives remote fault from Device B. +-- 4) Device A stops sending frames, continuously generates Idle. +-- +-- . g_pre_header_padding: +-- See tech_mac10g.vhd +-- LIBRARY IEEE, common_lib, dp_lib, technology_lib, tech_mac_10g_lib; USE IEEE.STD_LOGIC_1164.ALL; @@ -73,7 +90,7 @@ ENTITY tech_eth_10g IS g_sim : BOOLEAN := FALSE; g_sim_level : NATURAL := 0; -- 0 = use IP; 1 = use fast serdes model g_nof_channels : NATURAL := 1; - g_link_status_check : STD_LOGIC_VECTOR(c_tech_mac_10g_link_status_w-1 DOWNTO 0) := "11"; + g_link_status_check : STD_LOGIC_VECTOR(c_tech_mac_10g_link_status_w-1 DOWNTO 0) := "11"; -- check remote fault & check local fault g_pre_header_padding : BOOLEAN := FALSE ); PORT ( -- GitLab