Sha256: 65dfc6837880b11bd7c854c9a5c4edcd5785d9fbb7b87913cfd8fc1df621e79f

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>new (VerilogParser::Module::Port)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/verilog_parser.rb, line 47</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aDecl</span>, <span class="ruby-identifier">aModule</span>
        <span class="ruby-ivar">@decl</span> = <span class="ruby-identifier">aDecl</span>
        <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">aDecl</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/\S+/</span>).<span class="ruby-identifier">last</span>

        <span class="ruby-identifier">parser</span> = <span class="ruby-node">/\b(input|output|inout)\b[^;]*\b#{@name}\b/</span><span class="ruby-identifier">m</span>
        <span class="ruby-identifier">aDecl</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">parser</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">aModule</span>.<span class="ruby-identifier">body</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">parser</span>
        <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">$1</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-vpi-20.0.0 doc/api/ruby/classes/VerilogParser/Module/Port.src/M000005.html
ruby-vpi-21.1.0 doc/api/ruby/classes/VerilogParser/Module/Port.src/M000005.html
ruby-vpi-21.0.0 doc/api/ruby/classes/VerilogParser/Module/Port.src/M000006.html