Files
willi_board/tb/toplevel_tb.vhd
2013-03-12 19:45:08 +01:00

89 lines
2.4 KiB
VHDL

-------------------------------------------------------------------------------
-- Title : Testbench for design "toplevel"
-- Project :
-------------------------------------------------------------------------------
-- File : toplevel_tb.vhd
-- Author : Matthias Blankertz <matthias@matthias-tp>
-- Company :
-- Created : 2013-03-12
-- Last update: 2013-03-12
-- Platform :
-- Standard : VHDL'87
-------------------------------------------------------------------------------
-- Description:
-------------------------------------------------------------------------------
-- Copyright (c) 2013
-------------------------------------------------------------------------------
-- Revisions :
-- Date Version Author Description
-- 2013-03-12 1.0 matthias Created
-------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
-------------------------------------------------------------------------------
entity toplevel_tb is
end toplevel_tb;
-------------------------------------------------------------------------------
architecture testbench of toplevel_tb is
component toplevel
generic (
dontcare : std_logic);
port (
clkin : in std_logic;
led : out std_logic_vector(7 downto 0);
sseg_an : out std_logic_vector(3 downto 0);
sseg_cat : out std_logic_vector(7 downto 0));
end component;
-- component generics
constant dontcare : std_logic := '0';
-- component ports
signal clkin : std_logic := '0';
signal led : std_logic_vector(7 downto 0);
signal sseg_an : std_logic_vector(3 downto 0);
signal sseg_cat : std_logic_vector(7 downto 0);
begin -- testbench
-- component instantiation
DUT: toplevel
generic map (
dontcare => dontcare)
port map (
clkin => clkin,
led => led,
sseg_an => sseg_an,
sseg_cat => sseg_cat);
-- clock generation
clkin <= not clkin after 10 ns;
-- waveform generation
WaveGen_Proc: process
begin
-- insert signal assignments here
wait;
end process WaveGen_Proc;
end testbench;
-------------------------------------------------------------------------------
configuration toplevel_tb_testbench_cfg of toplevel_tb is
for testbench
end for;
end toplevel_tb_testbench_cfg;
-------------------------------------------------------------------------------