Class: Origen::Specs::Override

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/specs/override.rb

Overview

This class is used to store override information for specified specs on instantiated IP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block_options = {}, find_spec = {}, values = {}, options = {}) ⇒ Override

Returns a new instance of Override.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/origen/specs/override.rb', line 7

def initialize(block_options = {}, find_spec = {}, values = {}, options = {})
  @block = block_options[:block]
  @usage = block_options[:usage]
  @spec_ref = find_spec[:spec_id]
  @mode_ref = find_spec[:mode_ref]
  @sub_type = find_spec[:sub_type]
  @audience = find_spec[:audience]
  @minimum = values[:min]
  @maximum = values[:max]
  @typical = values[:typ]
  @disable = options[:disable]
  @hidespec = options[:hidespec]
end

Instance Attribute Details

#audienceObject

Returns the value of attribute audience.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def audience
  @audience
end

#blockObject

Returns the value of attribute block.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def block
  @block
end

#disableObject

Returns the value of attribute disable.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def disable
  @disable
end

#hidespecObject

Returns the value of attribute hidespec.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def hidespec
  @hidespec
end

#maximumObject

Returns the value of attribute maximum.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def maximum
  @maximum
end

#minimumObject

Returns the value of attribute minimum.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def minimum
  @minimum
end

#mode_refObject

Returns the value of attribute mode_ref.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def mode_ref
  @mode_ref
end

#spec_refObject

Returns the value of attribute spec_ref.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def spec_ref
  @spec_ref
end

#sub_typeObject

Returns the value of attribute sub_type.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def sub_type
  @sub_type
end

#typicalObject

Returns the value of attribute typical.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def typical
  @typical
end

#usageObject

Returns the value of attribute usage.



5
6
7
# File 'lib/origen/specs/override.rb', line 5

def usage
  @usage
end