Module: CrossOrigen
Defined Under Namespace
Classes: CMSISSVD, DesignSync, Headers, IpXact, Model, Ralf, XMLDoc
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.include_timestamp=(val) ⇒ Object
27
28
29
|
# File 'lib/cross_origen.rb', line 27
def self.include_timestamp=(val)
@include_timestamp = val
end
|
.include_timestamp? ⇒ Boolean
23
24
25
|
# File 'lib/cross_origen.rb', line 23
def self.include_timestamp?
instance_variable_defined?(:@include_timestamp) ? @include_timestamp : true
end
|
.refresh? ⇒ Boolean
Returns true if the –refresh switch was passed to the current Origen command
19
20
21
|
# File 'lib/cross_origen.rb', line 19
def self.refresh?
@refresh || false
end
|
Instance Method Details
#cr_cmsis_svd ⇒ Object
86
87
88
|
# File 'lib/cross_origen.rb', line 86
def cr_cmsis_svd
@cr_cmsis_svd ||= CMSISSVD.new(self)
end
|
#cr_design_sync ⇒ Object
Returns an instance of the DesignSync interface
70
71
72
|
# File 'lib/cross_origen.rb', line 70
def cr_design_sync
@cr_design_sync ||= DesignSync.new(self)
end
|
74
75
76
|
# File 'lib/cross_origen.rb', line 74
def
@cr_headers ||= Headers.new(self)
end
|
#cr_import(options = {}) ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/cross_origen.rb', line 35
def cr_import(options = {})
options = {
include_timestamp: true
}.merge(options)
CrossOrigen.include_timestamp = options[:include_timestamp]
file = cr_file(options)
cr_translator(file, options).import(file, options)
end
|
#cr_ip_xact ⇒ Object
82
83
84
|
# File 'lib/cross_origen.rb', line 82
def cr_ip_xact
@cr_ip_xact ||= IpXact.new(self)
end
|
#cr_ralf ⇒ Object
78
79
80
|
# File 'lib/cross_origen.rb', line 78
def cr_ralf
@cr_ralf ||= Ralf.new(self)
end
|
#cr_try(*methods) ⇒ Object
Tries the given methods and returns the first one to return a value, ultimately returns nil if no value is found.
59
60
61
62
63
64
65
66
67
|
# File 'lib/cross_origen.rb', line 59
def cr_try(*methods)
methods.each do |method|
if self.respond_to?(method)
val = send(method)
return val if val
end
end
nil
end
|
#instance_respond_to?(method_name) ⇒ Boolean
31
32
33
|
# File 'lib/cross_origen.rb', line 31
def instance_respond_to?(method_name)
public_methods.include?(method_name)
end
|
53
54
55
|
# File 'lib/cross_origen.rb', line 53
def (options = {})
.(options)
end
|
#to_ip_xact(options = {}) ⇒ Object
Also known as:
to_ipxact
48
49
50
|
# File 'lib/cross_origen.rb', line 48
def to_ip_xact(options = {})
cr_ip_xact.owner_to_xml(options)
end
|
#to_ralf(options = {}) ⇒ Object
44
45
46
|
# File 'lib/cross_origen.rb', line 44
def to_ralf(options = {})
cr_ralf.owner_to_ralf(options)
end
|