Class: OrigenVerilog::TopLevel
- Inherits:
-
Object
- Object
- OrigenVerilog::TopLevel
- Includes:
- Origen::TopLevel
- Defined in:
- lib/origen_verilog/top_level.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TopLevel
constructor
A new instance of TopLevel.
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( = {}) @name = [:ast].to_a[0] [:ast].pins(digital: true).each { |n| _add_pin_(n, :digital) } [:ast].pins(analog: true).each { |n| _add_pin_(n, :analog) } end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/origen_verilog/top_level.rb', line 5 def name @name end |