lib/origen_verilog/verilog/node.rb
# Converts a module node to an Origen top-level model.
#
# This will re-load the Origen target with the resultant model instantiated
# as the global dut object.
Converts a module node to an Origen top-level model.
This will re-load the Origen target with the resultant model instantiated
as the global dut object.
Converts a module node to an Origen top - level model . This will re - load the Origen target with the resultant model instantiated as the global dut object .
def to_top_level(options = {})
        unless type == :module_declaration
          fail 'Currently only modules support the to_model method'
        end
        options[:ast] = self
        Origen.target.temporary = -> { TopLevel.new(options) }
        Origen.load_target
      end
def to_top_level ( options = { } ) unless type == :module_declaration fail 'Currently only modules support the to_model method' end options [ :ast ] = self Origen . target . temporary = -> { TopLevel . new ( options ) } Origen . load_target end
Converts a module node to an Origen top-level model.
Converts a module node to an Origen top - level model .
options
<not_specific>