In my understanding of verilog code, it seems like (prescale * 8) * 9 bits * baud = Fclk.
*8 because prescale_reg <= (prescale << 3) in verilog code.
*9 because of the transferred 9 bits in 1 symbol.
I'm confused about
The prescale input determines the data rate - it should be set to Fclk / (baud * 8).
Do I understand the code in a wrong way?
In my understanding of verilog code, it seems like
(prescale * 8) * 9 bits * baud = Fclk.*8becauseprescale_reg <= (prescale << 3)in verilog code.*9because of the transferred 9 bits in 1 symbol.I'm confused about
Do I understand the code in a wrong way?