From 040016bd44a2cbcc72680255aa700cdebb8e833b Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 30 Nov 2022 18:12:13 -0500 Subject: [PATCH] phy_core: Simplify collision logic This mildly simplifies the collision logic. Signed-off-by: Sean Anderson --- rtl/phy_core.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtl/phy_core.v b/rtl/phy_core.v index dd858ff..77c2642 100644 --- a/rtl/phy_core.v +++ b/rtl/phy_core.v @@ -155,12 +155,11 @@ module phy_core ( */ always @(*) begin crs = transmitting || receiving; + col = transmitting && receiving; if (coltest) col = transmitting; else if (loopback) col = 0; - else - col = transmitting && receiving; end endmodule