aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rtl/uart.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtl/uart.v b/src/rtl/uart.v
index abf3934..d5a5a86 100644
--- a/src/rtl/uart.v
+++ b/src/rtl/uart.v
@@ -99,11 +99,11 @@ module uart(
// Clock: 50 MHz
// Bitrate: 19200 bps
// Divisor = 50*10E6 / 9600 = 5208
- parameter DEFAULT_CLK_RATE = 5208;
+ parameter DEFAULT_CLK_RATE = 16'd5208;
parameter DEFAULT_HALF_CLK_RATE = DEFAULT_CLK_RATE / 2;
- parameter DEFAULT_DATA_BITS = 8;
- parameter DEFAULT_STOP_BITS = 1;
+ parameter DEFAULT_DATA_BITS = 4'h8;
+ parameter DEFAULT_STOP_BITS = 2'h2;
//----------------------------------------------------------------