Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / ashenden / compliant / ch_03_tb_03_01.vhd @ 3fd18385

History | View | Annotate | Download (3.37 KB)

1

    
2
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc
3

    
4
-- This file is part of VESTs (Vhdl tESTs).
5

    
6
-- VESTs is free software; you can redistribute it and/or modify it
7
-- under the terms of the GNU General Public License as published by the
8
-- Free Software Foundation; either version 2 of the License, or (at
9
-- your option) any later version. 
10

    
11
-- VESTs is distributed in the hope that it will be useful, but WITHOUT
12
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
-- for more details. 
15

    
16
-- You should have received a copy of the GNU General Public License
17
-- along with VESTs; if not, write to the Free Software Foundation,
18
-- Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
19

    
20
-- ---------------------------------------------------------------------
21
--
22
-- $Id: ch_03_tb_03_01.vhd,v 1.2 2001-10-24 23:30:59 paw Exp $
23
-- $Revision: 1.2 $
24
--
25
-- ---------------------------------------------------------------------
26

    
27
entity test_bench_03_01 is
28
end entity test_bench_03_01;
29

    
30
architecture test_thermostat_example of test_bench_03_01 is
31

    
32
  signal desired_temp, actual_temp : integer := 25;
33
  signal heater_on : boolean := false;
34

    
35
begin
36

    
37
  dut : entity work.thermostat(example)
38
    port map ( desired_temp => desired_temp, actual_temp => actual_temp,
39
               heater_on => heater_on );
40

    
41
  stimulus : process is
42
  begin
43
    wait for 5 sec;
44
    actual_temp <= 24;		wait for 5 sec;
45
    actual_temp <= 23;		wait for 5 sec;
46
    actual_temp <= 22;		wait for 5 sec;
47
    actual_temp <= 21;		wait for 5 sec;
48
    actual_temp <= 22;		wait for 5 sec;
49
    actual_temp <= 23;		wait for 5 sec;
50
    actual_temp <= 24;		wait for 5 sec;
51
    actual_temp <= 25;		wait for 5 sec;
52
    actual_temp <= 26;		wait for 5 sec;
53
    actual_temp <= 27;		wait for 5 sec;
54
    actual_temp <= 28;		wait for 5 sec;
55
    actual_temp <= 29;		wait for 5 sec;
56
    actual_temp <= 28;		wait for 5 sec;
57
    actual_temp <= 27;		wait for 5 sec;
58
    actual_temp <= 26;		wait for 5 sec;
59
    actual_temp <= 25;		wait for 5 sec;
60
    actual_temp <= 24;		wait for 5 sec;
61
    actual_temp <= 23;		wait for 5 sec;
62
    actual_temp <= 22;		wait for 5 sec;
63
    actual_temp <= 21;		wait for 5 sec;
64
    actual_temp <= 22;		wait for 5 sec;
65
    actual_temp <= 23;		wait for 5 sec;
66
    actual_temp <= 24;		wait for 5 sec;
67
    actual_temp <= 25;		wait for 5 sec;
68
    actual_temp <= 26;		wait for 5 sec;
69
    actual_temp <= 27;		wait for 5 sec;
70
    actual_temp <= 28;		wait for 5 sec;
71
    actual_temp <= 29;		wait for 5 sec;
72
    actual_temp <= 28;		wait for 5 sec;
73
    actual_temp <= 27;		wait for 5 sec;
74
    actual_temp <= 26;		wait for 5 sec;
75

    
76
    desired_temp <= 30;		wait for 5 sec;
77
    actual_temp <= 25;		wait for 5 sec;
78
    actual_temp <= 26;		wait for 5 sec;
79
    actual_temp <= 27;		wait for 5 sec;
80
    actual_temp <= 28;		wait for 5 sec;
81
    actual_temp <= 29;		wait for 5 sec;
82
    actual_temp <= 30;		wait for 5 sec;
83
    actual_temp <= 31;		wait for 5 sec;
84
    actual_temp <= 32;		wait for 5 sec;
85
    actual_temp <= 33;		wait for 5 sec;
86
    actual_temp <= 34;		wait for 5 sec;
87
    actual_temp <= 35;		wait for 5 sec;
88
    actual_temp <= 34;		wait for 5 sec;
89
    actual_temp <= 33;		wait for 5 sec;
90
    actual_temp <= 32;		wait for 5 sec;
91
    actual_temp <= 31;		wait for 5 sec;
92
    actual_temp <= 30;		wait for 5 sec;
93

    
94
    wait;
95
  end process stimulus;
96

    
97
end architecture test_thermostat_example;