test.cpp revision 12855
12810Srdreslin@umich.edu/***************************************************************************** 211870Snikos.nikoleris@arm.com 39796Sprakash.ramrakhyani@arm.com Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 49796Sprakash.ramrakhyani@arm.com more contributor license agreements. See the NOTICE file distributed 59796Sprakash.ramrakhyani@arm.com with this work for additional information regarding copyright ownership. 69796Sprakash.ramrakhyani@arm.com Accellera licenses this file to you under the Apache License, Version 2.0 79796Sprakash.ramrakhyani@arm.com (the "License"); you may not use this file except in compliance with the 89796Sprakash.ramrakhyani@arm.com License. You may obtain a copy of the License at 99796Sprakash.ramrakhyani@arm.com 109796Sprakash.ramrakhyani@arm.com http://www.apache.org/licenses/LICENSE-2.0 119796Sprakash.ramrakhyani@arm.com 129796Sprakash.ramrakhyani@arm.com Unless required by applicable law or agreed to in writing, software 139796Sprakash.ramrakhyani@arm.com distributed under the License is distributed on an "AS IS" BASIS, 142810Srdreslin@umich.edu WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 152810Srdreslin@umich.edu implied. See the License for the specific language governing 162810Srdreslin@umich.edu permissions and limitations under the License. 172810Srdreslin@umich.edu 182810Srdreslin@umich.edu *****************************************************************************/ 192810Srdreslin@umich.edu 202810Srdreslin@umich.edu/***************************************************************************** 212810Srdreslin@umich.edu 222810Srdreslin@umich.edu test.cpp -- 232810Srdreslin@umich.edu 242810Srdreslin@umich.edu Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15 252810Srdreslin@umich.edu 262810Srdreslin@umich.edu *****************************************************************************/ 272810Srdreslin@umich.edu 282810Srdreslin@umich.edu/***************************************************************************** 292810Srdreslin@umich.edu 302810Srdreslin@umich.edu MODIFICATION LOG - modifiers, enter your name, affiliation, date and 312810Srdreslin@umich.edu changes you are making here. 322810Srdreslin@umich.edu 332810Srdreslin@umich.edu Name, Affiliation, Date: 342810Srdreslin@umich.edu Description of Modification: 352810Srdreslin@umich.edu 362810Srdreslin@umich.edu *****************************************************************************/ 372810Srdreslin@umich.edu 382810Srdreslin@umich.edu#include "test.h" 392810Srdreslin@umich.edu 402810Srdreslin@umich.edu/* From Test Case 53.sc */ 412810Srdreslin@umich.eduvoid test::entry() 422810Srdreslin@umich.edu{ 432810Srdreslin@umich.edu while (true) { 442810Srdreslin@umich.edu 452810Srdreslin@umich.edu do { wait(); } while (cont1 != 1); 462810Srdreslin@umich.edu 472810Srdreslin@umich.edu wait(); 4811486Snikos.nikoleris@arm.com while (i1 < 4) { 4911486Snikos.nikoleris@arm.com o1 = 0; 506216Snate@binkert.org wait (); 512810Srdreslin@umich.edu do { wait(); } while (cont2 != 1); 522810Srdreslin@umich.edu o1 = 1; 532810Srdreslin@umich.edu wait (); 542814Srdreslin@umich.edu } 552810Srdreslin@umich.edu wait(); 562810Srdreslin@umich.edu 572810Srdreslin@umich.edu 589796Sprakash.ramrakhyani@arm.com } 5910360Sandreas.hansson@arm.com} 602810Srdreslin@umich.edu 612810Srdreslin@umich.edu