Class: Origen::Specs::Creation_Info
- Defined in:
- lib/origen/specs/creation_info.rb
Overview
Ruby Data Class that contains Creation Information for the IP Block
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#date ⇒ Object
Returns the value of attribute date.
-
#ip_block_name ⇒ Object
Returns the value of attribute ip_block_name.
-
#ip_version ⇒ Object
Returns the value of attribute ip_version.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#source ⇒ Object
Returns the value of attribute source.
-
#tool ⇒ Object
Returns the value of attribute tool.
-
#tool_version ⇒ Object
Returns the value of attribute tool_version.
Instance Method Summary collapse
-
#initialize(author, date, ip_version, src_info = {}, tool_info = {}) ⇒ Creation_Info
constructor
Initialize the Creation Info block to store data for latest version of the file.
Constructor Details
#initialize(author, date, ip_version, src_info = {}, tool_info = {}) ⇒ Creation_Info
Initialize the Creation Info block to store data for latest version of the file.
Parameters
-
author # Author/Subject Matter Expert for the IP Block
-
date # Date that the File was released to Downstream Audiences
Source Information
-
:revision # Revision Information
-
:source # Where the Information came from
-
:ip_block_name # Block Name for the IP. e.g. DDR for DDRC1, DDRC2; I2C for I2C1, I2C2
Tool Info
-
:tool # Tool that created the initial XML file
-
:version # Version of the Tool that created the XML file
Example
Creation_Info.new("author", "07/10/2015", :revision => "5.4", :source => "CSV", :tool => "oRiGeN", :tool_version => "0.0.6")
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/origen/specs/creation_info.rb', line 27 def initialize(, date, ip_version, src_info = {}, tool_info = {}) @author = @date = date @ip_version = ip_version @revision = src_info[:revision] @source = src_info[:source] @ip_block_name = src_info[:ip_block_name] @tool = tool_info[:tool] @tool_version = tool_info[:version] end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def @author end |
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def date @date end |
#ip_block_name ⇒ Object
Returns the value of attribute ip_block_name.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def ip_block_name @ip_block_name end |
#ip_version ⇒ Object
Returns the value of attribute ip_version.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def ip_version @ip_version end |
#revision ⇒ Object
Returns the value of attribute revision.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def revision @revision end |
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def source @source end |
#tool ⇒ Object
Returns the value of attribute tool.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def tool @tool end |
#tool_version ⇒ Object
Returns the value of attribute tool_version.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def tool_version @tool_version end |