phy_core: Simplify collision logic
This mildly simplifies the collision logic. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
2eac757fd7
commit
040016bd44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue