phy_core: Simplify collision logic

This mildly simplifies the collision logic.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2022-11-30 18:12:13 -05:00
parent 2eac757fd7
commit 040016bd44
1 changed files with 1 additions and 2 deletions

View File

@ -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