| // 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" |
| 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; |
| `include "uart_agent_cfg.sv" |
| `include "uart_agent_cov.sv" |
| `include "uart_monitor.sv" |
| `include "uart_driver.sv" |
| `include "uart_sequencer.sv" |
| `include "uart_seq_list.sv" |