| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| `include "uvm_macros.svh" |
| // 1 start + 8 data + 1 stop |
| parameter uint NUM_UART_XFER_BITS_WO_PARITY = 10; |
| function automatic real get_baud_rate_period_ns(baud_rate_e baud_rate); |
| // return 10^9 / baud_rate ns upto 3 decimal places |
| BaudRate9600 : return 104166.667; |
| BaudRate115200: return 8680.556; |
| BaudRate230400: return 4340.278; |
| BaudRate1Mbps : return 953.674; |
| BaudRate2Mbps : return 476.837; |
| default: `uvm_fatal("uart_agent_pkg", {"Unsupported baud_rate: ", baud_rate.name}) |
| `include "uart_agent_cfg.sv" |
| `include "uart_agent_cov.sv" |
| `include "uart_monitor.sv" |
| `include "uart_driver.sv" |
| `include "uart_sequencer.sv" |
| `include "uart_logger.sv" |
| `include "uart_seq_list.sv" |