Class: RgGen::SystemVerilog::Common::Component
- Inherits:
-
Core::OutputBase::Component
- Object
- Core::OutputBase::Component
- RgGen::SystemVerilog::Common::Component
- Defined in:
- lib/rggen/systemverilog/common/component.rb
Instance Method Summary collapse
Instance Method Details
#declarations ⇒ Object
7 8 9 |
# File 'lib/rggen/systemverilog/common/component.rb', line 7 def declarations @declarations ||= Hash.new { |h, k| h[k] = [] } end |
#package_imports(domain) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/rggen/systemverilog/common/component.rb', line 11 def package_imports(domain) body = ->(r) { r.package_imports(domain) } [ @features.each_value.map(&body), @children.map(&body) ].flatten.uniq end |