iverilog/vvp/schedule.h

64 lines
2.0 KiB
C
Raw Normal View History

2001-03-11 01:29:38 +01:00
#ifndef __schedule_H
#define __schedule_H
/*
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
*
* 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
*/
#if !defined(WINNT)
2001-03-11 23:42:11 +01:00
#ident "$Id: schedule.h,v 1.2 2001/03/11 22:42:11 steve Exp $"
2001-03-11 01:29:38 +01:00
#endif
# include "vthread.h"
# include "pointers.h"
2001-03-11 23:42:11 +01:00
/*
* This causes a thread to be scheduled for execution. The schedule
* puts the event into the event queue after any existing events for a
* given time step. The delay is a relative time.
*/
2001-03-11 01:29:38 +01:00
extern void schedule_vthread(vthread_t thr, unsigned delay);
2001-03-11 23:42:11 +01:00
/*
* Create a propagation event. The fun parameter points to the functor
* to have its output propagated, and the delay is the delay to
* schedule the propagation.
*/
2001-03-11 01:29:38 +01:00
extern void schedule_functor(vvp_ipoint_t fun, unsigned delay);
2001-03-11 23:42:11 +01:00
/*
* Create an assignment event. The val passed here will be assigned to
* the specified input when the delay times out.
*/
extern void schedule_assign(vvp_ipoint_t fun, unsigned char val,
unsigned delay);
/*
* This runs the simulator. It runs until all the functors run out.
*/
2001-03-11 01:29:38 +01:00
extern void schedule_simulate(void);
/*
* $Log: schedule.h,v $
2001-03-11 23:42:11 +01:00
* Revision 1.2 2001/03/11 22:42:11 steve
* Functor values and propagation.
*
2001-03-11 01:29:38 +01:00
* Revision 1.1 2001/03/11 00:29:39 steve
* Add the vvp engine to cvs.
*
*/
#endif