Skip to content

A small modification #7

@CHENfd515

Description

@CHENfd515

Hi, this is Alex.

I suggest that we replace the expression "wire next_bit = cycle_counter == CYCLES_PER_BIT;" [uart_tx.v (line:92)] with a new one: "wire next_bit = cycle_counter == (CYCLES_PER_BIT >= 1 ? CYCLES_PER_BIT - 1 : 0);".

This change is necessary because when BIT_RATE is equal to CLK_HZ, the module does not transfer data at a rate of one bit per cycle, leading to a redundant cycle. (see below)

before modification: a redundant cycle

After making this modification, the waveform will look like this:

after modification

Best Regards.

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