-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated all Wishbone VCs and VCIs to comply with new standard
- Loading branch information
1 parent
37af1f1
commit ff6737a
Showing
9 changed files
with
600 additions
and
66 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
vunit/vhdl/verification_components/.vc/tb_wishbone_master_compliance_template.vhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
-- 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-2020, Lars Asplund [email protected] | ||
|
||
library ieee; | ||
library osvvm; | ||
library vunit_lib; | ||
context vunit_lib.com_context; | ||
context vunit_lib.vunit_context; | ||
use ieee.std_logic_1164.all; | ||
use osvvm.randompkg.all; | ||
use vunit_lib.bus_master_pkg.all; | ||
use vunit_lib.check_pkg.all; | ||
use vunit_lib.com_types_pkg.all; | ||
use vunit_lib.log_levels_pkg.all; | ||
use vunit_lib.logger_pkg.all; | ||
use vunit_lib.queue_pkg.all; | ||
use vunit_lib.sync_pkg.all; | ||
use vunit_lib.vc_pkg.all; | ||
use vunit_lib.wishbone_pkg.all; | ||
|
||
entity tb_wishbone_master_compliance is | ||
generic( | ||
runner_cfg : string); | ||
end entity; | ||
|
||
architecture tb of tb_wishbone_master_compliance is | ||
|
||
constant wishbone_master : wishbone_master_t := new_wishbone_master( | ||
data_length => 32, | ||
address_length => 32 | ||
); | ||
|
||
signal clk : std_logic; | ||
signal adr : std_logic_vector(31 downto 0); | ||
signal dat_i : std_logic_vector(31 downto 0); | ||
signal dat_o : std_logic_vector(31 downto 0); | ||
signal sel : std_logic_vector(3 downto 0); | ||
signal cyc : std_logic; | ||
signal stb : std_logic; | ||
signal we : std_logic; | ||
signal stall : std_logic; | ||
signal ack : std_logic; | ||
|
||
begin | ||
-- DO NOT modify the test runner process. | ||
test_runner : process | ||
begin | ||
test_runner_setup(runner, runner_cfg); | ||
test_runner_cleanup(runner); | ||
end process test_runner; | ||
|
||
-- DO NOT modify the VC instantiation. | ||
vc_inst: entity vunit_lib.wishbone_master | ||
generic map(wishbone_master) | ||
port map( | ||
clk => clk, | ||
adr => adr, | ||
dat_i => dat_i, | ||
dat_o => dat_o, | ||
sel => sel, | ||
cyc => cyc, | ||
stb => stb, | ||
we => we, | ||
stall => stall, | ||
ack => ack | ||
); | ||
|
||
end architecture; |
65 changes: 65 additions & 0 deletions
65
vunit/vhdl/verification_components/.vc/tb_wishbone_slave_compliance_template.vhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
-- 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-2020, Lars Asplund [email protected] | ||
|
||
library ieee; | ||
library osvvm; | ||
library vunit_lib; | ||
context vunit_lib.com_context; | ||
context vunit_lib.vunit_context; | ||
use ieee.numeric_std.all; | ||
use ieee.std_logic_1164.all; | ||
use osvvm.randompkg.all; | ||
use vunit_lib.memory_pkg.all; | ||
use vunit_lib.sync_pkg.all; | ||
use vunit_lib.vc_pkg.all; | ||
use vunit_lib.wishbone_pkg.all; | ||
|
||
entity tb_wishbone_slave_compliance is | ||
generic( | ||
runner_cfg : string); | ||
end entity; | ||
|
||
architecture tb of tb_wishbone_slave_compliance is | ||
|
||
constant memory : memory_t := new_memory; | ||
constant wishbone_slave : wishbone_slave_t := new_wishbone_slave( | ||
memory => memory | ||
); | ||
|
||
signal clk : std_logic; | ||
signal adr : std_logic_vector(31 downto 0) := (others => '0'); | ||
signal dat_i : std_logic_vector(31 downto 0) := (others => '0'); | ||
signal dat_o : std_logic_vector(31 downto 0) := (others => '0'); | ||
signal sel : std_logic_vector(3 downto 0) := (others => '1'); | ||
signal cyc : std_logic; | ||
signal stb : std_logic; | ||
signal we : std_logic; | ||
signal stall : std_logic; | ||
signal ack : std_logic; | ||
|
||
begin | ||
test_runner : process | ||
begin | ||
test_runner_setup(runner, runner_cfg); | ||
test_runner_cleanup(runner); | ||
end process test_runner; | ||
|
||
vc_inst: entity vunit_lib.wishbone_slave | ||
generic map(wishbone_slave) | ||
port map( | ||
clk => clk, | ||
adr => adr, | ||
dat_i => dat_i, | ||
dat_o => dat_o, | ||
sel => sel, | ||
cyc => cyc, | ||
stb => stb, | ||
we => we, | ||
stall => stall, | ||
ack => ack | ||
); | ||
|
||
end architecture; |
34 changes: 34 additions & 0 deletions
34
...hdl/verification_components/.vc/wishbone_pkg/tb_wishbone_master_t_compliance_template.vhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- 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-2020, Lars Asplund [email protected] | ||
|
||
library ieee; | ||
library vunit_lib; | ||
context vunit_lib.com_context; | ||
context vunit_lib.vunit_context; | ||
use ieee.std_logic_1164.all; | ||
use vunit_lib.bus_master_pkg.all; | ||
use vunit_lib.memory_pkg.all; | ||
use vunit_lib.sync_pkg.all; | ||
use vunit_lib.vc_pkg.all; | ||
use vunit_lib.wishbone_pkg.all; | ||
|
||
entity tb_wishbone_master_t_compliance is | ||
generic( | ||
runner_cfg : string); | ||
end entity; | ||
|
||
architecture tb of tb_wishbone_master_t_compliance is | ||
begin | ||
test_runner : process | ||
constant data_length : natural := 32; | ||
constant address_length : natural := 32; | ||
|
||
-- DO NOT modify this line and the lines below. | ||
begin | ||
test_runner_setup(runner, runner_cfg); | ||
test_runner_cleanup(runner); | ||
end process test_runner; | ||
end architecture; |
33 changes: 33 additions & 0 deletions
33
...vhdl/verification_components/.vc/wishbone_pkg/tb_wishbone_slave_t_compliance_template.vhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- 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-2020, Lars Asplund [email protected] | ||
|
||
library ieee; | ||
library vunit_lib; | ||
context vunit_lib.com_context; | ||
context vunit_lib.vunit_context; | ||
use ieee.std_logic_1164.all; | ||
use vunit_lib.bus_master_pkg.all; | ||
use vunit_lib.memory_pkg.all; | ||
use vunit_lib.sync_pkg.all; | ||
use vunit_lib.vc_pkg.all; | ||
use vunit_lib.wishbone_pkg.all; | ||
|
||
entity tb_wishbone_slave_t_compliance is | ||
generic( | ||
runner_cfg : string); | ||
end entity; | ||
|
||
architecture tb of tb_wishbone_slave_t_compliance is | ||
begin | ||
test_runner : process | ||
constant memory : memory_t := new_memory; | ||
|
||
-- DO NOT modify this line and the lines below. | ||
begin | ||
test_runner_setup(runner, runner_cfg); | ||
test_runner_cleanup(runner); | ||
end process test_runner; | ||
end architecture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.