56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
#ifndef __delay_H
|
|
#define __delay_H
|
|
/*
|
|
* Copyright 2005 Stephen Williams
|
|
*
|
|
* This source code is free software; you can redistribute it
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
* General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
*/
|
|
#ifdef HAVE_CVS_IDENT
|
|
#ident "$Id: delay.h,v 1.5 2005/04/03 05:45:51 steve Exp $"
|
|
#endif
|
|
|
|
/*
|
|
*/
|
|
|
|
# include "vvp_net.h"
|
|
|
|
/*
|
|
* Instances of this object are functions that calculate the delay for
|
|
* the transition from the source vvp_bit4_t value to the destination
|
|
* value.
|
|
*/
|
|
class vvp_delay_t {
|
|
|
|
public:
|
|
vvp_delay_t(vvp_time64_t rise, vvp_time64_t fall);
|
|
vvp_delay_t(vvp_time64_t rise, vvp_time64_t fall, vvp_time64_t decay);
|
|
~vvp_delay_t();
|
|
|
|
vvp_time64_t get_delay(vvp_bit4_t from, vvp_bit4_t to);
|
|
|
|
private:
|
|
vvp_time64_t rise_, fall_, decay_;
|
|
vvp_time64_t min_delay_;
|
|
};
|
|
|
|
/*
|
|
* $Log: delay.h,v $
|
|
* Revision 1.5 2005/04/03 05:45:51 steve
|
|
* Rework the vvp_delay_t class.
|
|
*
|
|
*/
|
|
#endif // __delay_H
|