rchitect-of-info
rchitect-of-info

Reputation: 1596

Can child Parameter sets inherit from another object?

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

Answers (2)

rchitect-of-info
rchitect-of-info

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

Ginty
Ginty

Reputation: 3501

No, that's not possible today, seems like if would be a good feature to add though.

Upvotes: 1

Related Questions