Reputation: 1596
In the Origen::Parameters docs I see that parameter sets can inherit from other parameter sets within the same scope. I also see that parameter contexts can be set to follow another object. What I am looking for seems to be a combination of the two features:
# In top level DUT :top
define_params :default do |p|
p.hello = 'world'
end
# In child sub-block :child
define_params :default, inherit: 'top.default' do |p|
p.child_param = 'goodbye'
end
# In debugger
dut.child.params.keys # => [:hello, :child_param]
thx
Upvotes: 0
Views: 26
Reputation: 1596
Origen now supports parameter set remote inheritance. Here is an example:
define_params :ate, inherit: 'dut.ddr.default' do |params|
params.erase.time = 40.mS
end
Upvotes: 1
Reputation: 3501
No, that's not possible today, seems like if would be a good feature to add though.
Upvotes: 1