Class: OrigenVerilog::TopLevel

Inherits:
Object
  • Object
show all
Includes:
Origen::TopLevel
Defined in:
lib/origen_verilog/top_level.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ TopLevel

Returns a new instance of TopLevel.



7
8
9
10
11
12
# File 'lib/origen_verilog/top_level.rb', line 7

def initialize(options = {})
  @name = options[:ast].to_a[0]

  options[:ast].pins(digital: true).each { |n| _add_pin_(n, :digital) }
  options[:ast].pins(analog: true).each { |n| _add_pin_(n, :analog) }
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/origen_verilog/top_level.rb', line 5

def name
  @name
end