Package: uart_env_pkg
- File: uart_env_pkg.sv
Description
Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0
Constants
Name | Type | Value | Description |
---|---|---|---|
uint | uint | 32 | local types |
uint | uint | 1 | alerts |
LIST_OF_ALERTS | string | { "fatal_fault"} |
Types
Name | Type | Description |
---|---|---|
uart_intr_e | enum int { TxWatermark = 0, RxWatermark = 1, TxEmpty = 2, RxOverflow = 3, RxFrameErr = 4, RxBreakErr = 5, RxTimeout = 6, RxParityErr = 7, NumUartIntr = 8 } |
Functions
- get_watermark_bytes_by_level (int lvl,
uart_dir_e) return (int)
Description
get the number of bytes that triggers watermark interrupt
- get_break_bytes_by_level (int) return (int)
Description
get the number of bytes that triggers break interrupt
- get_nco (baud_rate_e baud_rate,
int clk_freq_mhz,
int nco_width) return (int)
Description
calculate the nco