Videos
Model Data Import and Documentation
Learn how to import register data in IP-XACT format into a model and then generate a documentation view of it.
- Full source code on Github
- Cross Origen plugin
- Documentation Helpers plugin
- Example Model Documentation
- Callbacks
Application Integration
# lib/atd_test/atd.rb
module ATDTest
class ATD
include Origen::Model
include CrossOrigen
def initialize(options = {})
cr_import(path: "#{Origen.root}/ipxact/atd.xml")
end
end
end
# config/application.rb
def after_web_site_compile(options)
# Build the model documentation
OrigenDocHelpers.generate_model_docs layout: "#{Origen.root}/templates/web/layouts/_basic.html.erb", tab: :model do |d|
d.page model: $dut
end
end