1 |
d93979b7
|
Arnaud Dieumegard
|
|
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: tc1753.vhd,v 1.2 2001-10-26 16:29:43 paw Exp $
|
27 |
|
|
-- $Revision: 1.2 $
|
28 |
|
|
--
|
29 |
|
|
-- ---------------------------------------------------------------------
|
30 |
|
|
|
31 |
|
|
ENTITY c09s05b00x00p25n01i01753ent IS
|
32 |
|
|
END c09s05b00x00p25n01i01753ent;
|
33 |
|
|
|
34 |
|
|
ARCHITECTURE c09s05b00x00p25n01i01753arch OF c09s05b00x00p25n01i01753ent IS
|
35 |
|
|
type byte is array (positive range <>) of bit;
|
36 |
|
|
|
37 |
|
|
function F (constant S: byte) return bit is
|
38 |
|
|
begin
|
39 |
|
|
return '0';
|
40 |
|
|
end;
|
41 |
|
|
|
42 |
|
|
constant N : integer := 4;
|
43 |
|
|
signal UG,I : bit_vector(1 to 4);
|
44 |
|
|
signal GS, UGS : bit;
|
45 |
|
|
signal UGT : F bit register;
|
46 |
|
|
BEGIN
|
47 |
|
|
A: (I(1), I(2), I(3), I(N)) <= transport UG(1 to N) after 20 ns; -- No_failure_here
|
48 |
|
|
|
49 |
|
|
GS <= '1' after 10 ns;
|
50 |
|
|
B:block (GS = '1')
|
51 |
|
|
begin
|
52 |
|
|
C: UGT <= guarded UGS after 10 ns; -- No_failure_here
|
53 |
|
|
end block;
|
54 |
|
|
TESTING: PROCESS(I,UGT)
|
55 |
|
|
BEGIN
|
56 |
|
|
assert NOT(I="0000" and UGT='0')
|
57 |
|
|
report "***PASSED TEST: c09s05b00x00p25n01i01753"
|
58 |
|
|
severity NOTE;
|
59 |
|
|
assert (I="0000" and UGT='0')
|
60 |
|
|
report "***FAILED TEST: c09s05b00x00p25n01i01753 - An aggregate target in a concurrent signal assignment statement contains only locally static names, and no two signal names identify the same object, or subelement thereof."
|
61 |
|
|
severity ERROR;
|
62 |
|
|
END PROCESS TESTING;
|
63 |
|
|
|
64 |
|
|
END c09s05b00x00p25n01i01753arch;
|