Entity: tb_wishbone_slave
- File: tb_wishbone_slave.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 Author Slawomir Siluk slaweksiluk@gazeta.pl
Generics
Generic name | Type | Value | Description |
---|---|---|---|
runner_cfg | string | ||
encoded_tb_cfg | string |
Signals
Name | Type | Description |
---|---|---|
clk | std_logic | |
adr | std_logic_vector(tb_cfg.adr_width-1 downto 0) | |
dat_i | std_logic_vector(tb_cfg.dat_width-1 downto 0) | |
dat_o | std_logic_vector(tb_cfg.dat_width-1 downto 0) | |
sel | std_logic_vector(tb_cfg.dat_width/8 -1 downto 0) | |
cyc | std_logic | |
stb | std_logic | |
we | std_logic | |
stall | std_logic | |
ack | std_logic | |
wr_ack_cnt | natural range 0 to tb_cfg.num_cycles | |
rd_ack_cnt | natural range 0 to tb_cfg.num_cycles |
Constants
Name | Type | Value | Description |
---|---|---|---|
tb_cfg | tb_cfg_t | decode(encoded_tb_cfg) | |
tb_logger | logger_t | get_logger("tb") | |
memory | memory_t | new_memory | |
buf | buffer_t | allocate(memory, tb_cfg.num_cycles * sel'length) |
|
wishbone_slave | wishbone_slave_t | new_wishbone_slave(memory => memory, ack_high_probability => tb_cfg.ack_prob, stall_high_probability => tb_cfg.stall_prob ) |
Types
Name | Type | Description |
---|---|---|
tb_cfg_t |
Functions
Processes
- main_stim: ( )
- wr_ack: ( )
- rd_ack: ( )
Instantiations
- dut_slave: work.wishbone_slave