Support null target for generating no output.
This commit is contained in:
parent
d1e2b036fc
commit
3d2993be0a
2
Makefile
2
Makefile
|
|
@ -6,7 +6,7 @@ CXXFLAGS = -O -g -Wall -Wno-uninitialized
|
|||
mv $*.d dep/$*.d
|
||||
|
||||
#TT = t-debug.o t-vvm.o
|
||||
TT = t-verilog.o t-vvm.o t-xnf.o
|
||||
TT = t-null.o t-verilog.o t-vvm.o t-xnf.o
|
||||
FF = nobufz.o propinit.o sigfold.o stupid.o xnfio.o
|
||||
|
||||
O = main.o cprop.o design_dump.o elaborate.o emit.o eval.o lexor.o mangle.o \
|
||||
|
|
|
|||
7
main.cc
7
main.cc
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT)
|
||||
#ident "$Id: main.cc,v 1.11 1998/12/20 02:05:41 steve Exp $"
|
||||
#ident "$Id: main.cc,v 1.12 1999/01/24 01:35:36 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include <stdio.h>
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
extern void pform_parse();
|
||||
|
||||
const char*target = "verilog";
|
||||
const char*target = "null";
|
||||
string start_module = "";
|
||||
|
||||
map<string,string> flags;
|
||||
|
|
@ -224,6 +224,9 @@ int main(int argc, char*argv[])
|
|||
|
||||
/*
|
||||
* $Log: main.cc,v $
|
||||
* Revision 1.12 1999/01/24 01:35:36 steve
|
||||
* Support null target for generating no output.
|
||||
*
|
||||
* Revision 1.11 1998/12/20 02:05:41 steve
|
||||
* Function to calculate wire initial value.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* Copyright (c) 1999 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)
|
||||
#ident "$Id: t-null.cc,v 1.1 1999/01/24 01:35:08 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "netlist.h"
|
||||
# include "target.h"
|
||||
|
||||
static target_t target_null_obj;
|
||||
|
||||
extern const struct target tgt_null = { "null", &target_null_obj };
|
||||
/*
|
||||
* $Log: t-null.cc,v $
|
||||
* Revision 1.1 1999/01/24 01:35:08 steve
|
||||
* Support null target for generating no output.
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -17,16 +17,18 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT)
|
||||
#ident "$Id: targets.cc,v 1.2 1998/11/16 05:03:53 steve Exp $"
|
||||
#ident "$Id: targets.cc,v 1.3 1999/01/24 01:35:36 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "target.h"
|
||||
|
||||
extern const struct target tgt_null;
|
||||
extern const struct target tgt_verilog;
|
||||
extern const struct target tgt_vvm;
|
||||
extern const struct target tgt_xnf;
|
||||
|
||||
const struct target *target_table[] = {
|
||||
&tgt_null,
|
||||
&tgt_verilog,
|
||||
&tgt_vvm,
|
||||
&tgt_xnf,
|
||||
|
|
@ -35,6 +37,9 @@ const struct target *target_table[] = {
|
|||
|
||||
/*
|
||||
* $Log: targets.cc,v $
|
||||
* Revision 1.3 1999/01/24 01:35:36 steve
|
||||
* Support null target for generating no output.
|
||||
*
|
||||
* Revision 1.2 1998/11/16 05:03:53 steve
|
||||
* Add the sigfold function that unlinks excess
|
||||
* signal nodes, and add the XNF target.
|
||||
|
|
|
|||
Loading…
Reference in New Issue