Skip to content

Could you explain why the prescale should be set to Fclk / (baud * 8) according to verilog code? #2

Description

@wuzh07

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions