1 /**************************************************************************** 2 Copyright (C) 1987-2015 by Jeffery P. Hansen 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along 15 with this program; if not, write to the Free Software Foundation, Inc., 16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 ****************************************************************************/ 18 #ifndef __verilog_h 19 #define __verilog_h 20 21 typedef enum { 22 VSO_LIBRARY = 0x1, 23 VSO_BUILTINS = 0x2, 24 VSO_NOHDLCHECK = 0x4, 25 VSO_ALLMODS = VSO_LIBRARY|VSO_BUILTINS, /* All module type flags */ 26 } vsaveopts_t; 27 28 #define VGC_DOMARK 0x1 29 #define VGC_NOWIRES 0x2 30 31 32 33 int VerilogBasicGateCall(FILE *f,GCElement *g); 34 int VerilogBasicGateParmList(FILE *f,GCElement *g); 35 void VerilogBasicGateComment(FILE *f,GCElement *g,unsigned flags); 36 int VerilogWriteModules(const char *name,vsaveopts_t writeLibBlocks); 37 int VerilogSave(const char *name); 38 int VerilogOpen(EditState **es,const char *name,int append); 39 int VerilogOpenLibrary(const char *name); 40 void VerilogSaveModule(FILE *f,GModuleDef *M); 41 void VerilogSavePlainModule(FILE *f,GModuleDef *M); 42 void VerilogWriteInit(); 43 44 int isVerilogFile(const char*); 45 46 #endif 47