From d1e0143c9dd6bb9c893d8fa4a185f3900d45463e Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 23 Jan 2022 16:02:31 +0100 Subject: [PATCH] phy: Fix TX manchester encoding Ethernet uses "inverted" manchester as per IEEE 802.3. --- trashernet/trashernet_phy.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trashernet/trashernet_phy.vhd b/trashernet/trashernet_phy.vhd index 61a3ff4..9116f33 100644 --- a/trashernet/trashernet_phy.vhd +++ b/trashernet/trashernet_phy.vhd @@ -396,8 +396,8 @@ begin tx_p <= '1'; tx_n <= '0'; when ACTIVE => - tx_p <= sr(sr'low) xor bit_stage; - tx_n <= not (sr(sr'low) xor bit_stage); + tx_p <= sr(sr'low) xnor bit_stage; + tx_n <= not (sr(sr'low) xnor bit_stage); end case; end if; end process driver;