/* * Copyright (c) 1999-2000 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) && !defined(macintosh) #ident "$Id: t-null.cc,v 1.12 2000/06/14 20:29:39 steve Exp $" #endif # include "netlist.h" # include "target.h" /* * This target type simply drops the netlist. It is useful for * skipping the code generation phase. */ static class target_null_t : public target_t { public: void bufz(ostream&os, const NetBUFZ*) { } void event(ostream&, const NetEvent*) { } void func_def(ostream&, const NetFuncDef*) { } void memory(ostream&, const NetMemory*) { } void task_def(ostream&, const NetTaskDef*) { } void net_assign(ostream&os, const NetAssign*) { } void net_assign_nb(ostream&os, const NetAssignNB*) { } void net_const(ostream&, const NetConst*) { } void net_esignal(ostream&, const NetESignal*) { } void net_probe(ostream&, const NetEvProbe*) { } bool proc_block(ostream&, const NetBlock*) { return true; } void proc_condit(ostream&, const NetCondit*) { } void proc_delay(ostream&, const NetPDelay*) { } void proc_forever(ostream&, const NetForever*) { } void proc_repeat(ostream&, const NetRepeat*) { } void proc_stask(ostream&, const NetSTask*) { } void proc_utask(ostream&os, const NetUTask*) { } bool proc_wait(ostream&os, const NetEvWait*) { return true; } } target_null_obj; extern const struct target tgt_null = { "null", &target_null_obj }; /* * $Log: t-null.cc,v $ * Revision 1.12 2000/06/14 20:29:39 steve * Ignore more things in null target. * * Revision 1.11 2000/04/12 04:23:58 steve * Named events really should be expressed with PEIdent * objects in the pform, * * Handle named events within the mix of net events * and edges. As a unified lot they get caught together. * wait statements are broken into more complex statements * that include a conditional. * * Do not generate NetPEvent or NetNEvent objects in * elaboration. NetEvent, NetEvWait and NetEvProbe * take over those functions in the netlist. * * Revision 1.10 2000/02/23 02:56:55 steve * Macintosh compilers do not support ident. * * Revision 1.9 2000/02/14 06:04:52 steve * Unary reduction operators do not set their operand width * * Revision 1.8 1999/10/05 03:26:37 steve * null target ignore assignment nodes. * * Revision 1.7 1999/09/30 21:27:29 steve * Ignore user task definitions. * * Revision 1.6 1999/09/22 16:57:24 steve * Catch parallel blocks in vvm emit. * * Revision 1.5 1999/09/17 02:06:26 steve * Handle unconnected module ports. * * Revision 1.4 1999/07/03 02:12:52 steve * Elaborate user defined tasks. * * Revision 1.3 1999/06/19 21:06:16 steve * Elaborate and supprort to vvm the forever * and repeat statements. * * Revision 1.2 1999/06/06 20:33:30 steve * implement some null-target code generation. * * Revision 1.1 1999/01/24 01:35:08 steve * Support null target for generating no output. * */