In file baud_gen.v line 9, written "baud_limit = (global_clock_freq / gcd(global_clock_freq, 16baud_rate)) - baud_freq"; I think it should be "baud_limit = (global_clock_freq / gcd(global_clock_freq, 16baud_rate))",is it right? if not,can you explain the formula? thank you!
Actually, the formula in the calculation is correct. The subtraction of "baud_freq" is due to the condition in the "counter" variable on line 36 of the same module. The "counter" gets assigned a value greater than "baud_limit" and then decreased by "baud_limit".