mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-24 15:35:23 -04:00
Update PicoRV32 clock frequency to 24 MHz
Include a seed value for nextpnr to get a layout that reaches 24 MHz.
This commit is contained in:
parent
c6e8b6930c
commit
1651a1a666
5 changed files with 13 additions and 12 deletions
|
@ -83,10 +83,10 @@ module uart (
|
|||
// The default bit rate is based on target clock frequency
|
||||
// divided by the bit rate times in order to hit the
|
||||
// center of the bits. I.e.
|
||||
// Clock: 21 MHz, 62500 bps
|
||||
// Divisor = 21E6 / 62500 = 336
|
||||
// Clock: 24 MHz, 62500 bps
|
||||
// Divisor = 24E6 / 62500 = 384
|
||||
// This also satisfies 1E6 % bps == 0 for the CH552 MCU used for USB-serial
|
||||
localparam DEFAULT_BIT_RATE = 16'd336;
|
||||
localparam DEFAULT_BIT_RATE = 16'd384;
|
||||
localparam DEFAULT_DATA_BITS = 4'h8;
|
||||
localparam DEFAULT_STOP_BITS = 2'h1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue