We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latches are inferred for out_dp and out_dn at: https://github.com/ultraembedded/core_usb_fs_phy/blob/master/src_v/usb_transceiver.v#L101
out_dp
out_dn
What is the proper way to rewrite it to remove the latch ?
Would following change be ok ?
diff --git a/src_v/usb_transceiver.v b/src_v/usb_transceiver.v index 53b6a63..9d81abf 100644 --- a/src_v/usb_transceiver.v +++ b/src_v/usb_transceiver.v @@ -121,14 +121,14 @@ begin : MUX out_dp = 1'b1; out_dn = 1'b0; end - else if (usb_phy_tx_dp_i == 1'b1 && usb_phy_tx_dn_i == 1'b1) + else begin // SE0 (both low) out_dp = 1'b0; out_dn = 1'b0; end end - 1'b1 : + default : begin if (usb_phy_tx_dp_i == 1'b0 && usb_phy_tx_dn_i == 1'b0) begin @@ -148,7 +148,7 @@ begin : MUX out_dp = 1'b1; out_dn = 1'b0; end - else if (usb_phy_tx_dp_i == 1'b1 && usb_phy_tx_dn_i == 1'b1) + else begin // Illegal out_dp = 1'b1;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Latches are inferred for
out_dp
andout_dn
at:https://github.com/ultraembedded/core_usb_fs_phy/blob/master/src_v/usb_transceiver.v#L101
What is the proper way to rewrite it to remove the latch ?
Would following change be ok ?
The text was updated successfully, but these errors were encountered: