verilog-i2c icon indicating copy to clipboard operation
verilog-i2c copied to clipboard

Tweaks to make Verilator Happy

Open mattofak opened this issue 2 years ago • 0 comments

When simulating the i2c master module under verilator, several linting errors occurred that this commit addresses.

Specifically

  • Several types were of excessive length and were subject to vector length mismatch errors.
  • The PHY and controller state machines did not have a default case and do not cover the entire potential space, so a specious default was added to reset back to IDLE in the case of error.

mattofak avatar Jan 11 '23 21:01 mattofak