1
|
|
2
|
-- Copyright (C) 2001 Bill Billowitch.
|
3
|
|
4
|
-- Some of the work to develop this test suite was done with Air Force
|
5
|
-- support. The Air Force and Bill Billowitch assume no
|
6
|
-- responsibilities for this software.
|
7
|
|
8
|
-- This file is part of VESTs (Vhdl tESTs).
|
9
|
|
10
|
-- VESTs is free software; you can redistribute it and/or modify it
|
11
|
-- under the terms of the GNU General Public License as published by the
|
12
|
-- Free Software Foundation; either version 2 of the License, or (at
|
13
|
-- your option) any later version.
|
14
|
|
15
|
-- VESTs is distributed in the hope that it will be useful, but WITHOUT
|
16
|
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
17
|
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
18
|
-- for more details.
|
19
|
|
20
|
-- You should have received a copy of the GNU General Public License
|
21
|
-- along with VESTs; if not, write to the Free Software Foundation,
|
22
|
-- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23
|
|
24
|
-- ---------------------------------------------------------------------
|
25
|
--
|
26
|
-- $Id: tc1906.vhd,v 1.2 2001-10-26 16:29:43 paw Exp $
|
27
|
-- $Revision: 1.2 $
|
28
|
--
|
29
|
-- ---------------------------------------------------------------------
|
30
|
|
31
|
ENTITY c07s01b00x00p10n01i01906ent IS
|
32
|
END c07s01b00x00p10n01i01906ent;
|
33
|
|
34
|
ARCHITECTURE c07s01b00x00p10n01i01906arch OF c07s01b00x00p10n01i01906ent IS
|
35
|
type MVL is ('0','1','X','Z') ;
|
36
|
signal Q : MVL;
|
37
|
signal PP,P2 : BIT := '1' ;
|
38
|
signal R1 : BIT;
|
39
|
BEGIN
|
40
|
TESTING: PROCESS
|
41
|
function "and" (L,R : MVL) return MVL is
|
42
|
variable V1 : MVL;
|
43
|
begin
|
44
|
if (L = '1') then
|
45
|
V1 := '1' ;
|
46
|
end if;
|
47
|
return V1;
|
48
|
end;
|
49
|
BEGIN
|
50
|
Q <= "and"('1','Z'); -- No_failure_here
|
51
|
R1 <= PP and P2;
|
52
|
wait for 1 ns;
|
53
|
assert NOT((Q='1') and (R1='1'))
|
54
|
report "***PASSED TEST: c07s01b00x00p10n01i01906"
|
55
|
severity NOTE;
|
56
|
assert (( Q='1' ) and (R1='1'))
|
57
|
report "***FAILED TEST: c07s01b00x00p10n01i01906 - The identification of an overloaded operator depends on the context."
|
58
|
severity ERROR;
|
59
|
wait;
|
60
|
END PROCESS TESTING;
|
61
|
|
62
|
END c07s01b00x00p10n01i01906arch;
|