define.h revision 12855
12623SN/A/***************************************************************************** 22623SN/A 32623SN/A Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 42623SN/A more contributor license agreements. See the NOTICE file distributed 52623SN/A with this work for additional information regarding copyright ownership. 62623SN/A Accellera licenses this file to you under the Apache License, Version 2.0 72623SN/A (the "License"); you may not use this file except in compliance with the 82623SN/A License. You may obtain a copy of the License at 92623SN/A 102623SN/A http://www.apache.org/licenses/LICENSE-2.0 112623SN/A 122623SN/A Unless required by applicable law or agreed to in writing, software 132623SN/A distributed under the License is distributed on an "AS IS" BASIS, 142623SN/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 152623SN/A implied. See the License for the specific language governing 162623SN/A permissions and limitations under the License. 172623SN/A 182623SN/A *****************************************************************************/ 192623SN/A 202623SN/A/***************************************************************************** 212623SN/A 222623SN/A define.h -- 232623SN/A 242623SN/A Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15 252623SN/A 262623SN/A *****************************************************************************/ 272665Ssaidi@eecs.umich.edu 282665Ssaidi@eecs.umich.edu/***************************************************************************** 292623SN/A 302623SN/A MODIFICATION LOG - modifiers, enter your name, affiliation, date and 312623SN/A changes you are making here. 322623SN/A 332623SN/A Name, Affiliation, Date: 342623SN/A Description of Modification: 352623SN/A 362623SN/A *****************************************************************************/ 372623SN/A 382623SN/A#define CLOCK_PERIOD 100 392623SN/A#define TB_CLOCK_PERIOD 50 402623SN/A#define DUTY_CYCLE 0.5 412623SN/A#define EVENT_TIME 50 422623SN/A#define TEST_TIME 50 432623SN/A 442623SN/A#define long_wait wait(10) 452623SN/A#define single_cycle wait(2) 462623SN/A#define set_value(var,val) wait(); var = val; wait() 472623SN/A#define test_value(actual, expected) \ 482623SN/A wait (); if (expected != actual) \ 492623SN/A cout << "Mismatch. Expected: " << expected \ 502623SN/A << ". Actual: " << actual << endl; \ 512623SN/A wait () 522623SN/A#define test_value_now(actual, expected) \ 532623SN/A if (expected != actual) cout << "Mismatch. Expected: " << expected \ 542623SN/A << ". Actual: " << actual << endl; 552623SN/A 562623SN/A