2014-07-23 22:39:29 +02:00
|
|
|
#ifndef IVL_sfunc_H
|
|
|
|
|
#define IVL_sfunc_H
|
2006-06-18 06:15:50 +02:00
|
|
|
/*
|
2025-07-22 08:30:57 +02:00
|
|
|
* Copyright (c) 2006-2025 Stephen Williams (steve@icarus.com)
|
2006-06-18 06:15:50 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-06-18 06:15:50 +02:00
|
|
|
*/
|
|
|
|
|
|
2009-11-29 06:39:35 +01:00
|
|
|
# include "config.h"
|
2006-06-18 06:15:50 +02:00
|
|
|
|
2008-01-07 02:52:55 +01:00
|
|
|
class sfunc_core : public vvp_wide_fun_core, protected vvp_gen_event_s {
|
2006-06-18 06:15:50 +02:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
sfunc_core(vvp_net_t*ptr, vpiHandle sys, unsigned argc, vpiHandle*argv);
|
|
|
|
|
~sfunc_core();
|
|
|
|
|
|
2008-12-22 22:48:34 +01:00
|
|
|
void recv_vec4(vvp_net_ptr_t port, const vvp_vector4_t&bit,
|
2025-07-22 08:30:57 +02:00
|
|
|
vvp_context_t context) override;
|
2008-12-22 22:48:34 +01:00
|
|
|
|
2006-06-18 06:15:50 +02:00
|
|
|
private:
|
2025-07-22 08:30:57 +02:00
|
|
|
void recv_vec4_from_inputs(unsigned port) override;
|
|
|
|
|
void recv_real_from_inputs(unsigned port) override;
|
2006-06-18 06:15:50 +02:00
|
|
|
|
2025-07-22 08:30:57 +02:00
|
|
|
void run_run() override;
|
2008-01-07 02:52:55 +01:00
|
|
|
|
2006-06-18 06:15:50 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
vpiHandle sys_;
|
|
|
|
|
unsigned argc_;
|
|
|
|
|
vpiHandle*argv_;
|
|
|
|
|
};
|
|
|
|
|
|
2014-07-23 22:39:29 +02:00
|
|
|
#endif /* IVL_sfunc_H */
|