Sha256: 2137f17339f40b403b5016d72b2e4cf55748ca61f361d784c787deb0a4627a19
Contents?: true
Size: 1.39 KB
Versions: 6
Compression:
Stored size: 1.39 KB
Contents
#!/usr/bin/ruby -w # Transforms Verilog header files into Ruby. # * The standard input stream is read if no input files are specified. # * Output is written to the standard output stream. =begin Copyright 2006 Suraj N. Kurapati This file is part of Ruby-VPI. Ruby-VPI is free software; you can redistribute it and/or modify it 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. Ruby-VPI 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 Ruby-VPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. =end if File.basename($0) == File.basename(__FILE__) # parse command-line options require 'optparse' opts = OptionParser.new opts.banner = "Usage: #{File.basename __FILE__} [options] [files]" opts.on '-h', '--help', 'show this help message' do require 'ruby-vpi/rdoc' RDoc.usage_from_file __FILE__ puts opts exit end opts.parse! ARGV require 'ruby-vpi/verilog_parser' puts ARGF.read.verilog_to_ruby end
Version data entries
6 entries across 6 versions & 1 rubygems