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: tc3101.vhd,v 1.2 2001-10-26 16:29:51 paw Exp $ 27-- $Revision: 1.2 $ 28-- 29-- --------------------------------------------------------------------- 30 31ENTITY c05s01b00x00p11n01i03101ent IS 32 ATTRIBUTE attr1 : INTEGER; 33END c05s01b00x00p11n01i03101ent; 34 35ARCHITECTURE c05s01b00x00p11n01i03101arch OF c05s01b00x00p11n01i03101ent IS 36 37 FUNCTION one ( par1 : INTEGER ) RETURN INTEGER IS BEGIN END; 38 FUNCTION two ( par1 : INTEGER ) RETURN INTEGER IS BEGIN END; 39 FUNCTION tww ( par1,par2 : STRING ) RETURN INTEGER IS BEGIN END; 40 41 ATTRIBUTE attr1 OF all: FUNCTION IS 99; 42 43BEGIN 44 TESTING: PROCESS 45 BEGIN 46 ASSERT one'attr1 = 99 REPORT "ERROR: Wrong value for one 'attr1" SEVERITY FAILURE; 47 ASSERT two'attr1 = 99 REPORT "ERROR: Wrong value for two 'attr1" SEVERITY FAILURE; 48 ASSERT tww'attr1 = 99 REPORT "ERROR: Wrong value for tww 'attr1" SEVERITY FAILURE; 49 50 assert NOT( one'attr1 = 99 and 51 two'attr1 = 99 and 52 tww'attr1 = 99 ) 53 report "***PASSED TEST: c05s01b00x00p11n01i03101" 54 severity NOTE; 55 assert ( one'attr1 = 99 and 56 two'attr1 = 99 and 57 tww'attr1 = 99 ) 58 report "***FAILED TEST: c05s01b00x00p11n01i03101 - Reserved word all as attribute specification test failed." 59 severity ERROR; 60 wait; 61 END PROCESS TESTING; 62 63END c05s01b00x00p11n01i03101arch; 64