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

Subversion Repositories mcip_open

[/] [mcip_open/] [trunk/] [tb_MCIPopen_LCD.vhd] - Blame information for rev 4

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

Line No. Rev Author Line
1 3 mezzah
-- MCIPopen TestBench
2
 
3
  LIBRARY ieee;
4
  USE ieee.std_logic_1164.ALL;
5
  USE ieee.numeric_std.ALL;
6
 
7
  ENTITY tb_MCIPopen_LCD IS
8
  END tb_MCIPopen_LCD;
9
 
10
  ARCHITECTURE behavior OF tb_MCIPopen_LCD IS
11
 
12
 
13
          SIGNAL reset :  std_logic := '1';
14
          SIGNAL clk50MHz :  std_logic := '0';
15
          SIGNAL direction :  std_logic := '0';
16
          SIGNAL PORTA :  std_logic_vector(7 downto 0) := (others => '0');
17
 
18
          SIGNAL clock_out :  std_logic;
19
          SIGNAL PORTB :  std_logic_vector(7 downto 0);
20
          SIGNAL PORTC :  std_logic_vector(7 downto 0);
21
          SIGNAL PORTD :  std_logic_vector(7 downto 0);
22
 
23
                        constant clock_period : time := 20 ns;
24
 
25
  BEGIN
26
 
27
  -- Component Instantiation
28
          uut:  entity work.LCDapp_MCIPopen
29
Generic map(    STKPTR_length   => 5,
30
                                        STVREN                  => '1',
31
                                        WDTPS                           => "0100",
32
                                        WDTEN                           => '0',
33
                                        Banks_number    => 3,
34
                                        dm_TOPaddr              => x"2FF",
35
                                        IAlength                => 12,
36
                                        pm_TOPaddr              => '0'&x"03FFF"
37
                                        )
38
Port map ( reset              => reset,
39
           clk50MHz           => clk50MHz,
40
                          direction          => direction,
41
                          clock_out          => clock_out,
42
           PORTA              => PORTA,
43
           PORTB              => PORTB,
44
           PORTC              => PORTC,
45
           PORTD              => PORTD);
46
 
47
   clock_process :process
48
   begin
49
                clk50MHz <= '0';
50
                wait for clock_period/2;
51
                clk50MHz <= '1';
52
                wait for clock_period/2;
53
   end process;
54
 
55
  --  Test Bench Statements
56
     tb : PROCESS
57
     BEGIN
58
 
59
        wait for 100 ns; -- wait until global set/reset completes
60
 
61
        reset <= '0';
62
 
63
        wait; -- will wait forever
64
     END PROCESS tb;
65
  --  End Test Bench 
66
 
67
  END;

powered by: WebSVN 2.1.0

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