OpenCores
URL https://opencores.org/ocsvn/xucpu/xucpu/trunk

Subversion Repositories xucpu

[/] [xucpu/] [trunk/] [VHDL/] [ROM/] [tb_rom.vhdl] - Blame information for rev 13

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 lcdsgmtr
-- Copyright 2015, Jürgen Defurne
2
--
3
-- This file is part of the Experimental Unstable CPU System.
4
--
5
-- The Experimental Unstable CPU System Is free software: you can redistribute
6
-- it and/or modify it under the terms of the GNU Lesser General Public License
7
-- as published by the Free Software Foundation, either version 3 of the
8
-- License, or (at your option) any later version.
9
--
10
-- The Experimental Unstable CPU System is distributed in the hope that it will
11
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
13
-- General Public License for more details.
14
--
15
-- You should have received a copy of the GNU Lesser General Public License
16
-- along with Experimental Unstable CPU System. If not, see
17
-- http://www.gnu.org/licenses/lgpl.txt.
18
 
19
 
20
LIBRARY ieee;
21
USE ieee.std_logic_1164.ALL;
22
 
23
-- Uncomment the following library declaration if using
24
-- arithmetic functions with Signed or Unsigned values
25
--USE ieee.numeric_std.ALL;
26
 
27
ENTITY tb_rom IS
28
END tb_rom;
29
 
30
ARCHITECTURE behavior OF tb_rom IS
31
 
32
  -- Component Declaration for the Unit Under Test (UUT)
33
 
34
  COMPONENT driver
35
    PORT(
36
      clk : IN  STD_LOGIC;
37
      led : OUT STD_LOGIC_VECTOR(7 DOWNTO 0)
38
      );
39
  END COMPONENT;
40
 
41
 
42
  --Inputs
43
  SIGNAL clk : STD_LOGIC := '0';
44
 
45
  --Outputs
46
  SIGNAL led : STD_LOGIC_VECTOR(7 DOWNTO 0);
47
 
48
  -- Clock period definitions
49
  CONSTANT clk_period : TIME := 10 ns;
50
 
51
BEGIN
52
 
53
  -- Instantiate the Unit Under Test (UUT)
54
  uut : driver PORT MAP (
55
    clk => clk,
56
    led => led
57
    );
58
 
59
  -- Clock process definitions
60
  clk_process : PROCESS
61
  BEGIN
62
    clk <= '0';
63
    WAIT FOR clk_period/2;
64
    clk <= '1';
65
    WAIT FOR clk_period/2;
66
  END PROCESS;
67
 
68
 
69
  -- Stimulus process
70
  stim_proc : PROCESS
71
  BEGIN
72
    -- hold reset state for 20 ns.
73
    WAIT FOR 20 ns;
74
    WAIT;
75
  END PROCESS;
76
 
77
END;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.