Sha256: 9a47fdf4bdec586bc534b5ca1afd58b50492bfa249efac0a2a99598a9a10e801

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

# Converts Verilog `defines, constants, ranges, etc. into Ruby syntax.
# * The standard input stream is read if no input files are specified.
# * Output is written to the standard output stream.

#--
# Copyright 2006 Suraj N. Kurapati
# See the file named LICENSE for details.

$: << File.join(File.dirname(__FILE__), '..', 'lib')

# parse command-line options
  require 'optparse'

  opts = OptionParser.new
  opts.banner = "Usage: ruby-vpi convert [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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-vpi-20.0.0 bin/convert.rb
ruby-vpi-21.0.0 bin/convert.rb
ruby-vpi-21.1.0 bin/convert.rb