We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c0e9b commit cf4e343Copy full SHA for cf4e343
rtl/i2c_master.v
@@ -857,7 +857,7 @@ always @(posedge clk) begin
857
scl_o_reg <= scl_o_next;
858
sda_o_reg <= sda_o_next;
859
860
- busy_reg <= !(state_reg == STATE_IDLE || state_reg == STATE_ACTIVE_WRITE || state_reg == STATE_ACTIVE_READ);
+ busy_reg <= !(state_reg == STATE_IDLE || state_reg == STATE_ACTIVE_WRITE || state_reg == STATE_ACTIVE_READ) || !(phy_state_reg == PHY_STATE_IDLE || phy_state_reg == PHY_STATE_ACTIVE);
861
862
if (start_bit) begin
863
bus_active_reg <= 1'b1;
0 commit comments