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
|
always @(*) begin
|
||||||
crs = transmitting || receiving;
|
crs = transmitting || receiving;
|
||||||
|
col = transmitting && receiving;
|
||||||
if (coltest)
|
if (coltest)
|
||||||
col = transmitting;
|
col = transmitting;
|
||||||
else if (loopback)
|
else if (loopback)
|
||||||
col = 0;
|
col = 0;
|
||||||
else
|
|
||||||
col = transmitting && receiving;
|
|
||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
Loading…
Reference in New Issue