dist.h revision 12855:588919e0e4aa
16657Snate@binkert.org/***************************************************************************** 26657Snate@binkert.org 36657Snate@binkert.org Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 46657Snate@binkert.org more contributor license agreements. See the NOTICE file distributed 56657Snate@binkert.org with this work for additional information regarding copyright ownership. 66657Snate@binkert.org Accellera licenses this file to you under the Apache License, Version 2.0 76657Snate@binkert.org (the "License"); you may not use this file except in compliance with the 86657Snate@binkert.org License. You may obtain a copy of the License at 96657Snate@binkert.org 106657Snate@binkert.org http://www.apache.org/licenses/LICENSE-2.0 116657Snate@binkert.org 126657Snate@binkert.org Unless required by applicable law or agreed to in writing, software 136657Snate@binkert.org distributed under the License is distributed on an "AS IS" BASIS, 146657Snate@binkert.org WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 156657Snate@binkert.org implied. See the License for the specific language governing 166657Snate@binkert.org permissions and limitations under the License. 176657Snate@binkert.org 186657Snate@binkert.org *****************************************************************************/ 196657Snate@binkert.org 206657Snate@binkert.org/***************************************************************************** 216657Snate@binkert.org 226657Snate@binkert.org dist.h -- Definition of the odometers. 236657Snate@binkert.org 246657Snate@binkert.org Original Author: Ali Dasdan, Synopsys, Inc. 256657Snate@binkert.org 266657Snate@binkert.org *****************************************************************************/ 276657Snate@binkert.org 286999Snate@binkert.org/***************************************************************************** 296657Snate@binkert.org 306657Snate@binkert.org MODIFICATION LOG - modifiers, enter your name, affiliation, date and 316657Snate@binkert.org changes you are making here. 329302Snilay@cs.wisc.edu 336657Snate@binkert.org Name, Affiliation, Date: 3411117Snilay@cs.wisc.edu Description of Modification: 3511117Snilay@cs.wisc.edu 3611117Snilay@cs.wisc.edu *****************************************************************************/ 3711117Snilay@cs.wisc.edu 3811117Snilay@cs.wisc.edu#ifndef DIST_H 396657Snate@binkert.org#define DIST_H 406657Snate@binkert.org 416657Snate@binkert.orgSC_MODULE( dist_mod ) 426657Snate@binkert.org{ 436657Snate@binkert.org // Ports: 446657Snate@binkert.org sc_in<bool> pulse; // Pulse coming ftom the pulse generator. 456657Snate@binkert.org 466657Snate@binkert.org // Compute the total and partial distances travelled. 476657Snate@binkert.org void get_dist_proc(); 486657Snate@binkert.org 496657Snate@binkert.org SC_CTOR( dist_mod ) 506882SBrad.Beckmann@amd.com { 516657Snate@binkert.org SC_THREAD( get_dist_proc ); 526657Snate@binkert.org sensitive << pulse.pos(); 536657Snate@binkert.org } 546657Snate@binkert.org 556657Snate@binkert.org}; 566657Snate@binkert.org 576657Snate@binkert.org#endif 586657Snate@binkert.org