Line 23... |
Line 23... |
---- ----
|
---- ----
|
---- Author(s): ----
|
---- Author(s): ----
|
---- - Per Larsson, pela.opencores@gmail.com ----
|
---- - Per Larsson, pela.opencores@gmail.com ----
|
---- ----
|
---- ----
|
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
---- ----
|
|
---- Copyright (C) 2013-2014 Authors and OPENCORES.ORG ----
|
|
---- ----
|
|
---- This source file may be used and distributed without ----
|
|
---- restriction provided that this copyright statement is not ----
|
|
---- removed from the file and that any derivative work contains ----
|
|
---- the original copyright notice and the associated disclaimer. ----
|
|
---- ----
|
|
---- This source file is free software; you can redistribute it ----
|
|
---- and/or modify it under the terms of the GNU Lesser General ----
|
|
---- Public License as published by the Free Software Foundation; ----
|
|
---- either version 2.1 of the License, or (at your option) any ----
|
|
---- later version. ----
|
|
---- ----
|
|
---- This source is distributed in the hope that it will be ----
|
|
---- useful, but WITHOUT ANY WARRANTY; without even the implied ----
|
|
---- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ----
|
|
---- PURPOSE. See the GNU Lesser General Public License for more ----
|
|
---- details. ----
|
|
---- ----
|
|
---- You should have received a copy of the GNU Lesser General ----
|
|
---- Public License along with this source; if not, download it ----
|
|
---- from http://www.opencores.org/lgpl.shtml ----
|
|
---- ----
|
|
----------------------------------------------------------------------
|
|
library ieee;
|
library ieee;
|
use ieee.std_logic_1164.all;
|
use ieee.std_logic_1164.all;
|
use std.textio.all;
|
use std.textio.all;
|
use work.txt_util.all;
|
use work.txt_util.all;
|
use work.pltbutils_func_pkg.all;
|
use work.pltbutils_func_pkg.all;
|
use work.pltbutils_comp_pkg.all;
|
use work.pltbutils_comp_pkg.all;
|
-- < Template info: add more libraries here, if needed >
|
-- < Template info: add more libraries here, if needed >
|
|
|
entity tb_template2 is
|
entity tb_template2 is
|
generic (
|
generic (
|
-- < Template info: add generics here if needed, or remove the generic block >
|
G_CLK_PERIOD : time := 10 ns; -- < Template info: change value if needed >
|
|
G_SKIPTESTS : std_logic_vector := (
|
|
'0', -- Dummy
|
|
'0', -- Test 1
|
|
'0' -- Test 2
|
|
-- ... etc
|
|
);
|
|
-- < Template info: add more generics here if needed >
|
);
|
);
|
end entity tb_template2;
|
end entity tb_template2;
|
|
|
architecture bhv of tb_template2 is
|
architecture bhv of tb_template2 is
|
|
|
Line 96... |
Line 79... |
stop_sim_i => pltbs.stop_sim
|
stop_sim_i => pltbs.stop_sim
|
);
|
);
|
|
|
tc0 : entity work.tc_template2
|
tc0 : entity work.tc_template2
|
generic map (
|
generic map (
|
-- < Template info: add generics for testcase component here, if any. >
|
G_SKIPTESTS => G_SKIPTESTS
|
|
-- < Template info: add more generics for testcase component here, if needed. >
|
)
|
)
|
port map(
|
port map(
|
clk => clk, -- Template example
|
clk => clk, -- Template example
|
rst => rst, -- Template example
|
rst => rst, -- Template example
|
-- < Template info: add more ports for testcase component here. >
|
-- < Template info: add more ports for testcase component here. >
|