Entity: tb_uart_rx
- File: tb_uart_rx.vhd
Diagram
Description
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2014-2021, Lars Asplund lars.anders.asplund@gmail.com
Generics
| Generic name | Type | Value | Description |
|---|---|---|---|
| runner_cfg | string |
Signals
| Name | Type | Description |
|---|---|---|
| clk | std_logic | |
| rx | std_logic | |
| overflow | std_logic | |
| tready | std_logic | |
| tvalid | std_Logic | |
| tdata | std_logic_vector(7 downto 0) | |
| num_overflows | integer |
Constants
| Name | Type | Value | Description |
|---|---|---|---|
| baud_rate | integer | 115200 | bits / s |
| clk_period | integer | 20 | ns |
| cycles_per_bit | integer | 50 * 10**6 / baud_rate | |
| uart_bfm | uart_master_t | new_uart_master(initial_baud_rate => baud_rate) | |
| uart_stream | stream_master_t | as_stream(uart_bfm) | |
| axi_stream_bfm | axi_stream_slave_t | new_axi_stream_slave(data_length => tdata'length) | |
| axi_stream | stream_slave_t | as_stream(axi_stream_bfm) |
Processes
- main: ( )
- overflow_counter: ( clk )
Instantiations
- dut: uart_lib.uart_rx
- uart_master_bfm: vunit_lib.uart_master
- axi_stream_slave_bfm: vunit_lib.axi_stream_slave