define.h revision 12855
19243SN/A/***************************************************************************** 210889Sandreas.hansson@arm.com 39243SN/A Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 49243SN/A more contributor license agreements. See the NOTICE file distributed 59243SN/A with this work for additional information regarding copyright ownership. 69243SN/A Accellera licenses this file to you under the Apache License, Version 2.0 79243SN/A (the "License"); you may not use this file except in compliance with the 89243SN/A License. You may obtain a copy of the License at 99243SN/A 109243SN/A http://www.apache.org/licenses/LICENSE-2.0 119243SN/A 129243SN/A Unless required by applicable law or agreed to in writing, software 139243SN/A distributed under the License is distributed on an "AS IS" BASIS, 149831SN/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 159831SN/A implied. See the License for the specific language governing 169831SN/A permissions and limitations under the License. 179243SN/A 189243SN/A *****************************************************************************/ 199243SN/A 209243SN/A/***************************************************************************** 219243SN/A 229243SN/A define.h -- 239243SN/A 249243SN/A Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15 259243SN/A 269243SN/A *****************************************************************************/ 279243SN/A 289243SN/A/***************************************************************************** 299243SN/A 309243SN/A MODIFICATION LOG - modifiers, enter your name, affiliation, date and 319243SN/A changes you are making here. 329243SN/A 339243SN/A Name, Affiliation, Date: 349243SN/A Description of Modification: 359243SN/A 369243SN/A *****************************************************************************/ 379243SN/A 389243SN/A#define CLOCK_PERIOD 100 399243SN/A#define TB_CLOCK_PERIOD 50 409243SN/A#define DUTY_CYCLE 0.5 419243SN/A#define EVENT_TIME 50 429967SN/A#define TEST_TIME 50 4310618SOmar.Naji@arm.com 449243SN/A#define long_wait wait(10) 459243SN/A#define single_cycle wait(2) 469243SN/A#define set_value(var,val) wait(); var = val; wait() 479243SN/A#define test_value(actual, expected) \ 4810146Sandreas.hansson@arm.com wait (); if (expected != actual) \ 499243SN/A cout << "Mismatch. Expected: " << expected \ 509243SN/A << ". Actual: " << actual << endl; \ 5110146Sandreas.hansson@arm.com wait () 5210146Sandreas.hansson@arm.com#define test_value_now(actual, expected) \ 539243SN/A if (expected != actual) cout << "Mismatch. Expected: " << expected \ 549488SN/A << ". Actual: " << actual << endl; 5510618SOmar.Naji@arm.com 5610889Sandreas.hansson@arm.com